Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_8_0_0_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.0.0/package.mo): time 2.479/2.479, allocations: 284.8 MB / 292.1 MB, free: 10.78 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.001616/0.001616, allocations: 185.2 kB / 360.3 MB, free: 7.555 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.906/1.906, allocations: 205.1 MB / 0.6187 GB, free: 13.2 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.001754/0.001752, allocations: 87.12 kB / 0.7317 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2946/0.2964, allocations: 121.4 MB / 0.8502 GB, free: 3.938 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6683/0.9647, allocations: 115.2 MB / 0.9627 GB, free: 78.34 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2519/1.217, allocations: 139 MB / 1.099 GB, free: 1.738 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002772/1.217, allocations: 69.34 kB / 1.099 GB, free: 1.672 MB / 0.698 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.01619/1.233, allocations: 3.601 MB / 1.102 GB, free: 14.11 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/1.233, allocations: 11.5 kB / 1.102 GB, free: 14.1 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.052e-05/1.233, allocations: 23.72 kB / 1.102 GB, free: 14.07 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003899/1.234, allocations: 226.7 kB / 1.102 GB, free: 13.81 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/1.234, allocations: 4.859 kB / 1.102 GB, free: 13.81 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.868e-05/1.234, allocations: 12 kB / 1.102 GB, free: 13.8 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002187/1.234, allocations: 36 kB / 1.102 GB, free: 13.76 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002651/1.234, allocations: 118.7 kB / 1.103 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/1.234, allocations: 0 / 1.103 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/1.234, allocations: 0 / 1.103 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/1.234, allocations: 4 kB / 1.103 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001344/1.236, allocations: 0.7136 MB / 1.103 GB, free: 12.86 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001043/1.236, allocations: 34.58 kB / 1.103 GB, free: 12.81 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.767e-05/1.236, allocations: 16.86 kB / 1.103 GB, free: 12.79 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/1.236, allocations: 4 kB / 1.103 GB, free: 12.79 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002173/1.236, allocations: 102.7 kB / 1.103 GB, free: 12.66 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 3.988e-06/1.236, allocations: 0 / 1.103 GB, free: 12.66 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0004076/1.237, allocations: 99.11 kB / 1.103 GB, free: 12.56 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/1.237, allocations: 132.6 kB / 1.104 GB, free: 12.4 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003229/1.237, allocations: 157.5 kB / 1.104 GB, free: 12.24 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 5.089e-05/1.237, allocations: 29.7 kB / 1.104 GB, free: 12.21 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/1.237, allocations: 111.8 kB / 1.104 GB, free: 12.09 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 8.307e-05/1.238, allocations: 39.55 kB / 1.104 GB, free: 12.05 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.423e-05/1.238, allocations: 0 / 1.104 GB, free: 12.05 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0002232/1.238, allocations: 322.8 kB / 1.104 GB, free: 11.73 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/1.238, allocations: 20.38 kB / 1.104 GB, free: 11.71 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/1.238, allocations: 132.8 kB / 1.104 GB, free: 11.53 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000127/1.238, allocations: 43.92 kB / 1.104 GB, free: 11.48 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/1.238, allocations: 0 / 1.104 GB, free: 11.48 MB / 0.7136 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004094/1.239, allocations: 157.1 kB / 1.105 GB, free: 11.32 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/1.239, allocations: 4.5 kB / 1.105 GB, free: 11.32 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/1.239, allocations: 8 kB / 1.105 GB, free: 11.31 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.13e-05/1.239, allocations: 4 kB / 1.105 GB, free: 11.31 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002858/1.239, allocations: 39.2 kB / 1.105 GB, free: 11.27 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.458e-05/1.239, allocations: 11.92 kB / 1.105 GB, free: 11.26 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002719/1.239, allocations: 27.89 kB / 1.105 GB, free: 11.23 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.27e-05/1.239, allocations: 12 kB / 1.105 GB, free: 11.22 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 0.0001351/1.24, allocations: 122.3 kB / 1.105 GB, free: 11.1 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.269e-05/1.24, allocations: 15.81 kB / 1.105 GB, free: 11.08 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.194e-05/1.24, allocations: 21.39 kB / 1.105 GB, free: 11.05 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/1.24, allocations: 3.938 kB / 1.105 GB, free: 11.05 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/1.24, allocations: 4.094 kB / 1.105 GB, free: 11.05 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.51e-05/1.24, allocations: 3.984 kB / 1.105 GB, free: 11.04 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/1.241, allocations: 468 kB / 1.105 GB, free: 10.54 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/1.241, allocations: 4 kB / 1.105 GB, free: 10.54 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002444/1.241, allocations: 23.98 kB / 1.105 GB, free: 10.52 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.095e-06/1.241, allocations: 4 kB / 1.105 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/1.241, allocations: 0 / 1.105 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.544e-06/1.241, allocations: 7.938 kB / 1.105 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/1.241, allocations: 0 / 1.105 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004601/1.242, allocations: 337.4 kB / 1.106 GB, free: 10.13 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007236/1.242, allocations: 0.7438 MB / 1.106 GB, free: 9.348 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 8.628e-05/1.242, allocations: 92.91 kB / 1.106 GB, free: 9.238 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.486e-05/1.243, allocations: 8 kB / 1.106 GB, free: 9.23 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003248/1.243, allocations: 23.89 kB / 1.106 GB, free: 9.207 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.748e-05/1.243, allocations: 7.984 kB / 1.106 GB, free: 9.199 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/1.243, allocations: 4 kB / 1.106 GB, free: 9.195 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.0001554/1.243, allocations: 128.3 kB / 1.107 GB, free: 9.07 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001653/1.245, allocations: 31.94 kB / 1.107 GB, free: 9.039 MB / 0.7136 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.0002222/1.245, allocations: 109.2 kB / 1.107 GB, free: 8.926 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003149/1.245, allocations: 75.86 kB / 1.107 GB, free: 8.852 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/1.245, allocations: 0 / 1.107 GB, free: 8.852 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001358/1.246, allocations: 35.94 kB / 1.107 GB, free: 8.816 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007328/1.246, allocations: 54.31 kB / 1.107 GB, free: 8.77 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007501/1.247, allocations: 259.8 kB / 1.107 GB, free: 8.48 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000615/1.248, allocations: 0.7477 MB / 1.108 GB, free: 7.707 MB / 0.7136 GB Notification: Performance of SimCode: time 1.293e-06/1.248, allocations: 0 / 1.108 GB, free: 7.707 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)