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: 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_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.328/1.328, allocations: 252 MB / 266.9 MB, free: 10.97 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001065/0.001065, allocations: 175.9 kB / 326.5 MB, free: 2.227 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.537/1.537, allocations: 205.4 MB / 0.5775 GB, free: 20.26 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.0008508/0.0008508, allocations: 99.91 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003218/0.0003217, allocations: 8.969 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1856/0.186, allocations: 106.4 MB / 0.9001 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.167/0.353, allocations: 133.7 MB / 1.031 GB, free: 10 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002596/0.3533, allocations: 71.95 kB / 1.031 GB, free: 9.934 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.008967/0.3623, allocations: 3.491 MB / 1.034 GB, free: 6.43 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.654e-06/0.3624, allocations: 0 / 1.034 GB, free: 6.43 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.468e-05/0.3624, allocations: 8 kB / 1.034 GB, free: 6.422 MB / 0.6823 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.0006282/0.363, allocations: 467.8 kB / 1.035 GB, free: 5.914 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.3631, allocations: 8.031 kB / 1.035 GB, free: 5.906 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.755e-05/0.3631, allocations: 19.81 kB / 1.035 GB, free: 5.887 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002525/0.3634, allocations: 222.7 kB / 1.035 GB, free: 5.629 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.3634, allocations: 12 kB / 1.035 GB, free: 5.617 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.195e-05/0.3635, allocations: 15.94 kB / 1.035 GB, free: 5.602 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00028/0.3637, allocations: 145.9 kB / 1.035 GB, free: 5.438 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.3638, allocations: 0 / 1.035 GB, free: 5.438 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/0.3638, allocations: 8 kB / 1.035 GB, free: 5.43 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.3638, allocations: 4 kB / 1.035 GB, free: 5.426 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002277/0.364, allocations: 79.88 kB / 1.035 GB, free: 5.348 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001105/0.3651, allocations: 0.7628 MB / 1.036 GB, free: 4.52 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001539/0.3653, allocations: 62.48 kB / 1.036 GB, free: 4.449 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.3654, allocations: 0 / 1.036 GB, free: 4.449 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002903/0.3656, allocations: 123 kB / 1.036 GB, free: 4.305 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=11): time 1.403e-06/0.3657, allocations: 0 / 1.036 GB, free: 4.305 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.0005126/0.3662, allocations: 181.5 kB / 1.036 GB, free: 4.121 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.831e-05/0.3663, allocations: 132.5 kB / 1.036 GB, free: 3.961 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001802/0.3665, allocations: 185.9 kB / 1.037 GB, free: 3.773 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.3665, allocations: 33.64 kB / 1.037 GB, free: 3.734 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.54e-05/0.3666, allocations: 131.7 kB / 1.037 GB, free: 3.602 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.965e-05/0.3666, allocations: 35.61 kB / 1.037 GB, free: 3.566 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.342e-06/0.3667, allocations: 0 / 1.037 GB, free: 3.566 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001149/0.3668, allocations: 330.8 kB / 1.037 GB, free: 3.234 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.3669, allocations: 44.34 kB / 1.037 GB, free: 3.188 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001732/0.3671, allocations: 154.9 kB / 1.037 GB, free: 2.988 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000128/0.3672, allocations: 55.92 kB / 1.037 GB, free: 2.934 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3672, allocations: 4 kB / 1.037 GB, free: 2.93 MB / 0.6823 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003733/0.3676, allocations: 225.5 kB / 1.037 GB, free: 2.703 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.3676, allocations: 6.188 kB / 1.037 GB, free: 2.699 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.3677, allocations: 4 kB / 1.037 GB, free: 2.695 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.3677, allocations: 8 kB / 1.038 GB, free: 2.688 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.3678, allocations: 35.86 kB / 1.038 GB, free: 2.652 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.369e-05/0.3678, allocations: 11.98 kB / 1.038 GB, free: 2.641 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001399/0.368, allocations: 36.34 kB / 1.038 GB, free: 2.605 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.368, allocations: 8 kB / 1.038 GB, free: 2.598 MB / 0.6823 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.0001103/0.3681, allocations: 137.7 kB / 1.038 GB, free: 2.453 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.415e-05/0.3682, allocations: 27.72 kB / 1.038 GB, free: 2.426 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.473e-05/0.3682, allocations: 21.39 kB / 1.038 GB, free: 2.402 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.3682, allocations: 0 / 1.038 GB, free: 2.402 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.3682, allocations: 4 kB / 1.038 GB, free: 2.398 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.3682, allocations: 0 / 1.038 GB, free: 2.398 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007311/0.369, allocations: 0.5293 MB / 1.038 GB, free: 1.812 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.369, allocations: 4 kB / 1.038 GB, free: 1.809 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001152/0.3691, allocations: 15.98 kB / 1.038 GB, free: 1.793 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.3691, allocations: 4 kB / 1.038 GB, free: 1.789 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.3691, allocations: 4 kB / 1.038 GB, free: 1.785 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.3692, allocations: 4 kB / 1.038 GB, free: 1.781 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3692, allocations: 3.984 kB / 1.038 GB, free: 1.777 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004847/0.3696, allocations: 417.2 kB / 1.039 GB, free: 1.328 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.363e-05/0.3697, allocations: 96.91 kB / 1.039 GB, free: 1.215 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.44e-05/0.3698, allocations: 4 kB / 1.039 GB, free: 1.211 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.3699, allocations: 19.98 kB / 1.039 GB, free: 1.191 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.837e-05/0.37, allocations: 7.984 kB / 1.039 GB, free: 1.184 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.956e-06/0.37, allocations: 8 kB / 1.039 GB, free: 1.176 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 9.596e-05/0.3701, allocations: 144.4 kB / 1.039 GB, free: 1.035 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3701, allocations: 0 / 1.039 GB, free: 1.035 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.000308/0.3704, allocations: 35.98 kB / 1.039 GB, free: 1 MB / 0.6823 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.0001408/0.3706, allocations: 107.1 kB / 1.039 GB, free: 0.8867 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003112/0.3709, allocations: 123.8 kB / 1.039 GB, free: 0.7656 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.3709, allocations: 4 kB / 1.039 GB, free: 0.7617 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001349/0.371, allocations: 60.97 kB / 1.039 GB, free: 0.7031 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004087/0.3715, allocations: 61.09 kB / 1.039 GB, free: 0.6445 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005411/0.372, allocations: 386.9 kB / 1.04 GB, free: 236 kB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002787/0.3723, allocations: 0.7322 MB / 1.04 GB, free: 15.47 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 7.476e-05/0.3724, allocations: 21.86 kB / 1.04 GB, free: 15.45 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.44e-05/0.3724, allocations: 15.44 kB / 1.04 GB, free: 15.44 MB / 0.698 GB Notification: Performance of SimCode: time 2.31e-07/0.3724, allocations: 0 / 1.04 GB, free: 15.44 MB / 0.698 GB Notification: Performance of Templates: time 0.004201/0.3766, allocations: 1.735 MB / 1.042 GB, free: 13.72 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches