Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_9_Buildings.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/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.914/1.914, allocations: 387.2 MB / 394.5 MB, free: 13.32 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 190 kB / 487 MB, free: 0.7422 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.22/1.22, allocations: 221.3 MB / 0.7819 GB, free: 6.836 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008925/0.0008926, allocations: 101 kB / 0.9213 GB, free: 43.7 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 9.077e-06/9.347e-06, allocations: 4 kB / 1.066 GB, free: 7.602 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5941/0.5942, allocations: 142.3 MB / 1.205 GB, free: 72.56 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1721/0.7663, allocations: 150.4 MB / 1.352 GB, free: 12.81 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000201/0.7666, allocations: 73.03 kB / 1.352 GB, free: 12.74 MB / 0.8542 GB Notification: Performance of FrontEnd: time 0.009224/0.7758, allocations: 3.214 MB / 1.355 GB, free: 9.57 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.418e-05/0.7759, allocations: 10.25 kB / 1.355 GB, free: 9.562 MB / 0.8542 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.0005282/0.7764, allocations: 442.5 kB / 1.356 GB, free: 9.086 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.7764, allocations: 8.031 kB / 1.356 GB, free: 9.078 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.975e-05/0.7765, allocations: 23.72 kB / 1.356 GB, free: 9.055 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002512/0.7767, allocations: 227.2 kB / 1.356 GB, free: 8.793 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.7768, allocations: 5.5 kB / 1.356 GB, free: 8.789 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.714e-05/0.7768, allocations: 11.94 kB / 1.356 GB, free: 8.777 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001035/0.7769, allocations: 36 kB / 1.356 GB, free: 8.742 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001642/0.7771, allocations: 112.8 kB / 1.356 GB, free: 8.613 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.7771, allocations: 0 / 1.356 GB, free: 8.613 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.7771, allocations: 7.938 kB / 1.356 GB, free: 8.605 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.7771, allocations: 0 / 1.356 GB, free: 8.605 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008425/0.778, allocations: 0.7047 MB / 1.357 GB, free: 7.848 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 6.506e-05/0.7781, allocations: 38.56 kB / 1.357 GB, free: 7.801 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.954e-05/0.7781, allocations: 16.86 kB / 1.357 GB, free: 7.781 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.129e-05/0.7781, allocations: 4 kB / 1.357 GB, free: 7.777 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001094/0.7782, allocations: 103.5 kB / 1.357 GB, free: 7.652 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=11): time 1.283e-06/0.7783, allocations: 0 / 1.357 GB, free: 7.652 MB / 0.8542 GB Notification: Performance of matching and sorting (n=11): time 0.0002002/0.7785, allocations: 97.42 kB / 1.357 GB, free: 7.551 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.332e-05/0.7785, allocations: 132.6 kB / 1.357 GB, free: 7.391 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001751/0.7787, allocations: 157.4 kB / 1.357 GB, free: 7.23 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.7787, allocations: 29.7 kB / 1.357 GB, free: 7.195 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 5.967e-05/0.7788, allocations: 119.9 kB / 1.357 GB, free: 7.074 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.221e-05/0.7788, allocations: 43.48 kB / 1.357 GB, free: 7.031 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.272e-06/0.7788, allocations: 3.75 kB / 1.358 GB, free: 7.031 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 9.21e-05/0.7789, allocations: 322.8 kB / 1.358 GB, free: 6.707 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.095e-05/0.779, allocations: 20.38 kB / 1.358 GB, free: 6.684 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.51e-05/0.7791, allocations: 131.1 kB / 1.358 GB, free: 6.504 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.008e-05/0.7792, allocations: 43.92 kB / 1.358 GB, free: 6.461 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.7792, allocations: 0 / 1.358 GB, free: 6.461 MB / 0.8542 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000229/0.7794, allocations: 153.1 kB / 1.358 GB, free: 6.305 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.7794, allocations: 4.5 kB / 1.358 GB, free: 6.301 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.7795, allocations: 12.52 kB / 1.358 GB, free: 6.293 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.7795, allocations: 4 kB / 1.358 GB, free: 6.289 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.7796, allocations: 39.92 kB / 1.358 GB, free: 6.25 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.7796, allocations: 4 kB / 1.358 GB, free: 6.246 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001622/0.7798, allocations: 27.89 kB / 1.358 GB, free: 6.219 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.7798, allocations: 16.62 kB / 1.358 GB, free: 6.203 MB / 0.8542 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.173e-05/0.7799, allocations: 116.9 kB / 1.358 GB, free: 6.082 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.715e-05/0.7799, allocations: 19.89 kB / 1.358 GB, free: 6.062 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.381e-05/0.78, allocations: 13.41 kB / 1.358 GB, free: 6.047 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.78, allocations: 3.938 kB / 1.358 GB, free: 6.043 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.78, allocations: 7.984 kB / 1.358 GB, free: 6.035 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.78, allocations: 0 / 1.358 GB, free: 6.035 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005542/0.7806, allocations: 466.7 kB / 1.359 GB, free: 5.535 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.7806, allocations: 4 kB / 1.359 GB, free: 5.531 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001398/0.7807, allocations: 24.55 kB / 1.359 GB, free: 5.508 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.7807, allocations: 4 kB / 1.359 GB, free: 5.504 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.7808, allocations: 3.984 kB / 1.359 GB, free: 5.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.7808, allocations: 4.625 kB / 1.359 GB, free: 5.496 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.7808, allocations: 0 / 1.359 GB, free: 5.496 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002712/0.7811, allocations: 345.3 kB / 1.359 GB, free: 5.117 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 5.158e-05/0.7811, allocations: 96.86 kB / 1.359 GB, free: 5.004 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.959e-05/0.7812, allocations: 4.875 kB / 1.359 GB, free: 5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/0.7814, allocations: 19.98 kB / 1.359 GB, free: 4.98 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.513e-05/0.7814, allocations: 15.88 kB / 1.359 GB, free: 4.965 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.7814, allocations: 4 kB / 1.359 GB, free: 4.961 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7.584e-05/0.7815, allocations: 128.3 kB / 1.359 GB, free: 4.836 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003441/0.7819, allocations: 28 kB / 1.359 GB, free: 4.809 MB / 0.8542 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.0001266/0.782, allocations: 114.8 kB / 1.36 GB, free: 4.691 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001555/0.7822, allocations: 71.88 kB / 1.36 GB, free: 4.621 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.7822, allocations: 0 / 1.36 GB, free: 4.621 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 7.613e-05/0.7822, allocations: 39.92 kB / 1.36 GB, free: 4.582 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004302/0.7827, allocations: 60.33 kB / 1.36 GB, free: 4.531 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004455/0.7831, allocations: 244.5 kB / 1.36 GB, free: 4.258 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002735/0.7834, allocations: 0.7433 MB / 1.361 GB, free: 3.488 MB / 0.8542 GB Notification: Performance of SimCode: time 2.6e-07/0.7834, allocations: 3.938 kB / 1.361 GB, free: 3.484 MB / 0.8542 GB Notification: Performance of Templates: time 0.004237/0.7877, allocations: 1.745 MB / 1.362 GB, free: 1.793 MB / 0.8542 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches