Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.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/IDEAS 3.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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset") translateModel(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset") [: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.001794/0.001794, allocations: 186.5 kB / 7.46 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6245/0.6245, allocations: 133.5 MB / 141.4 MB, free: 15.76 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.098/1.098, allocations: 221.3 MB / 395 MB, free: 10.2 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008357/0.0008357, allocations: 94.88 kB / 477.8 MB, free: 10.81 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 5.42e-06/5.52e-06, allocations: 0 / 0.5528 GB, free: 88.93 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1044, allocations: 82.3 MB / 0.6332 GB, free: 14.11 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3151/0.4195, allocations: 117.1 MB / 0.7476 GB, free: 10.82 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001744/0.4197, allocations: 83.64 kB / 0.7477 GB, free: 10.82 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.02773/0.4474, allocations: 12 MB / 0.7594 GB, free: 8.051 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.167e-05/0.4475, allocations: 17.41 kB / 0.7594 GB, free: 8.047 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001517/0.449, allocations: 0.8842 MB / 0.7603 GB, free: 23.38 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.4491, allocations: 8.594 kB / 0.7603 GB, free: 23.38 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002012/0.4493, allocations: 85.94 kB / 0.7604 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008185/0.4501, allocations: 0.5386 MB / 0.7609 GB, free: 22.99 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.829e-05/0.4501, allocations: 19 kB / 0.7609 GB, free: 22.99 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.407e-05/0.4502, allocations: 34.06 kB / 0.7609 GB, free: 22.99 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007299/0.451, allocations: 393.8 kB / 0.7613 GB, free: 22.97 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008119/0.4518, allocations: 0.52 MB / 0.7618 GB, free: 22.79 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.346e-05/0.4518, allocations: 5.406 kB / 0.7618 GB, free: 22.79 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.612e-05/0.4519, allocations: 0.9688 kB / 0.7618 GB, free: 22.79 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.4519, allocations: 14.41 kB / 0.7618 GB, free: 22.79 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002726/0.4546, allocations: 1.994 MB / 0.7638 GB, free: 21.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004762/0.4551, allocations: 307.1 kB / 0.7641 GB, free: 21.76 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002819/0.4554, allocations: 209.2 kB / 0.7643 GB, free: 21.74 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 3.48e-05/0.4554, allocations: 6.438 kB / 0.7643 GB, free: 21.74 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003091/0.4557, allocations: 226 kB / 0.7645 GB, free: 21.66 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=50): time 2.365e-06/0.4558, allocations: 4 kB / 0.7645 GB, free: 21.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=50): time 0.0006209/0.4564, allocations: 396.5 kB / 0.7649 GB, free: 21.57 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.673e-05/0.4565, allocations: 160.9 kB / 0.765 GB, free: 21.38 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003487/0.4568, allocations: 345 kB / 0.7654 GB, free: 21.25 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.766e-05/0.4569, allocations: 30.72 kB / 0.7654 GB, free: 21.21 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.457, allocations: 252.8 kB / 0.7656 GB, free: 21.02 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 9.05e-05/0.4571, allocations: 161.9 kB / 0.7658 GB, free: 20.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.102e-05/0.4571, allocations: 0 / 0.7658 GB, free: 20.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.4573, allocations: 362.2 kB / 0.7661 GB, free: 20.57 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002303/0.4575, allocations: 148.2 kB / 0.7663 GB, free: 20.57 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002745/0.4578, allocations: 240.8 kB / 0.7665 GB, free: 20.47 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002513/0.458, allocations: 176.2 kB / 0.7667 GB, free: 20.44 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.458, allocations: 1.281 kB / 0.7667 GB, free: 20.44 MB / 0.5105 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0006561/0.4587, allocations: 466.8 kB / 0.7671 GB, free: 20.34 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/0.4587, allocations: 4.344 kB / 0.7671 GB, free: 20.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/0.4587, allocations: 1.469 kB / 0.7671 GB, free: 20.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.4588, allocations: 12.38 kB / 0.7671 GB, free: 20.33 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004933/0.4593, allocations: 119.3 kB / 0.7672 GB, free: 20.31 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.4593, allocations: 7.531 kB / 0.7673 GB, free: 20.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004004/0.4597, allocations: 74.11 kB / 0.7673 GB, free: 20.27 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.721e-05/0.4597, allocations: 17.81 kB / 0.7673 GB, free: 20.27 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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.0001226/0.4599, allocations: 118.1 kB / 0.7675 GB, free: 20.16 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.023e-05/0.4599, allocations: 54.66 kB / 0.7675 GB, free: 20.13 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001031/0.46, allocations: 56.61 kB / 0.7676 GB, free: 20.12 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.4601, allocations: 4.531 kB / 0.7676 GB, free: 20.12 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.106e-06/0.4601, allocations: 4 kB / 0.7676 GB, free: 20.11 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.4601, allocations: 3.984 kB / 0.7676 GB, free: 20.11 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001287/0.4614, allocations: 1.108 MB / 0.7687 GB, free: 19.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.4614, allocations: 1 kB / 0.7687 GB, free: 19.64 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005083/0.4619, allocations: 112.1 kB / 0.7688 GB, free: 19.62 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.992e-06/0.4619, allocations: 6.672 kB / 0.7688 GB, free: 19.61 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.051e-05/0.4619, allocations: 5.219 kB / 0.7688 GB, free: 19.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.462, allocations: 2.625 kB / 0.7688 GB, free: 19.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.462, allocations: 0 / 0.7688 GB, free: 19.61 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008576/0.4628, allocations: 0.7148 MB / 0.7695 GB, free: 19.41 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001824/0.463, allocations: 180.2 kB / 0.7696 GB, free: 19.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.657e-05/0.4631, allocations: 2.375 kB / 0.7696 GB, free: 19.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003782/0.4635, allocations: 50.47 kB / 0.7697 GB, free: 19.25 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.946e-05/0.4636, allocations: 41.14 kB / 0.7697 GB, free: 19.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.852e-05/0.4636, allocations: 13.41 kB / 0.7697 GB, free: 19.23 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0002511/0.4639, allocations: 269.8 kB / 0.77 GB, free: 19.12 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0004187/0.4643, allocations: 141.6 kB / 0.7701 GB, free: 19.09 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.conPID.trigger,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * 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.0001406/0.4644, allocations: 106.5 kB / 0.7702 GB, free: 19 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0005706/0.465, allocations: 414.6 kB / 0.7706 GB, free: 18.93 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.465, allocations: 0 / 0.7706 GB, free: 18.93 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002683/0.4653, allocations: 199.9 kB / 0.7708 GB, free: 18.92 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005906/0.4659, allocations: 115.3 kB / 0.7709 GB, free: 18.89 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002413/0.4683, allocations: 1.261 MB / 0.7722 GB, free: 18.27 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00057/0.4689, allocations: 0.9458 MB / 0.7731 GB, free: 17.46 MB / 0.5105 GB Notification: Performance of SimCode: time 2.91e-07/0.4689, allocations: 1.219 kB / 0.7731 GB, free: 17.46 MB / 0.5105 GB Notification: Performance of Templates: time 0.01064/0.4796, allocations: 6.576 MB / 0.7795 GB, free: 14.27 MB / 0.5105 GB make -j1 -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.sim & ./IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)