Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID") translateModel(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID") [: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/BuildSysPro 3.5.0/package.mo): time 0.693/0.693, allocations: 127.4 MB / 134.6 MB, free: 4.062 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001176/0.001176, allocations: 189.3 kB / 164.4 MB, free: 6.867 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.286/1.286, allocations: 205.1 MB / 399.1 MB, free: 6.07 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008902/0.0008902, allocations: 94.14 kB / 476.3 MB, free: 8.82 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 5.76e-06/5.79e-06, allocations: 0 / 0.546 GB, free: 42.73 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1343, allocations: 76.75 MB / 0.6209 GB, free: 13.91 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3636/0.498, allocations: 109.9 MB / 0.7282 GB, free: 2.43 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002715/0.4983, allocations: 79.95 kB / 0.7283 GB, free: 2.352 MB / 490.7 MB Notification: Performance of FrontEnd: time 0.05126/0.5496, allocations: 17.3 MB / 0.7452 GB, free: 1.02 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.346e-05/0.5497, allocations: 16 kB / 0.7452 GB, free: 1.004 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.00214/0.5519, allocations: 0.9587 MB / 0.7462 GB, free: 15.98 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.5519, allocations: 15.97 kB / 0.7462 GB, free: 15.97 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003929/0.5523, allocations: 94.78 kB / 0.7463 GB, free: 15.88 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001421/0.5537, allocations: 0.6056 MB / 0.7469 GB, free: 15.23 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000188/0.554, allocations: 88.7 kB / 0.747 GB, free: 15.14 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.5541, allocations: 35.91 kB / 0.747 GB, free: 15.1 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008583/0.555, allocations: 342.6 kB / 0.7473 GB, free: 14.77 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009305/0.5559, allocations: 0.5174 MB / 0.7478 GB, free: 14.2 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.5559, allocations: 0 / 0.7478 GB, free: 14.2 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.285e-05/0.556, allocations: 4 kB / 0.7478 GB, free: 14.2 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.556, allocations: 12 kB / 0.7478 GB, free: 14.18 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003567/0.5596, allocations: 2.121 MB / 0.7499 GB, free: 11.99 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009853/0.5606, allocations: 421.5 kB / 0.7503 GB, free: 11.57 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003136/0.5609, allocations: 156.8 kB / 0.7505 GB, free: 11.41 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 6.005e-05/0.561, allocations: 4 kB / 0.7505 GB, free: 11.41 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004527/0.5615, allocations: 226.7 kB / 0.7507 GB, free: 11.17 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=45): time 4.389e-06/0.5615, allocations: 4.328 kB / 0.7507 GB, free: 11.17 MB / 0.5105 GB Notification: Performance of matching and sorting (n=45): time 0.0009398/0.5624, allocations: 397 kB / 0.7511 GB, free: 10.77 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.5625, allocations: 183.9 kB / 0.7512 GB, free: 10.55 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007087/0.5633, allocations: 483.9 kB / 0.7517 GB, free: 10.07 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.27e-05/0.5633, allocations: 29.7 kB / 0.7517 GB, free: 10.04 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.5635, allocations: 256.4 kB / 0.752 GB, free: 9.777 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001524/0.5637, allocations: 149.8 kB / 0.7521 GB, free: 9.629 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.537e-05/0.5637, allocations: 0 / 0.7521 GB, free: 9.629 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000196/0.5639, allocations: 382.8 kB / 0.7525 GB, free: 9.246 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002843/0.5642, allocations: 141.3 kB / 0.7526 GB, free: 9.109 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004024/0.5646, allocations: 271.3 kB / 0.7529 GB, free: 8.793 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003213/0.565, allocations: 164.8 kB / 0.753 GB, free: 8.629 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.565, allocations: 0 / 0.753 GB, free: 8.629 MB / 0.5105 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008958/0.5659, allocations: 482.1 kB / 0.7535 GB, free: 8.148 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004494/0.5664, allocations: 0.9656 MB / 0.7544 GB, free: 7.109 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.5664, allocations: 0 / 0.7544 GB, free: 7.109 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.514e-05/0.5664, allocations: 8 kB / 0.7544 GB, free: 7.102 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005727/0.567, allocations: 119.9 kB / 0.7546 GB, free: 6.984 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.12e-05/0.567, allocations: 15.92 kB / 0.7546 GB, free: 6.969 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005987/0.5676, allocations: 75.5 kB / 0.7546 GB, free: 6.895 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.345e-05/0.5677, allocations: 23.98 kB / 0.7547 GB, free: 6.871 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.043e-05/0.5677, allocations: 4 kB / 0.7547 GB, free: 6.867 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00065/0.5684, allocations: 353.4 kB / 0.755 GB, free: 6.523 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-06/0.5684, allocations: 4.312 kB / 0.755 GB, free: 6.52 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.885e-06/0.5684, allocations: 8 kB / 0.755 GB, free: 6.512 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004326/0.5688, allocations: 103.8 kB / 0.7551 GB, free: 6.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.5689, allocations: 7.938 kB / 0.7551 GB, free: 6.402 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004557/0.5693, allocations: 51.66 kB / 0.7552 GB, free: 6.352 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.001e-05/0.5694, allocations: 20.06 kB / 0.7552 GB, free: 6.332 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0001752/0.5696, allocations: 120.8 kB / 0.7553 GB, free: 6.207 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.5697, allocations: 71.16 kB / 0.7554 GB, free: 6.137 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000157/0.5698, allocations: 70.73 kB / 0.7554 GB, free: 6.066 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-05/0.5699, allocations: 8 kB / 0.7555 GB, free: 6.059 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.5699, allocations: 7.938 kB / 0.7555 GB, free: 6.051 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.5699, allocations: 0 / 0.7555 GB, free: 6.051 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007171/0.5706, allocations: 0.5756 MB / 0.756 GB, free: 5.438 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.5707, allocations: 0 / 0.756 GB, free: 5.438 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000544/0.5712, allocations: 99.88 kB / 0.7561 GB, free: 5.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.724e-06/0.5712, allocations: 4 kB / 0.7561 GB, free: 5.336 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.096e-05/0.5713, allocations: 7.891 kB / 0.7561 GB, free: 5.328 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.5713, allocations: 4 kB / 0.7561 GB, free: 5.324 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.5713, allocations: 3.984 kB / 0.7561 GB, free: 5.32 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001021/0.5723, allocations: 0.6185 MB / 0.7567 GB, free: 4.684 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000276/0.5726, allocations: 204 kB / 0.7569 GB, free: 4.465 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.5727, allocations: 4 kB / 0.7569 GB, free: 4.461 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005647/0.5733, allocations: 63.84 kB / 0.757 GB, free: 4.398 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.253e-05/0.5734, allocations: 27.95 kB / 0.757 GB, free: 4.371 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.87e-05/0.5734, allocations: 19.98 kB / 0.757 GB, free: 4.352 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0004551/0.5739, allocations: 367.2 kB / 0.7574 GB, free: 3.996 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0007143/0.5746, allocations: 219.1 kB / 0.7576 GB, free: 3.781 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001947/0.5748, allocations: 115.1 kB / 0.7577 GB, free: 3.66 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001064/0.5759, allocations: 0.6448 MB / 0.7583 GB, free: 3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.5759, allocations: 0.5 kB / 0.7583 GB, free: 3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0003467/0.5763, allocations: 199.5 kB / 0.7585 GB, free: 2.805 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009281/0.5772, allocations: 169.2 kB / 0.7587 GB, free: 2.648 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002236/0.5795, allocations: 0.8919 MB / 0.7596 GB, free: 1.727 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000753/0.5802, allocations: 0.993 MB / 0.7605 GB, free: 0.7031 MB / 0.5105 GB Notification: Performance of SimCode: time 2.71e-07/0.5802, allocations: 0 / 0.7605 GB, free: 0.7031 MB / 0.5105 GB Notification: Performance of Templates: time 0.02051/0.6008, allocations: 10.77 MB / 0.7711 GB, free: 6.008 MB / 0.5261 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.sim & ./BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe 2>&1)