Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 190.6 kB / 7.803 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4928/0.4928, allocations: 90.85 MB / 99.07 MB, free: 14.9 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 221.4 MB / 342.8 MB, free: 5.422 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009959/0.000996, allocations: 96.27 kB / 415.5 MB, free: 6.426 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1776/0.1786, allocations: 78.46 MB / 494 MB, free: 7.969 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3844/0.563, allocations: 72.3 MB / 0.553 GB, free: 73.2 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6643/1.227, allocations: 382.5 MB / 0.9265 GB, free: 8.438 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/1.228, allocations: 96.88 kB / 0.9266 GB, free: 8.387 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 3.8/5.027, allocations: 0.9968 GB / 1.923 GB, free: 45.95 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.381e-05/5.027, allocations: 13.16 kB / 1.923 GB, free: 45.95 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002073/5.029, allocations: 324.5 kB / 1.924 GB, free: 45.8 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007083/5.037, allocations: 2.487 MB / 1.926 GB, free: 45.32 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.547e-05/5.037, allocations: 49.81 kB / 1.926 GB, free: 45.32 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005658/5.037, allocations: 102.2 kB / 1.926 GB, free: 45.32 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002952/5.04, allocations: 0.9933 MB / 1.927 GB, free: 45.31 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003604/5.044, allocations: 1.312 MB / 1.929 GB, free: 45.12 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.636e-05/5.044, allocations: 3.906 kB / 1.929 GB, free: 45.12 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002625/5.044, allocations: 2.781 kB / 1.929 GB, free: 45.12 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.46e-05/5.044, allocations: 45.12 kB / 1.929 GB, free: 45.12 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01305/5.057, allocations: 8.041 MB / 1.936 GB, free: 41.18 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006503/5.058, allocations: 413.4 kB / 1.937 GB, free: 41.16 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004483/5.058, allocations: 311.6 kB / 1.937 GB, free: 41.14 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005547/5.059, allocations: 0.7495 MB / 1.938 GB, free: 40.3 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/5.059, allocations: 41.44 kB / 1.938 GB, free: 40.26 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=60): time 3.256e-06/5.059, allocations: 6.375 kB / 1.938 GB, free: 40.26 MB / 0.6198 GB Notification: Performance of matching and sorting (n=60): time 0.001998/5.061, allocations: 0.7328 MB / 1.939 GB, free: 40.11 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.049e-05/5.061, allocations: 62.73 kB / 1.939 GB, free: 40.05 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003368/5.065, allocations: 1.715 MB / 1.94 GB, free: 39.82 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.000166/5.065, allocations: 29.23 kB / 1.94 GB, free: 39.79 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006065/5.065, allocations: 0.7533 MB / 1.941 GB, free: 39.38 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.00021/5.066, allocations: 201.9 kB / 1.941 GB, free: 39.25 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.474e-05/5.066, allocations: 0 / 1.941 GB, free: 39.25 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.578e-05/5.066, allocations: 352.2 kB / 1.942 GB, free: 38.94 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005049/5.066, allocations: 306.4 kB / 1.942 GB, free: 38.93 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007044/5.067, allocations: 0.7642 MB / 1.943 GB, free: 38.42 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009285/5.068, allocations: 463.9 kB / 1.943 GB, free: 38.41 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/5.068, allocations: 4.75 kB / 1.943 GB, free: 38.41 MB / 0.6198 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002236/5.07, allocations: 1.124 MB / 1.944 GB, free: 38.25 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006688/5.071, allocations: 3.159 MB / 1.947 GB, free: 34.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.247e-05/5.071, allocations: 7.094 kB / 1.947 GB, free: 34.89 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.638e-05/5.071, allocations: 14.28 kB / 1.947 GB, free: 34.89 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/5.072, allocations: 257 kB / 1.948 GB, free: 34.89 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.759e-05/5.072, allocations: 25.55 kB / 1.948 GB, free: 34.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002414/5.074, allocations: 190.2 kB / 1.948 GB, free: 34.83 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001565/5.075, allocations: 56.2 kB / 1.948 GB, free: 34.83 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/5.075, allocations: 3.5 kB / 1.948 GB, free: 34.83 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001643/5.076, allocations: 0.8544 MB / 1.949 GB, free: 34.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.732e-05/5.076, allocations: 14.47 kB / 1.949 GB, free: 34.81 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/5.076, allocations: 14.56 kB / 1.949 GB, free: 34.81 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009682/5.077, allocations: 256.2 kB / 1.949 GB, free: 34.81 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.42e-05/5.077, allocations: 21.5 kB / 1.949 GB, free: 34.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002188/5.08, allocations: 167.4 kB / 1.949 GB, free: 34.77 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/5.08, allocations: 55.22 kB / 1.949 GB, free: 34.77 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002771/5.08, allocations: 138 kB / 1.949 GB, free: 34.65 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006177/5.081, allocations: 212.7 kB / 1.95 GB, free: 34.54 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002174/5.083, allocations: 0.855 MB / 1.95 GB, free: 34.46 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.564e-05/5.083, allocations: 7.844 kB / 1.95 GB, free: 34.46 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.178e-06/5.083, allocations: 2.281 kB / 1.95 GB, free: 34.46 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001026/5.084, allocations: 0.6692 MB / 1.951 GB, free: 34.3 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00592/5.09, allocations: 2.428 MB / 1.953 GB, free: 33.94 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/5.09, allocations: 0 / 1.953 GB, free: 33.94 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006377/5.09, allocations: 150.2 kB / 1.954 GB, free: 33.94 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.47e-05/5.09, allocations: 9.812 kB / 1.954 GB, free: 33.94 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.457e-05/5.091, allocations: 10.16 kB / 1.954 GB, free: 33.94 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.294e-06/5.091, allocations: 7.062 kB / 1.954 GB, free: 33.94 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/5.091, allocations: 2.062 kB / 1.954 GB, free: 33.94 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002065/5.093, allocations: 1.299 MB / 1.955 GB, free: 33.56 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002685/5.095, allocations: 2.137 MB / 1.957 GB, free: 32.82 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001149/5.097, allocations: 442 kB / 1.957 GB, free: 32.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005904/5.097, allocations: 7.688 kB / 1.957 GB, free: 32.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001817/5.099, allocations: 155.5 kB / 1.958 GB, free: 32.59 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/5.099, allocations: 38.45 kB / 1.958 GB, free: 32.59 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/5.099, allocations: 34.17 kB / 1.958 GB, free: 32.59 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.002777/5.102, allocations: 1.266 MB / 1.959 GB, free: 32.45 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.006842/5.109, allocations: 1.552 MB / 1.96 GB, free: 32.24 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002697/5.112, allocations: 1.191 MB / 1.962 GB, free: 31.96 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002526/5.114, allocations: 1.32 MB / 1.963 GB, free: 31.92 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/5.114, allocations: 7.438 kB / 1.963 GB, free: 31.92 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004538/5.115, allocations: 308.5 kB / 1.963 GB, free: 31.92 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006373/5.121, allocations: 1.229 MB / 1.964 GB, free: 31.9 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007351/5.128, allocations: 2.877 MB / 1.967 GB, free: 31.11 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002122/5.13, allocations: 1.841 MB / 1.969 GB, free: 30.37 MB / 0.6198 GB Notification: Performance of SimCode: time 7.32e-07/5.13, allocations: 0 / 1.969 GB, free: 30.37 MB / 0.6198 GB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)