Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.7566/0.7566, allocations: 141.8 MB / 149.1 MB, free: 4.406 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 184.8 kB / 181.9 MB, free: 72 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.603/1.603, allocations: 221.3 MB / 436 MB, free: 9.277 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009516/0.0009516, allocations: 93.33 kB / 0.507 GB, free: 24.21 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00202/0.00202, allocations: 282.3 kB / 0.5884 GB, free: 12.25 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.177e-05/1.18e-05, allocations: 7.938 kB / 0.6759 GB, free: 2.621 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4191/0.4191, allocations: 82.76 MB / 0.7567 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1159/0.5351, allocations: 109.8 MB / 0.8639 GB, free: 2.988 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001795/0.5353, allocations: 71.91 kB / 0.864 GB, free: 2.918 MB / 0.5263 GB Notification: Performance of FrontEnd: time 0.008184/0.5435, allocations: 3.201 MB / 0.8671 GB, free: 15.74 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 1.661e-05/0.5436, allocations: 4.656 kB / 0.8671 GB, free: 15.74 MB / 0.5419 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.0006528/0.5442, allocations: 443.8 kB / 0.8675 GB, free: 15.26 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.5443, allocations: 9.281 kB / 0.8675 GB, free: 15.25 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.261e-05/0.5444, allocations: 19.81 kB / 0.8676 GB, free: 15.23 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003354/0.5447, allocations: 230.6 kB / 0.8678 GB, free: 14.97 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.416e-05/0.5448, allocations: 8.781 kB / 0.8678 GB, free: 14.96 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.458e-05/0.5448, allocations: 11.98 kB / 0.8678 GB, free: 14.95 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001212/0.5449, allocations: 32 kB / 0.8678 GB, free: 14.92 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/0.5452, allocations: 121.9 kB / 0.868 GB, free: 14.78 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.62e-05/0.5452, allocations: 0 / 0.868 GB, free: 14.78 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.5452, allocations: 4 kB / 0.868 GB, free: 14.77 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.884e-06/0.5453, allocations: 6.438 kB / 0.868 GB, free: 14.77 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.5463, allocations: 0.7047 MB / 0.8686 GB, free: 14.01 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 7.765e-05/0.5464, allocations: 38.56 kB / 0.8687 GB, free: 13.96 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.899e-05/0.5464, allocations: 16.86 kB / 0.8687 GB, free: 13.95 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.907e-05/0.5465, allocations: 3.938 kB / 0.8687 GB, free: 13.94 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001407/0.5466, allocations: 99.83 kB / 0.8688 GB, free: 13.82 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=11): time 1.854e-06/0.5466, allocations: 0 / 0.8688 GB, free: 13.82 MB / 0.5419 GB Notification: Performance of matching and sorting (n=11): time 0.0002508/0.5469, allocations: 97.42 kB / 0.8689 GB, free: 13.72 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.111e-05/0.547, allocations: 132.5 kB / 0.869 GB, free: 13.56 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001599/0.5471, allocations: 153.5 kB / 0.8692 GB, free: 13.4 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.5472, allocations: 29.7 kB / 0.8692 GB, free: 13.37 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 6.991e-05/0.5473, allocations: 115.8 kB / 0.8693 GB, free: 13.25 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 4.434e-05/0.5473, allocations: 39.61 kB / 0.8693 GB, free: 13.21 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.312e-06/0.5473, allocations: 0 / 0.8693 GB, free: 13.21 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.5474, allocations: 326.9 kB / 0.8697 GB, free: 12.88 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.773e-05/0.5475, allocations: 32.31 kB / 0.8697 GB, free: 12.84 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.5477, allocations: 123.2 kB / 0.8698 GB, free: 12.67 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.972e-05/0.5477, allocations: 39.92 kB / 0.8698 GB, free: 12.63 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.5477, allocations: 0 / 0.8698 GB, free: 12.63 MB / 0.5419 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002674/0.548, allocations: 153.6 kB / 0.87 GB, free: 12.48 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.548, allocations: 8 kB / 0.87 GB, free: 12.47 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/0.5481, allocations: 7.906 kB / 0.87 GB, free: 12.46 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.5481, allocations: 4 kB / 0.87 GB, free: 12.46 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001529/0.5482, allocations: 35.92 kB / 0.87 GB, free: 12.42 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.5483, allocations: 7.938 kB / 0.87 GB, free: 12.41 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001741/0.5484, allocations: 24.08 kB / 0.8701 GB, free: 12.39 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/0.5485, allocations: 17.7 kB / 0.8701 GB, free: 12.38 MB / 0.5419 GB 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 0.0001078/0.5486, allocations: 120.8 kB / 0.8702 GB, free: 12.25 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.496e-05/0.5486, allocations: 15.81 kB / 0.8702 GB, free: 12.24 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.573e-05/0.5487, allocations: 21.41 kB / 0.8702 GB, free: 12.22 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.5487, allocations: 7.938 kB / 0.8702 GB, free: 12.21 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.5487, allocations: 0 / 0.8702 GB, free: 12.21 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.5487, allocations: 8.078 kB / 0.8703 GB, free: 12.21 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006362/0.5494, allocations: 466.2 kB / 0.8707 GB, free: 11.71 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.5494, allocations: 7.906 kB / 0.8707 GB, free: 11.7 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001338/0.5495, allocations: 19.98 kB / 0.8707 GB, free: 11.68 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.5495, allocations: 4 kB / 0.8707 GB, free: 11.68 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.728e-05/0.5496, allocations: 3.984 kB / 0.8707 GB, free: 11.67 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.5496, allocations: 3.938 kB / 0.8707 GB, free: 11.67 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.5496, allocations: 4 kB / 0.8707 GB, free: 11.66 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003157/0.5499, allocations: 342.1 kB / 0.8711 GB, free: 11.29 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.722e-05/0.55, allocations: 92.86 kB / 0.8712 GB, free: 11.18 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.975e-05/0.55, allocations: 0 / 0.8712 GB, free: 11.18 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000188/0.5502, allocations: 23.98 kB / 0.8712 GB, free: 11.16 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.435e-05/0.5503, allocations: 11.97 kB / 0.8712 GB, free: 11.14 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.183e-05/0.5503, allocations: 11.94 kB / 0.8712 GB, free: 11.13 MB / 0.5419 GB Notification: Performance of sort global known variables: time 9.47e-05/0.5504, allocations: 120.5 kB / 0.8713 GB, free: 11.02 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.000357/0.5507, allocations: 31.94 kB / 0.8713 GB, free: 10.98 MB / 0.5419 GB 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.0001933/0.5509, allocations: 111.2 kB / 0.8715 GB, free: 10.86 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001681/0.5511, allocations: 75.88 kB / 0.8715 GB, free: 10.79 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.5511, allocations: 0 / 0.8715 GB, free: 10.79 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 7.594e-05/0.5512, allocations: 40.92 kB / 0.8716 GB, free: 10.75 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004681/0.5517, allocations: 49.02 kB / 0.8716 GB, free: 10.7 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005345/0.5522, allocations: 244.6 kB / 0.8718 GB, free: 10.43 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004202/0.5527, allocations: 0.7503 MB / 0.8726 GB, free: 9.66 MB / 0.5419 GB Notification: Performance of SimCode: time 2.2e-07/0.5527, allocations: 0 / 0.8726 GB, free: 9.66 MB / 0.5419 GB Notification: Performance of Templates: time 0.004587/0.5573, allocations: 1.755 MB / 0.8743 GB, free: 7.953 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)