Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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/BuildSysPro 3.5.0/package.mo): time 0.7615/0.7615, allocations: 127.4 MB / 134.6 MB, free: 4.082 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001477/0.001477, allocations: 181.3 kB / 164.4 MB, free: 6.902 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.596/1.596, allocations: 205.1 MB / 399.1 MB, free: 6.098 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009443/0.0009442, allocations: 91.27 kB / 476.3 MB, free: 8.859 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3119/0.3129, allocations: 82.89 MB / 0.5461 GB, free: 42.68 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.4696, allocations: 76.75 MB / 0.621 GB, free: 13.86 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3916/0.8612, allocations: 103.9 MB / 0.7224 GB, free: 8.465 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/0.8616, allocations: 71.95 kB / 0.7225 GB, free: 8.395 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.01029/0.8719, allocations: 3.644 MB / 0.7261 GB, free: 4.715 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.8719, allocations: 12 kB / 0.7261 GB, free: 4.703 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.118e-05/0.872, allocations: 15.81 kB / 0.7261 GB, free: 4.688 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002806/0.8723, allocations: 230.7 kB / 0.7263 GB, free: 4.422 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/0.8723, allocations: 4 kB / 0.7263 GB, free: 4.418 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.133e-05/0.8723, allocations: 15.91 kB / 0.7263 GB, free: 4.402 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001092/0.8725, allocations: 32 kB / 0.7264 GB, free: 4.371 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001827/0.8726, allocations: 121.9 kB / 0.7265 GB, free: 4.23 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.8727, allocations: 0 / 0.7265 GB, free: 4.23 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.8727, allocations: 0 / 0.7265 GB, free: 4.23 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.8727, allocations: 4 kB / 0.7265 GB, free: 4.227 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009715/0.8737, allocations: 0.7085 MB / 0.7272 GB, free: 3.465 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.671e-05/0.8738, allocations: 30.58 kB / 0.7272 GB, free: 3.426 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.127e-05/0.8738, allocations: 24.95 kB / 0.7272 GB, free: 3.398 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.955e-05/0.8739, allocations: 8.859 kB / 0.7272 GB, free: 3.391 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000139/0.874, allocations: 106.7 kB / 0.7273 GB, free: 3.262 MB / 490.7 MB Notification: Performance of pre-optimization done (n=11): time 7.925e-06/0.874, allocations: 0 / 0.7273 GB, free: 3.262 MB / 490.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003525/0.8744, allocations: 97.41 kB / 0.7274 GB, free: 3.16 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001459/0.8746, allocations: 132.5 kB / 0.7275 GB, free: 3 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002442/0.8748, allocations: 157.5 kB / 0.7277 GB, free: 2.84 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.872e-05/0.8749, allocations: 29.77 kB / 0.7277 GB, free: 2.805 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.875, allocations: 115.8 kB / 0.7278 GB, free: 2.688 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.347e-05/0.8751, allocations: 35.45 kB / 0.7279 GB, free: 2.652 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.045e-06/0.8751, allocations: 3.938 kB / 0.7279 GB, free: 2.648 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.8752, allocations: 326.8 kB / 0.7282 GB, free: 2.32 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.269e-05/0.8753, allocations: 20.38 kB / 0.7282 GB, free: 2.297 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.8754, allocations: 132.8 kB / 0.7283 GB, free: 2.117 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.184e-05/0.8755, allocations: 35.92 kB / 0.7284 GB, free: 2.082 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.8755, allocations: 4 kB / 0.7284 GB, free: 2.078 MB / 490.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002474/0.8758, allocations: 149.2 kB / 0.7285 GB, free: 1.926 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.8758, allocations: 4 kB / 0.7285 GB, free: 1.922 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.8758, allocations: 4 kB / 0.7285 GB, free: 1.918 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.854e-05/0.8759, allocations: 8.5 kB / 0.7285 GB, free: 1.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002091/0.8761, allocations: 40.67 kB / 0.7286 GB, free: 1.871 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.641e-05/0.8761, allocations: 19.83 kB / 0.7286 GB, free: 1.852 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001965/0.8763, allocations: 19.98 kB / 0.7286 GB, free: 1.832 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.535e-05/0.8764, allocations: 12 kB / 0.7286 GB, free: 1.82 MB / 490.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 9.272e-05/0.8764, allocations: 120.6 kB / 0.7287 GB, free: 1.695 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.995e-05/0.8765, allocations: 19.81 kB / 0.7288 GB, free: 1.676 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.055e-05/0.8765, allocations: 17.39 kB / 0.7288 GB, free: 1.66 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.8766, allocations: 4 kB / 0.7288 GB, free: 1.656 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.8766, allocations: 3.938 kB / 0.7288 GB, free: 1.652 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.8766, allocations: 0 / 0.7288 GB, free: 1.652 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005855/0.8772, allocations: 474.2 kB / 0.7292 GB, free: 1.145 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.8772, allocations: 0 / 0.7292 GB, free: 1.145 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001365/0.8773, allocations: 19.98 kB / 0.7292 GB, free: 1.125 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.634e-06/0.8773, allocations: 7.938 kB / 0.7293 GB, free: 1.117 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.8774, allocations: 7.906 kB / 0.7293 GB, free: 1.109 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.8774, allocations: 0 / 0.7293 GB, free: 1.109 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.8774, allocations: 0 / 0.7293 GB, free: 1.109 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003295/0.8777, allocations: 349.3 kB / 0.7296 GB, free: 0.7266 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005863/0.8783, allocations: 0.7362 MB / 0.7303 GB, free: 15.94 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.356e-05/0.8784, allocations: 96.86 kB / 0.7304 GB, free: 15.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.585e-05/0.8785, allocations: 0 / 0.7304 GB, free: 15.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000289/0.8788, allocations: 19.98 kB / 0.7304 GB, free: 15.81 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.55e-05/0.8788, allocations: 11.98 kB / 0.7304 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.8789, allocations: 7.906 kB / 0.7304 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.403e-05/0.879, allocations: 123.2 kB / 0.7306 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.000881/0.8798, allocations: 23.94 kB / 0.7306 GB, free: 15.65 MB / 0.4948 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.0001872/0.88, allocations: 107.8 kB / 0.7307 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001711/0.8802, allocations: 80.23 kB / 0.7308 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.8802, allocations: 4 kB / 0.7308 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 7.386e-05/0.8803, allocations: 32.36 kB / 0.7308 GB, free: 15.42 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004529/0.8808, allocations: 52.22 kB / 0.7308 GB, free: 15.37 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005149/0.8813, allocations: 252.4 kB / 0.7311 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003441/0.8816, allocations: 0.751 MB / 0.7318 GB, free: 14.31 MB / 0.4948 GB Notification: Performance of SimCode: time 2.6e-07/0.8817, allocations: 224 / 0.7318 GB, free: 14.31 MB / 0.4948 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)