Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [: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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.615/1.615, allocations: 289.8 MB / 297 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001305/0.001305, allocations: 181.3 kB / 366.3 MB, free: 1.969 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.351/1.351, allocations: 205.2 MB / 0.6256 GB, free: 5.789 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008511/0.0008508, allocations: 92.7 kB / 0.7396 GB, free: 39.63 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2573/0.2582, allocations: 122.4 MB / 0.8591 GB, free: 13.25 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6648/0.9231, allocations: 116.3 MB / 0.9726 GB, free: 68.12 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2015/1.125, allocations: 140.2 MB / 1.11 GB, free: 8.344 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/1.125, allocations: 73.44 kB / 1.11 GB, free: 8.273 MB / 0.7136 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.01024/1.135, allocations: 3.598 MB / 1.113 GB, free: 4.645 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/1.135, allocations: 8 kB / 1.113 GB, free: 4.637 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.302e-05/1.135, allocations: 23.72 kB / 1.113 GB, free: 4.613 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003069/1.136, allocations: 223.9 kB / 1.113 GB, free: 4.355 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/1.136, allocations: 4 kB / 1.113 GB, free: 4.352 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.92e-05/1.136, allocations: 8.875 kB / 1.113 GB, free: 4.344 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001187/1.136, allocations: 36 kB / 1.113 GB, free: 4.309 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001836/1.136, allocations: 119.1 kB / 1.114 GB, free: 4.172 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/1.136, allocations: 0 / 1.114 GB, free: 4.172 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/1.136, allocations: 4 kB / 1.114 GB, free: 4.168 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/1.136, allocations: 0 / 1.114 GB, free: 4.168 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009892/1.137, allocations: 0.7125 MB / 1.114 GB, free: 3.402 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.352e-05/1.137, allocations: 34.52 kB / 1.114 GB, free: 3.359 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.533e-05/1.137, allocations: 20.86 kB / 1.114 GB, free: 3.336 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/1.137, allocations: 4 kB / 1.114 GB, free: 3.332 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001414/1.137, allocations: 106.7 kB / 1.114 GB, free: 3.203 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/1.137, allocations: 1.219 kB / 1.114 GB, free: 3.203 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0002415/1.138, allocations: 97.41 kB / 1.114 GB, free: 3.102 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.972e-05/1.138, allocations: 128.5 kB / 1.115 GB, free: 2.945 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001574/1.138, allocations: 165.5 kB / 1.115 GB, free: 2.773 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.762e-05/1.138, allocations: 25.7 kB / 1.115 GB, free: 2.742 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.11e-05/1.138, allocations: 119.8 kB / 1.115 GB, free: 2.621 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.343e-05/1.138, allocations: 35.61 kB / 1.115 GB, free: 2.586 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.483e-06/1.138, allocations: 0 / 1.115 GB, free: 2.586 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001367/1.138, allocations: 326.8 kB / 1.115 GB, free: 2.258 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.672e-05/1.138, allocations: 20.38 kB / 1.115 GB, free: 2.234 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/1.138, allocations: 128.8 kB / 1.115 GB, free: 2.059 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.68e-05/1.139, allocations: 43.92 kB / 1.115 GB, free: 2.016 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/1.139, allocations: 0 / 1.115 GB, free: 2.016 MB / 0.7136 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002392/1.139, allocations: 158.4 kB / 1.116 GB, free: 1.855 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/1.139, allocations: 4 kB / 1.116 GB, free: 1.852 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/1.139, allocations: 8 kB / 1.116 GB, free: 1.844 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/1.139, allocations: 8 kB / 1.116 GB, free: 1.836 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/1.139, allocations: 32.39 kB / 1.116 GB, free: 1.805 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/1.139, allocations: 19.92 kB / 1.116 GB, free: 1.785 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001584/1.139, allocations: 27.89 kB / 1.116 GB, free: 1.758 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.403e-05/1.139, allocations: 8 kB / 1.116 GB, free: 1.75 MB / 0.7136 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 9.014e-05/1.139, allocations: 112.9 kB / 1.116 GB, free: 1.633 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.858e-05/1.139, allocations: 19.81 kB / 1.116 GB, free: 1.613 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.661e-05/1.139, allocations: 21.39 kB / 1.116 GB, free: 1.59 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/1.139, allocations: 4 kB / 1.116 GB, free: 1.586 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/1.139, allocations: 3.938 kB / 1.116 GB, free: 1.582 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/1.139, allocations: 1.5 kB / 1.116 GB, free: 1.582 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006641/1.14, allocations: 474.1 kB / 1.116 GB, free: 1.074 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/1.14, allocations: 0 / 1.116 GB, free: 1.074 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001407/1.14, allocations: 19.98 kB / 1.116 GB, free: 1.055 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/1.14, allocations: 0 / 1.116 GB, free: 1.055 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/1.14, allocations: 4 kB / 1.116 GB, free: 1.051 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/1.14, allocations: 7.938 kB / 1.116 GB, free: 1.043 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/1.14, allocations: 0 / 1.116 GB, free: 1.043 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003294/1.141, allocations: 341.4 kB / 1.117 GB, free: 0.668 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005566/1.141, allocations: 0.7443 MB / 1.117 GB, free: 15.88 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.94e-05/1.141, allocations: 92.91 kB / 1.117 GB, free: 15.77 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.348e-05/1.141, allocations: 4 kB / 1.117 GB, free: 15.77 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001932/1.142, allocations: 19.89 kB / 1.117 GB, free: 15.75 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.584e-05/1.142, allocations: 11.98 kB / 1.118 GB, free: 15.74 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/1.142, allocations: 8 kB / 1.118 GB, free: 15.73 MB / 0.7292 GB Notification: Performance of sort global known variables: time 9.644e-05/1.142, allocations: 124.3 kB / 1.118 GB, free: 15.61 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001025/1.143, allocations: 29.53 kB / 1.118 GB, free: 15.58 MB / 0.7292 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.0001661/1.143, allocations: 108.9 kB / 1.118 GB, free: 15.46 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0001843/1.143, allocations: 76.61 kB / 1.118 GB, free: 15.39 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/1.143, allocations: 256 / 1.118 GB, free: 15.39 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 7.399e-05/1.143, allocations: 40 kB / 1.118 GB, free: 15.35 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004798/1.144, allocations: 66.23 kB / 1.118 GB, free: 15.29 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005229/1.144, allocations: 244 kB / 1.118 GB, free: 15.02 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000377/1.145, allocations: 0.7551 MB / 1.119 GB, free: 14.24 MB / 0.7292 GB Notification: Performance of SimCode: time 3.01e-07/1.145, allocations: 0 / 1.119 GB, free: 14.24 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)