Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.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.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.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/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.534/1.534, allocations: 285.5 MB / 292.8 MB, free: 10.51 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.001328/0.001328, allocations: 189.2 kB / 361.1 MB, free: 7.133 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.371/1.371, allocations: 205.1 MB / 0.6195 GB, free: 11.98 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.0009445/0.0009445, allocations: 92.31 kB / 0.7326 GB, free: 44.53 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.488e-06/9.508e-06, allocations: 4 kB / 0.8511 GB, free: 3.297 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5634/0.5634, allocations: 115.3 MB / 0.9637 GB, free: 78.01 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1637/0.7271, allocations: 140.4 MB / 1.101 GB, free: 15.77 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002071/0.7274, allocations: 84.69 kB / 1.101 GB, free: 15.69 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.01626/0.7437, allocations: 5.48 MB / 1.106 GB, free: 10.29 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.408e-05/0.7437, allocations: 8 kB / 1.106 GB, free: 10.28 MB / 0.7136 GB 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.0007558/0.7445, allocations: 0.5618 MB / 1.107 GB, free: 9.668 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.7445, allocations: 12.03 kB / 1.107 GB, free: 9.656 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.282e-05/0.7446, allocations: 23.72 kB / 1.107 GB, free: 9.633 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004975/0.7451, allocations: 294.3 kB / 1.107 GB, free: 9.309 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.248e-05/0.7451, allocations: 7.984 kB / 1.107 GB, free: 9.301 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.404e-05/0.7452, allocations: 12 kB / 1.107 GB, free: 9.289 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002385/0.7454, allocations: 128.2 kB / 1.107 GB, free: 9.16 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000322/0.7458, allocations: 219.1 kB / 1.107 GB, free: 8.922 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.7458, allocations: 7.891 kB / 1.107 GB, free: 8.914 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.388e-05/0.7458, allocations: 5.812 kB / 1.107 GB, free: 8.91 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.7458, allocations: 0 / 1.107 GB, free: 8.91 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009618/0.7468, allocations: 0.6982 MB / 1.108 GB, free: 8.164 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002122/0.747, allocations: 146.6 kB / 1.108 GB, free: 8.012 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001438/0.7472, allocations: 105 kB / 1.108 GB, free: 7.906 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.224e-05/0.7472, allocations: 0 / 1.108 GB, free: 7.906 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002079/0.7474, allocations: 173.1 kB / 1.109 GB, free: 7.719 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.7474, allocations: 0 / 1.109 GB, free: 7.719 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15): time 0.0004154/0.7478, allocations: 237.2 kB / 1.109 GB, free: 7.48 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.069e-05/0.7479, allocations: 133.4 kB / 1.109 GB, free: 7.32 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002244/0.7481, allocations: 229 kB / 1.109 GB, free: 7.094 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.881e-05/0.7482, allocations: 25.7 kB / 1.109 GB, free: 7.062 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.662e-05/0.7483, allocations: 128.2 kB / 1.109 GB, free: 6.934 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.248e-05/0.7483, allocations: 39.45 kB / 1.109 GB, free: 6.895 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.222e-05/0.7483, allocations: 3.938 kB / 1.109 GB, free: 6.891 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001265/0.7485, allocations: 338.8 kB / 1.11 GB, free: 6.551 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.7486, allocations: 88.16 kB / 1.11 GB, free: 6.461 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.7488, allocations: 139.5 kB / 1.11 GB, free: 6.309 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.7489, allocations: 100.6 kB / 1.11 GB, free: 6.215 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.7489, allocations: 0 / 1.11 GB, free: 6.215 MB / 0.7136 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003836/0.7493, allocations: 261.2 kB / 1.11 GB, free: 5.953 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.033e-05/0.7493, allocations: 4 kB / 1.11 GB, free: 5.949 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.7493, allocations: 4 kB / 1.11 GB, free: 5.945 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.7494, allocations: 0 / 1.11 GB, free: 5.945 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001529/0.7495, allocations: 31.98 kB / 1.11 GB, free: 5.914 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.357e-06/0.7495, allocations: 3.938 kB / 1.11 GB, free: 5.91 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001867/0.7497, allocations: 43.91 kB / 1.11 GB, free: 5.867 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.067e-05/0.7498, allocations: 12.66 kB / 1.11 GB, free: 5.855 MB / 0.7136 GB 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.0001084/0.7499, allocations: 146.7 kB / 1.11 GB, free: 5.699 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.636e-05/0.7499, allocations: 27.62 kB / 1.11 GB, free: 5.672 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.103e-05/0.75, allocations: 21.78 kB / 1.11 GB, free: 5.645 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.75, allocations: 7.984 kB / 1.11 GB, free: 5.637 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.75, allocations: 1.5 kB / 1.11 GB, free: 5.637 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.75, allocations: 0 / 1.11 GB, free: 5.637 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002425/0.7503, allocations: 267.1 kB / 1.111 GB, free: 5.34 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.7503, allocations: 0 / 1.111 GB, free: 5.34 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001332/0.7504, allocations: 23.94 kB / 1.111 GB, free: 5.316 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.7504, allocations: 3.984 kB / 1.111 GB, free: 5.312 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.34e-05/0.7505, allocations: 8 kB / 1.111 GB, free: 5.305 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.7505, allocations: 4 kB / 1.111 GB, free: 5.301 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.7505, allocations: 0 / 1.111 GB, free: 5.301 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005738/0.751, allocations: 404 kB / 1.111 GB, free: 4.891 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.352e-05/0.7511, allocations: 98.08 kB / 1.111 GB, free: 4.777 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.132e-05/0.7512, allocations: 11.89 kB / 1.111 GB, free: 4.766 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001678/0.7513, allocations: 32.05 kB / 1.111 GB, free: 4.734 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.253e-05/0.7514, allocations: 27.7 kB / 1.111 GB, free: 4.711 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-05/0.7515, allocations: 23.92 kB / 1.111 GB, free: 4.688 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.0001421/0.7516, allocations: 181.3 kB / 1.111 GB, free: 4.508 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002663/0.7519, allocations: 60 kB / 1.112 GB, free: 4.449 MB / 0.7136 GB 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.000195/0.7521, allocations: 142.9 kB / 1.112 GB, free: 4.301 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002973/0.7524, allocations: 209.6 kB / 1.112 GB, free: 4.09 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.7524, allocations: 0 / 1.112 GB, free: 4.09 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001645/0.7526, allocations: 153.8 kB / 1.112 GB, free: 3.934 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000223/0.7528, allocations: 24.48 kB / 1.112 GB, free: 3.91 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008008/0.7536, allocations: 343 kB / 1.112 GB, free: 3.562 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003704/0.754, allocations: 0.7792 MB / 1.113 GB, free: 2.758 MB / 0.7136 GB Notification: Performance of SimCode: time 2.71e-07/0.754, allocations: 0 / 1.113 GB, free: 2.758 MB / 0.7136 GB Notification: Performance of Templates: time 0.005363/0.7594, allocations: 2.508 MB / 1.116 GB, free: 328 kB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)