Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.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.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor") [: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.001544/0.001544, allocations: 191.4 kB / 7.801 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4525/0.4525, allocations: 90.86 MB / 99.08 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.268/1.268, allocations: 221.4 MB / 342.8 MB, free: 5.109 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.0008394/0.0008394, allocations: 97.73 kB / 415.5 MB, free: 6.395 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 9.107e-06/9.147e-06, allocations: 4 kB / 493.9 MB, free: 8.031 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3199, allocations: 72.29 MB / 0.5529 GB, free: 73.28 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1146/0.4346, allocations: 103.8 MB / 0.6543 GB, free: 6.156 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002015/0.4349, allocations: 79.94 kB / 0.6544 GB, free: 6.078 MB / 474.7 MB Notification: Performance of FrontEnd: time 0.01666/0.4515, allocations: 5.555 MB / 0.6598 GB, free: 0.5898 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.955e-05/0.4516, allocations: 8 kB / 0.6598 GB, free: 0.582 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008296/0.4525, allocations: 0.5635 MB / 0.6603 GB, free: 15.97 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.4525, allocations: 12.03 kB / 0.6604 GB, free: 15.96 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.081e-05/0.4526, allocations: 31.62 kB / 0.6604 GB, free: 15.93 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005193/0.4531, allocations: 290.3 kB / 0.6607 GB, free: 15.61 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.176e-05/0.4531, allocations: 4 kB / 0.6607 GB, free: 15.6 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.545e-05/0.4532, allocations: 8 kB / 0.6607 GB, free: 15.59 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002431/0.4534, allocations: 132.2 kB / 0.6608 GB, free: 15.46 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003258/0.4538, allocations: 219.1 kB / 0.661 GB, free: 15.22 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.4538, allocations: 0 / 0.661 GB, free: 15.22 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.184e-05/0.4538, allocations: 0 / 0.661 GB, free: 15.22 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.992e-06/0.4538, allocations: 4 kB / 0.661 GB, free: 15.22 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001015/0.4549, allocations: 0.7021 MB / 0.6617 GB, free: 14.47 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002526/0.4551, allocations: 146.6 kB / 0.6618 GB, free: 14.32 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.4553, allocations: 101 kB / 0.6619 GB, free: 14.22 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.66e-05/0.4553, allocations: 7.984 kB / 0.6619 GB, free: 14.21 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002075/0.4555, allocations: 186.3 kB / 0.6621 GB, free: 14.01 MB / 490.7 MB Notification: Performance of pre-optimization done (n=15): time 1.854e-06/0.4555, allocations: 0 / 0.6621 GB, free: 14.01 MB / 490.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004328/0.456, allocations: 233.2 kB / 0.6623 GB, free: 13.78 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.217e-05/0.456, allocations: 132.5 kB / 0.6625 GB, free: 13.62 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002073/0.4562, allocations: 221.1 kB / 0.6627 GB, free: 13.4 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.9e-05/0.4563, allocations: 29.7 kB / 0.6627 GB, free: 13.36 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.35e-05/0.4564, allocations: 124.2 kB / 0.6628 GB, free: 13.24 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.612e-05/0.4564, allocations: 47.44 kB / 0.6629 GB, free: 13.19 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.211e-05/0.4564, allocations: 0 / 0.6629 GB, free: 13.19 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.4566, allocations: 342.7 kB / 0.6632 GB, free: 12.85 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.4567, allocations: 88.16 kB / 0.6633 GB, free: 12.76 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000155/0.4569, allocations: 139.5 kB / 0.6634 GB, free: 12.61 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.457, allocations: 91 kB / 0.6635 GB, free: 12.52 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.4571, allocations: 4.031 kB / 0.6635 GB, free: 12.52 MB / 490.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003813/0.4574, allocations: 267.9 kB / 0.6638 GB, free: 12.25 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.4575, allocations: 7.906 kB / 0.6638 GB, free: 12.24 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.4575, allocations: 4 kB / 0.6638 GB, free: 12.24 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.4575, allocations: 0 / 0.6638 GB, free: 12.24 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.4577, allocations: 31.92 kB / 0.6638 GB, free: 12.21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.638e-06/0.4577, allocations: 0 / 0.6638 GB, free: 12.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001797/0.4579, allocations: 47.84 kB / 0.6638 GB, free: 12.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.489e-05/0.4579, allocations: 12 kB / 0.6639 GB, free: 12.15 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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.0001253/0.458, allocations: 144.1 kB / 0.664 GB, free: 12 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.977e-05/0.4581, allocations: 27.7 kB / 0.664 GB, free: 11.97 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.31e-05/0.4581, allocations: 21.78 kB / 0.664 GB, free: 11.95 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.4582, allocations: 4 kB / 0.664 GB, free: 11.95 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.4582, allocations: 3 kB / 0.664 GB, free: 11.95 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.4582, allocations: 3.984 kB / 0.6641 GB, free: 11.94 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002461/0.4584, allocations: 262 kB / 0.6643 GB, free: 11.65 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.4584, allocations: 3.938 kB / 0.6643 GB, free: 11.64 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001322/0.4586, allocations: 23.98 kB / 0.6643 GB, free: 11.62 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.4586, allocations: 0 / 0.6643 GB, free: 11.62 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.691e-05/0.4586, allocations: 7.984 kB / 0.6643 GB, free: 11.61 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.4586, allocations: 0 / 0.6643 GB, free: 11.61 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.4586, allocations: 4 kB / 0.6643 GB, free: 11.61 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005767/0.4592, allocations: 412 kB / 0.6647 GB, free: 11.19 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.153e-05/0.4593, allocations: 100.9 kB / 0.6648 GB, free: 11.07 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.096e-05/0.4594, allocations: 8 kB / 0.6648 GB, free: 11.07 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/0.4595, allocations: 31.97 kB / 0.6649 GB, free: 11.04 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.943e-05/0.4596, allocations: 27.95 kB / 0.6649 GB, free: 11.01 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.439e-05/0.4596, allocations: 11.98 kB / 0.6649 GB, free: 11 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0001459/0.4598, allocations: 181.2 kB / 0.6651 GB, free: 10.82 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002931/0.4601, allocations: 55.84 kB / 0.6651 GB, free: 10.76 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * 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 (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0002193/0.4603, allocations: 144.7 kB / 0.6653 GB, free: 10.61 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.000313/0.4606, allocations: 216.8 kB / 0.6655 GB, free: 10.39 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.4607, allocations: 0 / 0.6655 GB, free: 10.39 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000191/0.4609, allocations: 145.6 kB / 0.6656 GB, free: 10.25 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002476/0.4611, allocations: 20.48 kB / 0.6656 GB, free: 10.23 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008784/0.462, allocations: 348.8 kB / 0.666 GB, free: 9.867 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003887/0.4624, allocations: 0.7706 MB / 0.6667 GB, free: 9.07 MB / 490.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4624, allocations: 0 / 0.6667 GB, free: 9.07 MB / 490.7 MB Notification: Performance of Templates: time 0.005674/0.4681, allocations: 2.518 MB / 0.6692 GB, free: 6.621 MB / 490.7 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)