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.35/2.35, allocations: 390.3 MB / 405.3 MB, free: 13.41 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.001777/0.001777, allocations: 179.4 kB / 498.1 MB, free: 5.672 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.541/1.541, allocations: 223.2 MB / 0.7948 GB, free: 17.88 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.0009394/0.0009394, allocations: 107.9 kB / 0.9346 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003841/0.0003841, allocations: 13.75 kB / 1.084 GB, free: 221 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3269/0.3273, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2005/0.5279, allocations: 151.2 MB / 1.371 GB, free: 10.84 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002708/0.5282, allocations: 75.95 kB / 1.371 GB, free: 10.77 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.009798/0.538, allocations: 3.536 MB / 1.374 GB, free: 7.219 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.675e-06/0.5381, allocations: 3.938 kB / 1.374 GB, free: 7.215 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.544e-05/0.5381, allocations: 4 kB / 1.374 GB, free: 7.211 MB / 0.8698 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.0006874/0.5388, allocations: 459.7 kB / 1.374 GB, free: 6.711 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.5389, allocations: 8.031 kB / 1.374 GB, free: 6.703 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.531e-05/0.5389, allocations: 19.81 kB / 1.375 GB, free: 6.684 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002899/0.5392, allocations: 234.6 kB / 1.375 GB, free: 6.414 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.115e-05/0.5393, allocations: 16 kB / 1.375 GB, free: 6.398 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.672e-05/0.5393, allocations: 12 kB / 1.375 GB, free: 6.387 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000304/0.5396, allocations: 137.9 kB / 1.375 GB, free: 6.23 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.5396, allocations: 7.938 kB / 1.375 GB, free: 6.223 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.039e-05/0.5397, allocations: 15.98 kB / 1.375 GB, free: 6.207 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.166e-06/0.5397, allocations: 4 kB / 1.375 GB, free: 6.203 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002358/0.5399, allocations: 79.83 kB / 1.375 GB, free: 6.125 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.541, allocations: 0.7551 MB / 1.376 GB, free: 5.305 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001598/0.5412, allocations: 58.53 kB / 1.376 GB, free: 5.238 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.5412, allocations: 0 / 1.376 GB, free: 5.238 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002922/0.5415, allocations: 126.7 kB / 1.376 GB, free: 5.09 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=11): time 1.323e-06/0.5415, allocations: 0 / 1.376 GB, free: 5.09 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11): time 0.000509/0.542, allocations: 189.4 kB / 1.376 GB, free: 4.898 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.779e-05/0.5421, allocations: 132.5 kB / 1.376 GB, free: 4.738 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001688/0.5423, allocations: 178.2 kB / 1.376 GB, free: 4.559 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.539e-05/0.5424, allocations: 33.77 kB / 1.376 GB, free: 4.52 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 8.12e-05/0.5424, allocations: 123.8 kB / 1.377 GB, free: 4.395 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.826e-05/0.5425, allocations: 47.62 kB / 1.377 GB, free: 4.348 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.623e-06/0.5425, allocations: 0 / 1.377 GB, free: 4.348 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.5427, allocations: 326.8 kB / 1.377 GB, free: 4.02 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.5428, allocations: 40.34 kB / 1.377 GB, free: 3.977 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001979/0.543, allocations: 160.8 kB / 1.377 GB, free: 3.77 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001511/0.5432, allocations: 52.2 kB / 1.377 GB, free: 3.719 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.5432, allocations: 3.938 kB / 1.377 GB, free: 3.715 MB / 0.8698 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003969/0.5436, allocations: 217.1 kB / 1.377 GB, free: 3.496 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.5436, allocations: 4.5 kB / 1.377 GB, free: 3.492 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.5436, allocations: 4 kB / 1.377 GB, free: 3.488 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.5436, allocations: 12 kB / 1.377 GB, free: 3.477 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.5438, allocations: 31.92 kB / 1.377 GB, free: 3.445 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.534e-05/0.5438, allocations: 15.92 kB / 1.377 GB, free: 3.43 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001493/0.544, allocations: 35.78 kB / 1.377 GB, free: 3.395 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.544, allocations: 8 kB / 1.377 GB, free: 3.387 MB / 0.8698 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 () * Number of clocked 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.0001335/0.5441, allocations: 143.3 kB / 1.378 GB, free: 3.238 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.941e-05/0.5442, allocations: 19.81 kB / 1.378 GB, free: 3.219 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.506e-05/0.5442, allocations: 21.39 kB / 1.378 GB, free: 3.199 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.5442, allocations: 0 / 1.378 GB, free: 3.199 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.5442, allocations: 4 kB / 1.378 GB, free: 3.195 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.5442, allocations: 0 / 1.378 GB, free: 3.195 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008418/0.5451, allocations: 0.529 MB / 1.378 GB, free: 2.609 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.5451, allocations: 0 / 1.378 GB, free: 2.609 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001222/0.5452, allocations: 16.03 kB / 1.378 GB, free: 2.594 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.183e-06/0.5452, allocations: 7.984 kB / 1.378 GB, free: 2.586 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.5453, allocations: 4 kB / 1.378 GB, free: 2.582 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.5453, allocations: 7.938 kB / 1.378 GB, free: 2.574 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.5453, allocations: 3.953 kB / 1.378 GB, free: 2.57 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000548/0.5458, allocations: 413.6 kB / 1.379 GB, free: 2.125 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.378e-05/0.5459, allocations: 92.92 kB / 1.379 GB, free: 2.016 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.731e-05/0.5459, allocations: 12 kB / 1.379 GB, free: 2.004 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000173/0.5461, allocations: 19.98 kB / 1.379 GB, free: 1.984 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.661e-05/0.5462, allocations: 11.92 kB / 1.379 GB, free: 1.973 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.139e-05/0.5462, allocations: 7.984 kB / 1.379 GB, free: 1.965 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0001092/0.5463, allocations: 144.4 kB / 1.379 GB, free: 1.824 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5463, allocations: 0 / 1.379 GB, free: 1.824 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.000315/0.5466, allocations: 31.91 kB / 1.379 GB, free: 1.793 MB / 0.8698 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 () * Number of clocked 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.0001656/0.5468, allocations: 107.1 kB / 1.379 GB, free: 1.684 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003237/0.5472, allocations: 124.2 kB / 1.379 GB, free: 1.562 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.5472, allocations: 4 kB / 1.379 GB, free: 1.559 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001512/0.5473, allocations: 51.91 kB / 1.379 GB, free: 1.508 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004238/0.5478, allocations: 63.45 kB / 1.379 GB, free: 1.449 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006458/0.5484, allocations: 398.6 kB / 1.38 GB, free: 1.023 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.5488, allocations: 0.7245 MB / 1.38 GB, free: 280 kB / 0.8698 GB Notification: Performance of simCode: alias equations: time 7.781e-05/0.5488, allocations: 21.55 kB / 1.38 GB, free: 256 kB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.839e-05/0.5489, allocations: 15.44 kB / 1.38 GB, free: 240 kB / 0.8698 GB Notification: Performance of SimCode: time 3.9e-07/0.5489, allocations: 0 / 1.38 GB, free: 240 kB / 0.8698 GB Notification: Performance of Templates: time 0.004539/0.5534, allocations: 1.741 MB / 1.382 GB, free: 14.51 MB / 0.8855 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