Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") [: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.1.4-maint.8.1.x/package.mo): time 1.331/1.331, allocations: 289.8 MB / 297.1 MB, free: 6.699 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.0009846/0.0009846, allocations: 181.3 kB / 366.3 MB, free: 2.012 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.03/1.03, allocations: 205.1 MB / 0.6256 GB, free: 5.871 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.0007724/0.0007723, allocations: 85.17 kB / 0.7395 GB, free: 39.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.084e-06/7.184e-06, allocations: 4 kB / 0.859 GB, free: 13.42 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4004/0.4004, allocations: 116.3 MB / 0.9725 GB, free: 68.64 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1478/0.5483, allocations: 155 MB / 1.124 GB, free: 9.559 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001875/0.5485, allocations: 72.47 kB / 1.124 GB, free: 9.488 MB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. Notification: Performance of FrontEnd: time 0.01246/0.561, allocations: 5.283 MB / 1.129 GB, free: 4.164 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 8.857e-06/0.561, allocations: 4 kB / 1.129 GB, free: 4.16 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0004114/0.5614, allocations: 461.6 kB / 1.13 GB, free: 3.648 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/0.5615, allocations: 8.031 kB / 1.13 GB, free: 3.641 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001893/0.5617, allocations: 31.8 kB / 1.13 GB, free: 3.609 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002146/0.5619, allocations: 211.3 kB / 1.13 GB, free: 3.363 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.257e-05/0.5619, allocations: 33.89 kB / 1.13 GB, free: 3.324 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.524e-05/0.562, allocations: 8 kB / 1.13 GB, free: 3.316 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001481/0.5621, allocations: 69.23 kB / 1.13 GB, free: 3.25 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001751/0.5623, allocations: 124.8 kB / 1.13 GB, free: 3.113 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.5623, allocations: 0 / 1.13 GB, free: 3.113 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.5623, allocations: 3.906 kB / 1.13 GB, free: 3.109 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.67e-05/0.5624, allocations: 4.188 kB / 1.13 GB, free: 3.105 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006757/0.563, allocations: 0.6067 MB / 1.131 GB, free: 2.449 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001669/0.5632, allocations: 58.48 kB / 1.131 GB, free: 2.383 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.912e-05/0.5633, allocations: 20.98 kB / 1.131 GB, free: 2.359 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.31e-05/0.5633, allocations: 3.984 kB / 1.131 GB, free: 2.355 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001026/0.5634, allocations: 118.8 kB / 1.131 GB, free: 2.215 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.5634, allocations: 0 / 1.131 GB, free: 2.215 MB / 0.7292 GB Notification: Performance of matching and sorting (n=7): time 0.0001536/0.5636, allocations: 73.5 kB / 1.131 GB, free: 2.137 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.89e-05/0.5636, allocations: 141.9 kB / 1.131 GB, free: 1.969 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.5638, allocations: 154 kB / 1.131 GB, free: 1.812 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.5638, allocations: 29.64 kB / 1.131 GB, free: 1.777 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 5.769e-05/0.5639, allocations: 135.4 kB / 1.131 GB, free: 1.641 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.511e-05/0.5639, allocations: 15.81 kB / 1.131 GB, free: 1.625 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.643e-06/0.5639, allocations: 0 / 1.131 GB, free: 1.625 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 9.113e-05/0.564, allocations: 322.8 kB / 1.132 GB, free: 1.301 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.962e-05/0.5641, allocations: 31.98 kB / 1.132 GB, free: 1.27 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.985e-05/0.5642, allocations: 107.6 kB / 1.132 GB, free: 1.133 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.324e-05/0.5642, allocations: 41.89 kB / 1.132 GB, free: 1.094 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.5642, allocations: 3.938 kB / 1.132 GB, free: 1.09 MB / 0.7292 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002002/0.5644, allocations: 137.7 kB / 1.132 GB, free: 0.9492 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 8.837e-06/0.5645, allocations: 8.031 kB / 1.132 GB, free: 0.9414 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.5645, allocations: 4 kB / 1.132 GB, free: 0.9375 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.5645, allocations: 7.906 kB / 1.132 GB, free: 0.9297 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.5646, allocations: 35.92 kB / 1.132 GB, free: 0.8945 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.5646, allocations: 4 kB / 1.132 GB, free: 0.8906 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001309/0.5648, allocations: 23.83 kB / 1.132 GB, free: 0.8672 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.5648, allocations: 14.19 kB / 1.132 GB, free: 0.8555 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,$PRE.voltageControl.ctrl.connected,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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 8.217e-05/0.5649, allocations: 142.6 kB / 1.132 GB, free: 0.7031 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.999e-05/0.5649, allocations: 19.81 kB / 1.132 GB, free: 0.6836 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.788e-05/0.5649, allocations: 9.391 kB / 1.132 GB, free: 0.668 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/0.5649, allocations: 4 kB / 1.132 GB, free: 0.6641 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.565, allocations: 0 / 1.132 GB, free: 0.6641 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.565, allocations: 0 / 1.132 GB, free: 0.6641 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001318/0.5651, allocations: 196.6 kB / 1.132 GB, free: 448 kB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.5651, allocations: 0 / 1.132 GB, free: 448 kB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.999e-05/0.5652, allocations: 19.98 kB / 1.132 GB, free: 428 kB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.5652, allocations: 0 / 1.132 GB, free: 428 kB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.5652, allocations: 0 / 1.132 GB, free: 428 kB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.5652, allocations: 0 / 1.132 GB, free: 428 kB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.5652, allocations: 0 / 1.132 GB, free: 428 kB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001942/0.5654, allocations: 136.9 kB / 1.133 GB, free: 272 kB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.558e-05/0.5655, allocations: 92.86 kB / 1.133 GB, free: 160 kB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.009e-05/0.5655, allocations: 12.06 kB / 1.133 GB, free: 148 kB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.652e-05/0.5656, allocations: 12.03 kB / 1.133 GB, free: 136 kB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.706e-05/0.5657, allocations: 7.984 kB / 1.133 GB, free: 128 kB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.716e-06/0.5657, allocations: 4 kB / 1.133 GB, free: 124 kB / 0.7292 GB Notification: Performance of sort global known variables: time 7.369e-05/0.5658, allocations: 119.3 kB / 1.133 GB, free: 4 kB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002292/0.566, allocations: 27.98 kB / 1.133 GB, free: 15.98 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageControl.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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.0001002/0.5661, allocations: 109.4 kB / 1.133 GB, free: 15.86 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001738/0.5663, allocations: 127.3 kB / 1.133 GB, free: 15.73 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.5663, allocations: 3.938 kB / 1.133 GB, free: 15.72 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 8.566e-05/0.5664, allocations: 69.7 kB / 1.133 GB, free: 15.65 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001537/0.5666, allocations: 19.89 kB / 1.133 GB, free: 15.63 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003751/0.5669, allocations: 172.3 kB / 1.133 GB, free: 15.43 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002615/0.5672, allocations: 0.7387 MB / 1.134 GB, free: 14.67 MB / 0.7448 GB Notification: Performance of SimCode: time 2.81e-07/0.5672, allocations: 0 / 1.134 GB, free: 14.67 MB / 0.7448 GB Notification: Performance of Templates: time 0.003033/0.5703, allocations: 1.191 MB / 1.135 GB, free: 13.51 MB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)