Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.272/1.272, allocations: 249.4 MB / 256.7 MB, free: 6.992 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001101/0.001101, allocations: 173.3 kB / 316 MB, free: 3.559 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.124/1.124, allocations: 205.1 MB / 0.5667 GB, free: 15.64 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008109/0.0008109, allocations: 78.42 kB / 0.671 GB, free: 4.777 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3225/0.3234, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.4807, allocations: 106.3 MB / 0.8846 GB, free: 12.57 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4806/0.9614, allocations: 134 MB / 1.015 GB, free: 4.668 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/0.9617, allocations: 75.2 kB / 1.016 GB, free: 4.629 MB / 0.6355 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.009839/0.9715, allocations: 3.595 MB / 1.019 GB, free: 1.551 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.9716, allocations: 15.94 kB / 1.019 GB, free: 1.531 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.536e-05/0.9717, allocations: 15.81 kB / 1.019 GB, free: 1.516 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000275/0.9719, allocations: 223.1 kB / 1.019 GB, free: 1.266 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.972, allocations: 4 kB / 1.019 GB, free: 1.262 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.924e-05/0.972, allocations: 11.94 kB / 1.019 GB, free: 1.25 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000102/0.9721, allocations: 33.88 kB / 1.019 GB, free: 1.23 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001642/0.9723, allocations: 126.3 kB / 1.019 GB, free: 1.105 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.9723, allocations: 3.984 kB / 1.019 GB, free: 1.102 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.486e-05/0.9723, allocations: 0.75 kB / 1.019 GB, free: 1.102 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.9723, allocations: 7.938 kB / 1.019 GB, free: 1.094 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008922/0.9732, allocations: 0.6989 MB / 1.02 GB, free: 392 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.264e-05/0.9733, allocations: 46.05 kB / 1.02 GB, free: 344 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.495e-05/0.9734, allocations: 16.42 kB / 1.02 GB, free: 328 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.9734, allocations: 0 / 1.02 GB, free: 328 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001166/0.9735, allocations: 99.39 kB / 1.02 GB, free: 216 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 2.846e-06/0.9735, allocations: 4 kB / 1.02 GB, free: 212 kB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0002049/0.9737, allocations: 107.2 kB / 1.02 GB, free: 112 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.9739, allocations: 128.5 kB / 1.021 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001444/0.974, allocations: 162 kB / 1.021 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.9741, allocations: 25.7 kB / 1.021 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.436e-05/0.9741, allocations: 118.8 kB / 1.021 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.101e-05/0.9742, allocations: 31.3 kB / 1.021 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.562e-06/0.9742, allocations: 4.062 kB / 1.021 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000113/0.9743, allocations: 333.7 kB / 1.021 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.181e-05/0.9743, allocations: 22.88 kB / 1.021 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001017/0.9745, allocations: 130.6 kB / 1.021 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.506e-05/0.9745, allocations: 38.67 kB / 1.021 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.9745, allocations: 0 / 1.021 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000234/0.9748, allocations: 154.8 kB / 1.022 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.9748, allocations: 4 kB / 1.022 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.9748, allocations: 4 kB / 1.022 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.9748, allocations: 4 kB / 1.022 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.975, allocations: 39.36 kB / 1.022 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.975, allocations: 8.297 kB / 1.022 GB, free: 14.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000157/0.9752, allocations: 27.89 kB / 1.022 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.429e-05/0.9752, allocations: 8.062 kB / 1.022 GB, free: 14.86 MB / 0.6511 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 7.717e-05/0.9753, allocations: 123.5 kB / 1.022 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.168e-05/0.9753, allocations: 27.72 kB / 1.022 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.407e-05/0.9753, allocations: 20.09 kB / 1.022 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.9754, allocations: 0 / 1.022 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.9754, allocations: 7.938 kB / 1.022 GB, free: 14.69 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.9754, allocations: 3.984 kB / 1.022 GB, free: 14.69 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005537/0.9759, allocations: 462.1 kB / 1.022 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.976, allocations: 48 / 1.022 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001348/0.9761, allocations: 23.97 kB / 1.022 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.9761, allocations: 4 kB / 1.022 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.9761, allocations: 3.984 kB / 1.022 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.217e-06/0.9761, allocations: 4 kB / 1.022 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.9761, allocations: 3.906 kB / 1.022 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002797/0.9764, allocations: 347.9 kB / 1.023 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003948/0.9768, allocations: 0.7464 MB / 1.023 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.167e-05/0.9769, allocations: 88.92 kB / 1.023 GB, free: 12.99 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.817e-05/0.9769, allocations: 8 kB / 1.023 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002053/0.9771, allocations: 19.97 kB / 1.023 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.352e-05/0.9772, allocations: 11.86 kB / 1.023 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/0.9772, allocations: 4 kB / 1.023 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of sort global known variables: time 7.847e-05/0.9773, allocations: 125.9 kB / 1.024 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0008642/0.9782, allocations: 31.84 kB / 1.024 GB, free: 12.81 MB / 0.6511 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.0001961/0.9784, allocations: 110.4 kB / 1.024 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001613/0.9785, allocations: 80.73 kB / 1.024 GB, free: 12.63 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.9785, allocations: 1 kB / 1.024 GB, free: 12.63 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.586e-05/0.9786, allocations: 34.38 kB / 1.024 GB, free: 12.6 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004341/0.9791, allocations: 47.08 kB / 1.024 GB, free: 12.56 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000515/0.9796, allocations: 249.5 kB / 1.024 GB, free: 12.3 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003509/0.98, allocations: 0.7471 MB / 1.025 GB, free: 11.53 MB / 0.6511 GB Notification: Performance of SimCode: time 2.81e-07/0.98, allocations: 0 / 1.025 GB, free: 11.53 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)