Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.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: translateModel(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") [: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.001043/0.001043, allocations: 182.7 kB / 7.8 MB, free: 2.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4503/0.4503, allocations: 90.84 MB / 99.07 MB, free: 14.96 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.275/1.275, allocations: 221.4 MB / 342.8 MB, free: 5.238 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.0009672/0.0009673, allocations: 95.88 kB / 415.5 MB, free: 6.453 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 6.632e-06/6.953e-06, allocations: 0 / 493.9 MB, free: 8.094 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4031/0.4031, allocations: 72.29 MB / 0.5529 GB, free: 73.34 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6129/1.016, allocations: 352.3 MB / 0.897 GB, free: 8.094 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/1.016, allocations: 96.12 kB / 0.8971 GB, free: 8.043 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.205/2.222, allocations: 306.4 MB / 1.196 GB, free: 132.7 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0001269/2.222, allocations: 26.62 kB / 1.196 GB, free: 132.7 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002862/2.225, allocations: 1.253 MB / 1.198 GB, free: 132.1 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/2.225, allocations: 7.562 kB / 1.198 GB, free: 132.1 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004397/2.225, allocations: 122.4 kB / 1.198 GB, free: 132.1 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001658/2.227, allocations: 0.6717 MB / 1.198 GB, free: 131.8 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.46e-05/2.227, allocations: 21.67 kB / 1.198 GB, free: 131.8 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001379/2.227, allocations: 40.69 kB / 1.198 GB, free: 131.8 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007145/2.228, allocations: 401 kB / 1.199 GB, free: 131.8 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008355/2.229, allocations: 0.5747 MB / 1.199 GB, free: 131.7 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/2.229, allocations: 0 / 1.199 GB, free: 131.7 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.322e-05/2.229, allocations: 0 / 1.199 GB, free: 131.7 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.409e-05/2.229, allocations: 14.69 kB / 1.199 GB, free: 131.7 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003142/2.232, allocations: 2.472 MB / 1.202 GB, free: 130.4 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005303/2.233, allocations: 329 kB / 1.202 GB, free: 130.4 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002713/2.233, allocations: 189.4 kB / 1.202 GB, free: 130.4 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003107/2.233, allocations: 352.6 kB / 1.203 GB, free: 130 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000392/2.234, allocations: 325 kB / 1.203 GB, free: 129.9 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=37): time 2.235e-06/2.234, allocations: 0 / 1.203 GB, free: 129.9 MB / 0.5886 GB Notification: Performance of matching and sorting (n=37): time 0.001701/2.235, allocations: 0.5576 MB / 1.203 GB, free: 129.8 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.393e-05/2.235, allocations: 239.2 kB / 1.204 GB, free: 129.5 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008769/2.236, allocations: 0.5999 MB / 1.204 GB, free: 129.4 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 8.608e-05/2.236, allocations: 33.56 kB / 1.204 GB, free: 129.3 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003/2.237, allocations: 314.4 kB / 1.205 GB, free: 129.2 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/2.237, allocations: 112 kB / 1.205 GB, free: 129.1 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.405e-05/2.237, allocations: 0 / 1.205 GB, free: 129.1 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001106/2.237, allocations: 331.3 kB / 1.205 GB, free: 128.8 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000342/2.237, allocations: 188.9 kB / 1.205 GB, free: 128.8 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000555/2.238, allocations: 382.3 kB / 1.206 GB, free: 128.6 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009828/2.239, allocations: 331.3 kB / 1.206 GB, free: 128.6 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/2.239, allocations: 0 / 1.206 GB, free: 128.6 MB / 0.5886 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001522/2.24, allocations: 0.7036 MB / 1.207 GB, free: 128.5 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002558/2.241, allocations: 1.056 MB / 1.208 GB, free: 127.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/2.241, allocations: 0 / 1.208 GB, free: 127.4 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.493e-05/2.241, allocations: 7.281 kB / 1.208 GB, free: 127.4 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/2.242, allocations: 165 kB / 1.208 GB, free: 127.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008723/2.243, allocations: 1.802 MB / 1.21 GB, free: 125.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008806/2.243, allocations: 111.2 kB / 1.21 GB, free: 125.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.927e-05/2.244, allocations: 33.17 kB / 1.21 GB, free: 125.6 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 9.107e-06/2.244, allocations: 7 kB / 1.21 GB, free: 125.6 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00123/2.245, allocations: 0.5641 MB / 1.21 GB, free: 125.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/2.245, allocations: 3.875 kB / 1.21 GB, free: 125.6 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.595e-06/2.245, allocations: 7.688 kB / 1.21 GB, free: 125.6 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005308/2.245, allocations: 132.3 kB / 1.21 GB, free: 125.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/2.245, allocations: 11.58 kB / 1.21 GB, free: 125.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008092/2.246, allocations: 104.5 kB / 1.21 GB, free: 125.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.046e-05/2.246, allocations: 29.67 kB / 1.21 GB, free: 125.6 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002087/2.247, allocations: 151.7 kB / 1.211 GB, free: 125.4 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/2.247, allocations: 87.88 kB / 1.211 GB, free: 125.4 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001606/2.248, allocations: 0.6805 MB / 1.211 GB, free: 125.3 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/2.248, allocations: 6.281 kB / 1.211 GB, free: 125.3 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/2.248, allocations: 2.656 kB / 1.211 GB, free: 125.3 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/2.248, allocations: 3.656 kB / 1.211 GB, free: 125.3 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002391/2.251, allocations: 1.462 MB / 1.213 GB, free: 124.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/2.251, allocations: 0 / 1.213 GB, free: 124.9 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004365/2.251, allocations: 93.16 kB / 1.213 GB, free: 124.9 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/2.251, allocations: 3.812 kB / 1.213 GB, free: 124.9 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.166e-05/2.251, allocations: 17.81 kB / 1.213 GB, free: 124.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005655/2.252, allocations: 1.78 MB / 1.215 GB, free: 123.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/2.252, allocations: 0 / 1.215 GB, free: 123.1 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001485/2.253, allocations: 1.162 MB / 1.216 GB, free: 122.7 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003295/2.254, allocations: 225.8 kB / 1.216 GB, free: 122.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/2.254, allocations: 13.73 kB / 1.216 GB, free: 122.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006191/2.254, allocations: 70.39 kB / 1.216 GB, free: 122.6 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/2.255, allocations: 48.06 kB / 1.216 GB, free: 122.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.542e-05/2.255, allocations: 18.09 kB / 1.216 GB, free: 122.6 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.0004819/2.255, allocations: 466.6 kB / 1.217 GB, free: 122.5 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0014/2.256, allocations: 491.3 kB / 1.217 GB, free: 122.4 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008363/2.257, allocations: 491.7 kB / 1.218 GB, free: 122.2 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.00167/2.259, allocations: 0.8434 MB / 1.218 GB, free: 122.1 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/2.259, allocations: 3.938 kB / 1.218 GB, free: 122.1 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0004826/2.26, allocations: 309 kB / 1.219 GB, free: 122.1 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001553/2.261, allocations: 293.6 kB / 1.219 GB, free: 122.1 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002046/2.263, allocations: 1.071 MB / 1.22 GB, free: 121.8 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005422/2.264, allocations: 1.091 MB / 1.221 GB, free: 121.1 MB / 0.5886 GB Notification: Performance of SimCode: time 2.7e-07/2.264, allocations: 0 / 1.221 GB, free: 121.1 MB / 0.5886 GB Notification: Performance of Templates: time 0.02601/2.29, allocations: 17.32 MB / 1.238 GB, free: 120.9 MB / 0.5886 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)