Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.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/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.501/1.501, allocations: 285.5 MB / 292.8 MB, free: 10.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001059/0.001059, allocations: 189.2 kB / 361.1 MB, free: 7.066 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 205.1 MB / 0.6195 GB, free: 10.27 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009506/0.0009506, allocations: 91.28 kB / 0.7326 GB, free: 44.19 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.907e-06/8.947e-06, allocations: 0 / 0.8511 GB, free: 2.941 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6317/0.6318, allocations: 115.3 MB / 0.9637 GB, free: 78.27 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8772/1.509, allocations: 401.9 MB / 1.356 GB, free: 162 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/1.509, allocations: 93.06 kB / 1.356 GB, free: 161.9 MB / 0.8542 GB Notification: Performance of FrontEnd: time 0.9975/2.507, allocations: 300.4 MB / 1.65 GB, free: 240.6 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 6.868e-05/2.507, allocations: 26.05 kB / 1.65 GB, free: 240.6 MB / 0.9323 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.001975/2.509, allocations: 1.25 MB / 1.651 GB, free: 239.9 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/2.509, allocations: 10.19 kB / 1.651 GB, free: 239.9 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001824/2.509, allocations: 118.2 kB / 1.651 GB, free: 239.9 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001176/2.51, allocations: 0.6763 MB / 1.652 GB, free: 239.6 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.025e-05/2.51, allocations: 21.91 kB / 1.652 GB, free: 239.6 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.775e-05/2.511, allocations: 37.28 kB / 1.652 GB, free: 239.6 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006228/2.511, allocations: 399.6 kB / 1.652 GB, free: 239.6 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007544/2.512, allocations: 0.5762 MB / 1.653 GB, free: 239.5 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/2.512, allocations: 0 / 1.653 GB, free: 239.5 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.928e-05/2.512, allocations: 0 / 1.653 GB, free: 239.5 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/2.512, allocations: 20.47 kB / 1.653 GB, free: 239.5 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00266/2.515, allocations: 2.458 MB / 1.655 GB, free: 238.2 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000455/2.515, allocations: 338.9 kB / 1.655 GB, free: 238.2 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002282/2.515, allocations: 186.8 kB / 1.656 GB, free: 238.2 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002599/2.516, allocations: 346.9 kB / 1.656 GB, free: 237.8 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003293/2.516, allocations: 322.1 kB / 1.656 GB, free: 237.7 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=37): time 1.764e-06/2.516, allocations: 0 / 1.656 GB, free: 237.7 MB / 0.9323 GB Notification: Performance of matching and sorting (n=37): time 0.001281/2.517, allocations: 0.5556 MB / 1.657 GB, free: 237.6 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.277e-05/2.517, allocations: 239.4 kB / 1.657 GB, free: 237.3 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005775/2.518, allocations: 0.5874 MB / 1.658 GB, free: 237.2 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 5.027e-05/2.518, allocations: 34.64 kB / 1.658 GB, free: 237.2 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001575/2.518, allocations: 317.4 kB / 1.658 GB, free: 237 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 7.888e-05/2.518, allocations: 112.5 kB / 1.658 GB, free: 236.9 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.888e-05/2.518, allocations: 0 / 1.658 GB, free: 236.9 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 6.124e-05/2.518, allocations: 331.4 kB / 1.658 GB, free: 236.6 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000277/2.519, allocations: 192.2 kB / 1.658 GB, free: 236.6 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003495/2.519, allocations: 385.3 kB / 1.659 GB, free: 236.4 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008396/2.52, allocations: 323 kB / 1.659 GB, free: 236.4 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/2.52, allocations: 0 / 1.659 GB, free: 236.4 MB / 0.9323 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001328/2.521, allocations: 0.7066 MB / 1.66 GB, free: 236.3 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.000186/2.521, allocations: 1.051 MB / 1.661 GB, free: 235.2 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/2.521, allocations: 3.344 kB / 1.661 GB, free: 235.2 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/2.521, allocations: 3.969 kB / 1.661 GB, free: 235.2 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009936/2.522, allocations: 174 kB / 1.661 GB, free: 235.2 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007662/2.523, allocations: 1.797 MB / 1.663 GB, free: 233.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007621/2.524, allocations: 110.2 kB / 1.663 GB, free: 233.4 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.51e-05/2.524, allocations: 35.53 kB / 1.663 GB, free: 233.4 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 6.863e-06/2.524, allocations: 7.359 kB / 1.663 GB, free: 233.4 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001163/2.525, allocations: 0.5609 MB / 1.663 GB, free: 233.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/2.525, allocations: 10.7 kB / 1.663 GB, free: 233.4 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.314e-06/2.525, allocations: 3.969 kB / 1.663 GB, free: 233.4 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005271/2.526, allocations: 138.9 kB / 1.664 GB, free: 233.4 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.81e-06/2.526, allocations: 9.969 kB / 1.664 GB, free: 233.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006622/2.526, allocations: 99.05 kB / 1.664 GB, free: 233.4 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.9e-05/2.527, allocations: 32.78 kB / 1.664 GB, free: 233.4 MB / 0.9323 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.000158/2.527, allocations: 147.4 kB / 1.664 GB, free: 233.3 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.606e-05/2.527, allocations: 91.06 kB / 1.664 GB, free: 233.2 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001497/2.528, allocations: 0.6716 MB / 1.665 GB, free: 233.2 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/2.528, allocations: 3.812 kB / 1.665 GB, free: 233.2 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/2.528, allocations: 3.906 kB / 1.665 GB, free: 233.2 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/2.528, allocations: 10.97 kB / 1.665 GB, free: 233.2 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002132/2.53, allocations: 1.45 MB / 1.666 GB, free: 232.7 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/2.531, allocations: 0 / 1.666 GB, free: 232.7 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004439/2.531, allocations: 108.5 kB / 1.666 GB, free: 232.7 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.052e-06/2.531, allocations: 2.25 kB / 1.666 GB, free: 232.7 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.555e-05/2.531, allocations: 9.906 kB / 1.666 GB, free: 232.7 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005184/2.532, allocations: 1.787 MB / 1.668 GB, free: 231 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/2.532, allocations: 0 / 1.668 GB, free: 231 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001541/2.533, allocations: 1.155 MB / 1.669 GB, free: 230.5 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003752/2.533, allocations: 230.1 kB / 1.669 GB, free: 230.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001305/2.534, allocations: 7.938 kB / 1.669 GB, free: 230.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006319/2.534, allocations: 66.91 kB / 1.669 GB, free: 230.4 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/2.534, allocations: 47.62 kB / 1.669 GB, free: 230.4 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.48e-05/2.534, allocations: 25.06 kB / 1.669 GB, free: 230.4 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.0005289/2.535, allocations: 457.1 kB / 1.67 GB, free: 230.3 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.00172/2.537, allocations: 492 kB / 1.67 GB, free: 230.2 MB / 0.9323 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.001038/2.538, allocations: 484.6 kB / 1.671 GB, free: 230.1 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.001936/2.54, allocations: 0.8384 MB / 1.672 GB, free: 230 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/2.54, allocations: 0 / 1.672 GB, free: 230 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0005489/2.54, allocations: 300.8 kB / 1.672 GB, free: 229.9 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001828/2.542, allocations: 307 kB / 1.672 GB, free: 229.9 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002435/2.545, allocations: 1.063 MB / 1.673 GB, free: 229.6 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005737/2.545, allocations: 1.089 MB / 1.674 GB, free: 228.9 MB / 0.9323 GB Notification: Performance of SimCode: time 5.31e-07/2.545, allocations: 0 / 1.674 GB, free: 228.9 MB / 0.9323 GB Notification: Performance of Templates: time 0.02691/2.572, allocations: 17.38 MB / 1.691 GB, free: 228.7 MB / 0.9323 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)