Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.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/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.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset") translateModel(IBPSA.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001138/0.001138, allocations: 184.1 kB / 7.804 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4444/0.4444, allocations: 90.86 MB / 99.08 MB, free: 14.93 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.239/1.239, allocations: 221.4 MB / 342.8 MB, free: 5.18 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.0009321/0.0009322, allocations: 87.66 kB / 415.5 MB, free: 6.414 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 7.635e-06/7.675e-06, allocations: 4 kB / 493.9 MB, free: 8.055 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3294, allocations: 72.3 MB / 0.5529 GB, free: 73.46 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.125/0.4544, allocations: 107.3 MB / 0.6577 GB, free: 2.723 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/0.4547, allocations: 79.95 kB / 0.6578 GB, free: 2.645 MB / 474.7 MB Notification: Performance of FrontEnd: time 0.0311/0.4858, allocations: 12.01 MB / 0.6695 GB, free: 6.723 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.145e-05/0.4859, allocations: 20 kB / 0.6695 GB, free: 6.703 MB / 490.7 MB 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.001453/0.4874, allocations: 0.8801 MB / 0.6704 GB, free: 5.773 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.4874, allocations: 8.031 kB / 0.6704 GB, free: 5.766 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/0.4876, allocations: 82.97 kB / 0.6705 GB, free: 5.684 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008001/0.4884, allocations: 0.5328 MB / 0.671 GB, free: 5.105 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.902e-05/0.4884, allocations: 20 kB / 0.671 GB, free: 5.086 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.904e-05/0.4885, allocations: 32 kB / 0.671 GB, free: 5.055 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007539/0.4893, allocations: 394.6 kB / 0.6714 GB, free: 4.672 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008582/0.4902, allocations: 0.5208 MB / 0.6719 GB, free: 4.117 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/0.4902, allocations: 10.53 kB / 0.6719 GB, free: 4.109 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.585e-05/0.4902, allocations: 0 / 0.6719 GB, free: 4.109 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.4903, allocations: 15.98 kB / 0.672 GB, free: 4.094 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002933/0.4932, allocations: 1.995 MB / 0.6739 GB, free: 2.047 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005251/0.4937, allocations: 302.6 kB / 0.6742 GB, free: 1.746 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003044/0.4941, allocations: 202.5 kB / 0.6744 GB, free: 1.543 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.399e-05/0.4941, allocations: 12.47 kB / 0.6744 GB, free: 1.527 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003466/0.4945, allocations: 224.5 kB / 0.6746 GB, free: 1.301 MB / 490.7 MB Notification: Performance of pre-optimization done (n=50): time 1.794e-06/0.4945, allocations: 0 / 0.6746 GB, free: 1.301 MB / 490.7 MB Notification: Performance of matching and sorting (n=50): time 0.0006785/0.4952, allocations: 391.3 kB / 0.675 GB, free: 0.9102 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.293e-05/0.4952, allocations: 170.6 kB / 0.6752 GB, free: 0.707 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003837/0.4956, allocations: 345.1 kB / 0.6755 GB, free: 376 kB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.702e-05/0.4957, allocations: 29.7 kB / 0.6755 GB, free: 340 kB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001611/0.4959, allocations: 260.3 kB / 0.6758 GB, free: 76 kB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001705/0.496, allocations: 161.7 kB / 0.6759 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.213e-05/0.4961, allocations: 0 / 0.6759 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001545/0.4962, allocations: 362.8 kB / 0.6763 GB, free: 15.55 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002532/0.4965, allocations: 141.3 kB / 0.6764 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003217/0.4968, allocations: 247.2 kB / 0.6766 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002866/0.4971, allocations: 173.4 kB / 0.6768 GB, free: 14.97 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.4971, allocations: 0 / 0.6768 GB, free: 14.97 MB / 0.4948 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0007234/0.4978, allocations: 463.8 kB / 0.6772 GB, free: 14.51 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.4979, allocations: 7.938 kB / 0.6772 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.4979, allocations: 6.422 kB / 0.6772 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.4979, allocations: 4 kB / 0.6773 GB, free: 14.49 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005321/0.4984, allocations: 120.1 kB / 0.6774 GB, free: 14.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.4985, allocations: 7 kB / 0.6774 GB, free: 14.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004391/0.4989, allocations: 71.64 kB / 0.6774 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.339e-05/0.499, allocations: 19.91 kB / 0.6775 GB, free: 14.28 MB / 0.4948 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.0001292/0.4991, allocations: 124.9 kB / 0.6776 GB, free: 14.15 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.821e-05/0.4992, allocations: 55.33 kB / 0.6776 GB, free: 14.1 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001234/0.4993, allocations: 53.2 kB / 0.6777 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.4993, allocations: 8 kB / 0.6777 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.4993, allocations: 2.625 kB / 0.6777 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.4993, allocations: 3.984 kB / 0.6777 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001449/0.5008, allocations: 1.107 MB / 0.6788 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.5008, allocations: 4 kB / 0.6788 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000586/0.5014, allocations: 107.9 kB / 0.6789 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.695e-06/0.5014, allocations: 11.92 kB / 0.6789 GB, free: 12.76 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.465e-05/0.5015, allocations: 11.98 kB / 0.6789 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.5015, allocations: 4 kB / 0.6789 GB, free: 12.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.5015, allocations: 0 / 0.6789 GB, free: 12.74 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009667/0.5025, allocations: 0.7127 MB / 0.6796 GB, free: 12.02 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001926/0.5027, allocations: 176.3 kB / 0.6798 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.878e-05/0.5027, allocations: 0 / 0.6798 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004145/0.5032, allocations: 55.95 kB / 0.6798 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.248e-05/0.5033, allocations: 36.28 kB / 0.6799 GB, free: 11.74 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3e-05/0.5033, allocations: 16 kB / 0.6799 GB, free: 11.72 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0002775/0.5036, allocations: 263.2 kB / 0.6801 GB, free: 11.47 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0004541/0.504, allocations: 139.5 kB / 0.6803 GB, free: 11.33 MB / 0.4948 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.0001449/0.5042, allocations: 104.8 kB / 0.6804 GB, free: 11.22 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0006409/0.5048, allocations: 413.5 kB / 0.6808 GB, free: 10.81 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.5049, allocations: 8.062 kB / 0.6808 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002934/0.5052, allocations: 201.6 kB / 0.681 GB, free: 10.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006498/0.5058, allocations: 121.3 kB / 0.6811 GB, free: 10.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002789/0.5086, allocations: 1.253 MB / 0.6823 GB, free: 9.211 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006619/0.5093, allocations: 0.9402 MB / 0.6832 GB, free: 8.242 MB / 0.4948 GB Notification: Performance of SimCode: time 3.4e-07/0.5093, allocations: 0 / 0.6832 GB, free: 8.242 MB / 0.4948 GB Notification: Performance of Templates: time 0.01293/0.5222, allocations: 6.579 MB / 0.6896 GB, free: 1.824 MB / 0.4948 GB make -j1 -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.sim & ./IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)