Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.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.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset") translateModel(IBPSA.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset") [: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.0014/0.0014, allocations: 188.3 kB / 7.809 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.4673/0.4673, allocations: 90.85 MB / 99.07 MB, free: 14.96 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.201/1.201, allocations: 221.4 MB / 342.8 MB, free: 5.273 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.001136/0.001136, allocations: 99.59 kB / 415.5 MB, free: 6.43 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 6.432e-06/6.452e-06, allocations: 0 / 493.9 MB, free: 8.07 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2827, allocations: 72.3 MB / 0.5529 GB, free: 73.23 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1046/0.3874, allocations: 102.6 MB / 0.6531 GB, free: 7.383 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002046/0.3876, allocations: 72.45 kB / 0.6532 GB, free: 7.312 MB / 474.7 MB Notification: Performance of FrontEnd: time 0.009175/0.3968, allocations: 3.211 MB / 0.6563 GB, free: 4.141 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.498e-05/0.3969, allocations: 4.875 kB / 0.6563 GB, free: 4.137 MB / 474.7 MB 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.0005252/0.3974, allocations: 447.4 kB / 0.6568 GB, free: 3.66 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.3974, allocations: 8.031 kB / 0.6568 GB, free: 3.652 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.876e-05/0.3975, allocations: 20.47 kB / 0.6568 GB, free: 3.637 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002715/0.3978, allocations: 230.5 kB / 0.657 GB, free: 3.371 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.3978, allocations: 4 kB / 0.657 GB, free: 3.367 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.789e-05/0.3978, allocations: 12 kB / 0.657 GB, free: 3.355 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000104/0.3979, allocations: 38.8 kB / 0.6571 GB, free: 3.32 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001828/0.3981, allocations: 119.3 kB / 0.6572 GB, free: 3.184 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.3981, allocations: 0 / 0.6572 GB, free: 3.184 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.3982, allocations: 0 / 0.6572 GB, free: 3.184 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.874e-06/0.3982, allocations: 7.984 kB / 0.6572 GB, free: 3.176 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008571/0.399, allocations: 0.7031 MB / 0.6579 GB, free: 2.426 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.299e-05/0.3991, allocations: 36.36 kB / 0.6579 GB, free: 2.383 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.99e-05/0.3992, allocations: 24.86 kB / 0.6579 GB, free: 2.355 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.3992, allocations: 0 / 0.6579 GB, free: 2.355 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001184/0.3993, allocations: 105.7 kB / 0.658 GB, free: 2.23 MB / 474.7 MB Notification: Performance of pre-optimization done (n=11): time 2.935e-06/0.3993, allocations: 0 / 0.658 GB, free: 2.23 MB / 474.7 MB Notification: Performance of matching and sorting (n=11): time 0.000208/0.3995, allocations: 93.38 kB / 0.6581 GB, free: 2.133 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.757e-05/0.3996, allocations: 140.4 kB / 0.6583 GB, free: 1.965 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000156/0.3998, allocations: 153.5 kB / 0.6584 GB, free: 1.809 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.3998, allocations: 25.77 kB / 0.6584 GB, free: 1.777 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.534e-05/0.3999, allocations: 123.9 kB / 0.6585 GB, free: 1.652 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.849e-05/0.3999, allocations: 31.55 kB / 0.6586 GB, free: 1.621 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.222e-06/0.3999, allocations: 0 / 0.6586 GB, free: 1.621 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.4, allocations: 330.7 kB / 0.6589 GB, free: 1.289 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.176e-05/0.4001, allocations: 24.38 kB / 0.6589 GB, free: 1.262 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001/0.4002, allocations: 123.2 kB / 0.659 GB, free: 1.09 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.171e-05/0.4002, allocations: 43.92 kB / 0.6591 GB, free: 1.047 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.4003, allocations: 0 / 0.6591 GB, free: 1.047 MB / 474.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000247/0.4005, allocations: 153.2 kB / 0.6592 GB, free: 0.8906 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.4005, allocations: 4 kB / 0.6592 GB, free: 0.8867 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.4005, allocations: 4 kB / 0.6592 GB, free: 0.8828 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.4006, allocations: 8 kB / 0.6592 GB, free: 0.875 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.4007, allocations: 44.41 kB / 0.6593 GB, free: 0.832 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.4007, allocations: 4 kB / 0.6593 GB, free: 0.8281 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001543/0.4009, allocations: 27.89 kB / 0.6593 GB, free: 0.8008 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.224e-05/0.4009, allocations: 9.969 kB / 0.6593 GB, free: 0.793 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * 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 7.579e-05/0.401, allocations: 120.5 kB / 0.6594 GB, free: 0.6719 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.468e-05/0.401, allocations: 19.81 kB / 0.6595 GB, free: 0.6523 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.418e-05/0.4011, allocations: 21.39 kB / 0.6595 GB, free: 0.6289 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.4011, allocations: 7.984 kB / 0.6595 GB, free: 0.6211 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.4011, allocations: 1.812 kB / 0.6595 GB, free: 0.6211 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.4011, allocations: 4 kB / 0.6595 GB, free: 0.6172 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000566/0.4017, allocations: 466.2 kB / 0.6599 GB, free: 120 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.4017, allocations: 0 / 0.6599 GB, free: 120 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001374/0.4018, allocations: 23.92 kB / 0.66 GB, free: 96 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.4019, allocations: 4 kB / 0.66 GB, free: 92 kB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.4019, allocations: 4 kB / 0.66 GB, free: 88 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.4019, allocations: 0 / 0.66 GB, free: 88 kB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.4019, allocations: 4 kB / 0.66 GB, free: 84 kB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003314/0.4022, allocations: 358.1 kB / 0.6603 GB, free: 15.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.75e-05/0.4023, allocations: 96.84 kB / 0.6604 GB, free: 15.58 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.751e-05/0.4023, allocations: 0 / 0.6604 GB, free: 15.58 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001903/0.4025, allocations: 23.98 kB / 0.6604 GB, free: 15.56 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.65e-05/0.4026, allocations: 15.98 kB / 0.6604 GB, free: 15.54 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.098e-06/0.4026, allocations: 4 kB / 0.6604 GB, free: 15.54 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.846e-05/0.4027, allocations: 128.3 kB / 0.6606 GB, free: 15.41 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0003193/0.403, allocations: 25.88 kB / 0.6606 GB, free: 15.39 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,intWitRes1.trigger,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001149/0.4031, allocations: 95.25 kB / 0.6607 GB, free: 15.29 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001693/0.4033, allocations: 84.67 kB / 0.6608 GB, free: 15.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.4033, allocations: 4 kB / 0.6608 GB, free: 15.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 7.033e-05/0.4034, allocations: 31.94 kB / 0.6608 GB, free: 15.17 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000439/0.4039, allocations: 57.77 kB / 0.6608 GB, free: 15.12 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004559/0.4043, allocations: 236.2 kB / 0.6611 GB, free: 14.85 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002963/0.4046, allocations: 0.7432 MB / 0.6618 GB, free: 14.08 MB / 490.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4046, allocations: 0 / 0.6618 GB, free: 14.08 MB / 490.7 MB Notification: Performance of Templates: time 0.004362/0.409, allocations: 1.743 MB / 0.6635 GB, free: 12.39 MB / 490.7 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.sim & ./IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)