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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.237/2.237, allocations: 387.1 MB / 399.7 MB, free: 9.504 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 180.8 kB / 492.3 MB, free: 0.6367 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.53/1.53, allocations: 221.3 MB / 0.7871 GB, free: 12.91 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009002/0.0009002, allocations: 90.92 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.602e-05/3.604e-05, allocations: 7.984 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3174, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.09/1.408, allocations: 151.1 MB / 1.36 GB, free: 19.08 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002287/1.408, allocations: 72.33 kB / 1.36 GB, free: 19.08 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01013/1.418, allocations: 3.522 MB / 1.363 GB, free: 34.56 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.316e-06/1.418, allocations: 0 / 1.363 GB, free: 34.56 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.449e-05/1.418, allocations: 9.344 kB / 1.363 GB, free: 34.55 MB / 0.8386 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.0007712/1.419, allocations: 441.6 kB / 1.364 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.732e-05/1.419, allocations: 9 kB / 1.364 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.738e-05/1.419, allocations: 19.47 kB / 1.364 GB, free: 34.16 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003482/1.42, allocations: 229.2 kB / 1.364 GB, free: 33.94 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.662e-05/1.42, allocations: 7.094 kB / 1.364 GB, free: 33.94 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.745e-05/1.42, allocations: 15.28 kB / 1.364 GB, free: 33.94 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003051/1.42, allocations: 138.5 kB / 1.364 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/1.42, allocations: 0 / 1.364 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.139e-05/1.42, allocations: 3 kB / 1.364 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/1.42, allocations: 3.844 kB / 1.364 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001193/1.42, allocations: 43.77 kB / 1.364 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001128/1.421, allocations: 0.7719 MB / 1.365 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001194/1.421, allocations: 36.86 kB / 1.365 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.988e-05/1.421, allocations: 22.95 kB / 1.365 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.289e-05/1.421, allocations: 0 / 1.365 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000195/1.422, allocations: 107.2 kB / 1.365 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.092e-06/1.422, allocations: 0.875 kB / 1.365 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.000276/1.422, allocations: 109.8 kB / 1.365 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.689e-05/1.422, allocations: 132.5 kB / 1.365 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001592/1.422, allocations: 180 kB / 1.366 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/1.422, allocations: 28.42 kB / 1.366 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.987e-05/1.422, allocations: 131.7 kB / 1.366 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.337e-05/1.422, allocations: 36.7 kB / 1.366 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.799e-06/1.422, allocations: 7.5 kB / 1.366 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.727e-05/1.423, allocations: 334.1 kB / 1.366 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.023e-05/1.423, allocations: 23.16 kB / 1.366 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/1.423, allocations: 136.2 kB / 1.366 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.179e-05/1.423, allocations: 39.84 kB / 1.366 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/1.423, allocations: 3.812 kB / 1.366 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002366/1.423, allocations: 181.2 kB / 1.367 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/1.423, allocations: 7.625 kB / 1.367 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/1.423, allocations: 3.875 kB / 1.367 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.411e-05/1.423, allocations: 8.297 kB / 1.367 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001382/1.423, allocations: 42.84 kB / 1.367 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/1.423, allocations: 11.69 kB / 1.367 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001411/1.423, allocations: 28.73 kB / 1.367 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.817e-05/1.423, allocations: 15.48 kB / 1.367 GB, free: 32.1 MB / 0.8386 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.02e-05/1.424, allocations: 122.6 kB / 1.367 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.67e-05/1.424, allocations: 18.2 kB / 1.367 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.195e-05/1.424, allocations: 26.77 kB / 1.367 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/1.424, allocations: 0 / 1.367 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/1.424, allocations: 3.75 kB / 1.367 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/1.424, allocations: 0 / 1.367 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006006/1.424, allocations: 0.4884 MB / 1.367 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/1.424, allocations: 7.906 kB / 1.367 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001132/1.424, allocations: 14.09 kB / 1.367 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/1.424, allocations: 3.875 kB / 1.367 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/1.424, allocations: 3.938 kB / 1.367 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/1.424, allocations: 6.781 kB / 1.367 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/1.424, allocations: 3.953 kB / 1.367 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003373/1.425, allocations: 360.2 kB / 1.368 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.816e-05/1.425, allocations: 92.83 kB / 1.368 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.893e-05/1.425, allocations: 7.688 kB / 1.368 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/1.425, allocations: 29.11 kB / 1.368 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.218e-05/1.425, allocations: 12.73 kB / 1.368 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/1.425, allocations: 3.875 kB / 1.368 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001044/1.425, allocations: 141.5 kB / 1.368 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.61e-07/1.425, allocations: 0 / 1.368 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003061/1.426, allocations: 31.34 kB / 1.368 GB, free: 31.1 MB / 0.8386 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.0001548/1.426, allocations: 104 kB / 1.368 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001735/1.426, allocations: 91.28 kB / 1.368 GB, free: 31 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/1.426, allocations: 0 / 1.368 GB, free: 31 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.1e-05/1.426, allocations: 36.59 kB / 1.368 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004111/1.426, allocations: 58.58 kB / 1.368 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004363/1.427, allocations: 270.6 kB / 1.369 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003611/1.427, allocations: 0.7253 MB / 1.369 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.922e-05/1.427, allocations: 23.12 kB / 1.369 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.613e-05/1.427, allocations: 19 kB / 1.369 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.427, allocations: 0 / 1.369 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of Templates: time 0.004556/1.432, allocations: 1.762 MB / 1.371 GB, free: 29.96 MB / 0.8386 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