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.455/1.455, allocations: 249.3 MB / 261.8 MB, free: 5.902 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.001134/0.001133, allocations: 176.9 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.46/1.46, allocations: 205.2 MB / 0.572 GB, free: 10.58 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.0008265/0.0008267, allocations: 90.47 kB / 0.6764 GB, free: 15.56 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.014e-05/4.018e-05, allocations: 4 kB / 0.7879 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.2235, allocations: 106.3 MB / 0.8918 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8861/1.11, allocations: 133.7 MB / 1.022 GB, free: 1.129 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/1.11, allocations: 75.69 kB / 1.022 GB, free: 1.086 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.009458/1.119, allocations: 3.484 MB / 1.026 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.404e-06/1.12, allocations: 0 / 1.026 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.429e-05/1.12, allocations: 4 kB / 1.026 GB, free: 14.11 MB / 0.6511 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.0008275/1.12, allocations: 448.1 kB / 1.026 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.606e-05/1.12, allocations: 8.031 kB / 1.026 GB, free: 13.63 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.433e-05/1.121, allocations: 15.81 kB / 1.026 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003928/1.121, allocations: 229.8 kB / 1.026 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.667e-05/1.121, allocations: 11.5 kB / 1.026 GB, free: 13.35 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.191e-05/1.121, allocations: 15.75 kB / 1.026 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003771/1.121, allocations: 131.4 kB / 1.027 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/1.121, allocations: 0 / 1.027 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.013e-05/1.122, allocations: 4 kB / 1.027 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/1.122, allocations: 4 kB / 1.027 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001389/1.122, allocations: 45.81 kB / 1.027 GB, free: 13.18 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/1.123, allocations: 0.7566 MB / 1.027 GB, free: 12.41 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001129/1.123, allocations: 41.8 kB / 1.027 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.703e-05/1.123, allocations: 23.11 kB / 1.027 GB, free: 12.34 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.503e-05/1.123, allocations: 3.984 kB / 1.027 GB, free: 12.34 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002324/1.124, allocations: 109.1 kB / 1.028 GB, free: 12.22 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=11): time 1.914e-06/1.124, allocations: 4 kB / 1.028 GB, free: 12.21 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.0003296/1.124, allocations: 115.5 kB / 1.028 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/1.124, allocations: 128.5 kB / 1.028 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002635/1.124, allocations: 186.3 kB / 1.028 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/1.124, allocations: 29.14 kB / 1.028 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/1.124, allocations: 133.7 kB / 1.028 GB, free: 11.64 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.321e-05/1.124, allocations: 28.95 kB / 1.028 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.839e-06/1.125, allocations: 6.938 kB / 1.028 GB, free: 11.61 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001703/1.125, allocations: 329.2 kB / 1.028 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.011e-05/1.125, allocations: 23.25 kB / 1.029 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001576/1.125, allocations: 135.7 kB / 1.029 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.141e-05/1.125, allocations: 46.98 kB / 1.029 GB, free: 11.06 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/1.125, allocations: 0 / 1.029 GB, free: 11.06 MB / 0.6511 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002794/1.125, allocations: 175.8 kB / 1.029 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/1.125, allocations: 12.09 kB / 1.029 GB, free: 10.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.227e-05/1.125, allocations: 4 kB / 1.029 GB, free: 10.89 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/1.125, allocations: 4.062 kB / 1.029 GB, free: 10.89 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/1.126, allocations: 47.48 kB / 1.029 GB, free: 10.85 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.985e-05/1.126, allocations: 11.92 kB / 1.029 GB, free: 10.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001538/1.126, allocations: 27.83 kB / 1.029 GB, free: 10.81 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.787e-05/1.126, allocations: 15.45 kB / 1.029 GB, free: 10.8 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 0.000121/1.126, allocations: 133 kB / 1.029 GB, free: 10.67 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.918e-05/1.126, allocations: 15.81 kB / 1.029 GB, free: 10.66 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.448e-05/1.126, allocations: 20.7 kB / 1.029 GB, free: 10.65 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/1.126, allocations: 4 kB / 1.029 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/1.126, allocations: 0 / 1.029 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/1.126, allocations: 0 / 1.029 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007716/1.127, allocations: 0.4963 MB / 1.03 GB, free: 10.13 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/1.127, allocations: 0 / 1.03 GB, free: 10.13 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001272/1.127, allocations: 19.98 kB / 1.03 GB, free: 10.11 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.06e-06/1.127, allocations: 0 / 1.03 GB, free: 10.11 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.155e-05/1.127, allocations: 7.938 kB / 1.03 GB, free: 10.11 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/1.127, allocations: 3.938 kB / 1.03 GB, free: 10.1 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/1.127, allocations: 3.953 kB / 1.03 GB, free: 10.1 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004466/1.128, allocations: 353.6 kB / 1.03 GB, free: 9.746 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.563e-05/1.128, allocations: 96.95 kB / 1.03 GB, free: 9.633 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.809e-05/1.128, allocations: 4 kB / 1.03 GB, free: 9.629 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001848/1.128, allocations: 19.8 kB / 1.03 GB, free: 9.613 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.672e-05/1.128, allocations: 11.92 kB / 1.03 GB, free: 9.602 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/1.128, allocations: 4 kB / 1.03 GB, free: 9.598 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001448/1.128, allocations: 142.3 kB / 1.03 GB, free: 9.477 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/1.128, allocations: 4 kB / 1.03 GB, free: 9.473 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003312/1.128, allocations: 31.78 kB / 1.03 GB, free: 9.445 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.0002302/1.129, allocations: 106.5 kB / 1.03 GB, free: 9.336 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002369/1.129, allocations: 97.03 kB / 1.03 GB, free: 9.258 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/1.129, allocations: 0 / 1.03 GB, free: 9.258 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 8.997e-05/1.129, allocations: 39.88 kB / 1.031 GB, free: 9.23 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005265/1.13, allocations: 59.77 kB / 1.031 GB, free: 9.18 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005924/1.13, allocations: 262.7 kB / 1.031 GB, free: 8.91 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004054/1.131, allocations: 0.7285 MB / 1.032 GB, free: 8.156 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 7.47e-05/1.131, allocations: 17.55 kB / 1.032 GB, free: 8.137 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.26e-05/1.131, allocations: 15.44 kB / 1.032 GB, free: 8.121 MB / 0.6511 GB Notification: Performance of SimCode: time 2.5e-07/1.131, allocations: 0 / 1.032 GB, free: 8.121 MB / 0.6511 GB Notification: Performance of Templates: time 0.005175/1.136, allocations: 1.756 MB / 1.033 GB, free: 6.398 MB / 0.6511 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