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.589/1.589, allocations: 249.5 MB / 257 MB, free: 6.977 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.001158/0.001158, allocations: 176.9 kB / 316.3 MB, free: 3.242 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.971/1.971, allocations: 205.3 MB / 0.5671 GB, free: 15.81 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.0009227/0.0009225, allocations: 92.38 kB / 0.6714 GB, free: 4.926 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.027e-05/2.028e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2253/0.2254, allocations: 106.3 MB / 0.8852 GB, free: 12.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8869/1.112, allocations: 133.9 MB / 1.016 GB, free: 3.867 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/1.113, allocations: 73.89 kB / 1.016 GB, free: 3.828 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01283/1.125, allocations: 3.466 MB / 1.019 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.453e-06/1.126, allocations: 0 / 1.019 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.293e-05/1.126, allocations: 4 kB / 1.019 GB, free: 0.9141 MB / 0.6355 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.0007791/1.126, allocations: 439.6 kB / 1.02 GB, free: 456 kB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/1.126, allocations: 12.03 kB / 1.02 GB, free: 444 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.116e-05/1.126, allocations: 15.81 kB / 1.02 GB, free: 428 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003578/1.127, allocations: 223.3 kB / 1.02 GB, free: 172 kB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/1.127, allocations: 4 kB / 1.02 GB, free: 168 kB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.417e-05/1.127, allocations: 15.48 kB / 1.02 GB, free: 156 kB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00015/1.127, allocations: 34.31 kB / 1.02 GB, free: 132 kB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002613/1.127, allocations: 124.9 kB / 1.02 GB, free: 4 kB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/1.127, allocations: 0 / 1.02 GB, free: 4 kB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/1.127, allocations: 0 / 1.02 GB, free: 4 kB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/1.127, allocations: 4 kB / 1.02 GB, free: 0 / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001318/1.129, allocations: 0.7271 MB / 1.021 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 9.911e-05/1.129, allocations: 33.52 kB / 1.021 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.342e-05/1.129, allocations: 26.73 kB / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.677e-05/1.129, allocations: 0 / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002304/1.129, allocations: 106.3 kB / 1.021 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=11): time 1.863e-06/1.129, allocations: 0 / 1.021 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.0002881/1.13, allocations: 104.2 kB / 1.021 GB, free: 14.99 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.667e-05/1.13, allocations: 132.5 kB / 1.021 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001869/1.13, allocations: 159.2 kB / 1.022 GB, free: 14.69 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.685e-05/1.13, allocations: 29.14 kB / 1.022 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/1.13, allocations: 133.1 kB / 1.022 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.148e-05/1.13, allocations: 37.55 kB / 1.022 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.916e-06/1.13, allocations: 0 / 1.022 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001446/1.13, allocations: 329 kB / 1.022 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.636e-05/1.13, allocations: 21.25 kB / 1.022 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/1.131, allocations: 128.4 kB / 1.022 GB, free: 14.01 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001049/1.131, allocations: 38.73 kB / 1.022 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/1.131, allocations: 7.953 kB / 1.022 GB, free: 13.97 MB / 0.6511 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003634/1.131, allocations: 150.8 kB / 1.022 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/1.131, allocations: 8 kB / 1.022 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/1.131, allocations: 4 kB / 1.022 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.306e-05/1.131, allocations: 7.938 kB / 1.022 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002208/1.131, allocations: 35.36 kB / 1.022 GB, free: 13.78 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.729e-05/1.131, allocations: 11.92 kB / 1.022 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000229/1.132, allocations: 28.11 kB / 1.022 GB, free: 13.74 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.249e-05/1.132, allocations: 8 kB / 1.022 GB, free: 13.73 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.0001141/1.132, allocations: 116.4 kB / 1.023 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.337e-05/1.132, allocations: 19.77 kB / 1.023 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.347e-05/1.132, allocations: 20.33 kB / 1.023 GB, free: 13.58 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/1.132, allocations: 4 kB / 1.023 GB, free: 13.57 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/1.132, allocations: 0 / 1.023 GB, free: 13.57 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/1.132, allocations: 4 kB / 1.023 GB, free: 13.57 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008294/1.133, allocations: 465.5 kB / 1.023 GB, free: 13.11 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/1.133, allocations: 0 / 1.023 GB, free: 13.11 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001931/1.133, allocations: 27.48 kB / 1.023 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/1.133, allocations: 0 / 1.023 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/1.133, allocations: 4 kB / 1.023 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/1.133, allocations: 7.938 kB / 1.023 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/1.133, allocations: 4 kB / 1.023 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004853/1.134, allocations: 346.5 kB / 1.023 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.823e-05/1.134, allocations: 92.69 kB / 1.024 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.891e-05/1.134, allocations: 7.984 kB / 1.024 GB, free: 12.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002944/1.134, allocations: 15.98 kB / 1.024 GB, free: 12.59 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.422e-05/1.134, allocations: 15.88 kB / 1.024 GB, free: 12.57 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/1.134, allocations: 11.62 kB / 1.024 GB, free: 12.56 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.000135/1.134, allocations: 123.2 kB / 1.024 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.4e-07/1.134, allocations: 4 kB / 1.024 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0005744/1.135, allocations: 31.84 kB / 1.024 GB, free: 12.42 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.0002058/1.135, allocations: 103 kB / 1.024 GB, free: 12.31 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002534/1.135, allocations: 82.42 kB / 1.024 GB, free: 12.25 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/1.135, allocations: 1 kB / 1.024 GB, free: 12.25 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001107/1.136, allocations: 31.19 kB / 1.024 GB, free: 12.22 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000671/1.136, allocations: 56.89 kB / 1.024 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006301/1.137, allocations: 246.2 kB / 1.024 GB, free: 11.93 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000371/1.137, allocations: 0.7241 MB / 1.025 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001057/1.137, allocations: 13.33 kB / 1.025 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.252e-05/1.137, allocations: 19.44 kB / 1.025 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of SimCode: time 3.71e-07/1.137, allocations: 0 / 1.025 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of Templates: time 0.006146/1.144, allocations: 1.614 MB / 1.027 GB, free: 9.562 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