Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.224/2.224, allocations: 390.3 MB / 402.8 MB, free: 6.641 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.001147/0.001147, allocations: 176.9 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.581/1.581, allocations: 221.3 MB / 0.7915 GB, free: 5.367 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.000905/0.000905, allocations: 95.94 kB / 0.9317 GB, free: 5.676 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.281e-05/4.304e-05, allocations: 8 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3392/0.3393, allocations: 143 MB / 1.219 GB, free: 13.47 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.154/1.493, allocations: 150.7 MB / 1.366 GB, free: 3.348 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002673/1.493, allocations: 71.08 kB / 1.366 GB, free: 3.309 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009855/1.503, allocations: 3.284 MB / 1.369 GB, free: 0.4922 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.565e-06/1.503, allocations: 0 / 1.369 GB, free: 0.4922 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.896e-05/1.503, allocations: 0 / 1.369 GB, free: 0.4922 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000709/1.504, allocations: 435.5 kB / 1.37 GB, free: 28 kB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 6.38e-05/1.504, allocations: 12.03 kB / 1.37 GB, free: 16 kB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.732e-05/1.504, allocations: 15.81 kB / 1.37 GB, free: 0 / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002356/1.505, allocations: 175.6 kB / 1.37 GB, free: 15.79 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.946e-05/1.505, allocations: 11.75 kB / 1.37 GB, free: 15.78 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.95e-05/1.505, allocations: 11.5 kB / 1.37 GB, free: 15.77 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002152/1.505, allocations: 81.69 kB / 1.37 GB, free: 15.7 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/1.505, allocations: 0 / 1.37 GB, free: 15.7 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.214e-05/1.505, allocations: 7.734 kB / 1.37 GB, free: 15.7 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/1.505, allocations: 4 kB / 1.37 GB, free: 15.69 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.202e-05/1.505, allocations: 35.3 kB / 1.37 GB, free: 15.66 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/1.506, allocations: 444.7 kB / 1.37 GB, free: 15.23 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.734e-05/1.506, allocations: 34.16 kB / 1.37 GB, free: 15.19 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.784e-05/1.506, allocations: 16.48 kB / 1.37 GB, free: 15.17 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/1.506, allocations: 3.562 kB / 1.37 GB, free: 15.17 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002146/1.507, allocations: 86.84 kB / 1.37 GB, free: 15.09 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.633e-06/1.507, allocations: 0 / 1.37 GB, free: 15.09 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0002894/1.507, allocations: 97.06 kB / 1.371 GB, free: 15 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.753e-05/1.507, allocations: 59.39 kB / 1.371 GB, free: 14.93 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001803/1.507, allocations: 134.2 kB / 1.371 GB, free: 14.8 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.324e-05/1.507, allocations: 29.39 kB / 1.371 GB, free: 14.77 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.919e-05/1.507, allocations: 107.4 kB / 1.371 GB, free: 14.66 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.11e-05/1.507, allocations: 31.09 kB / 1.371 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.432e-05/1.507, allocations: 7.125 kB / 1.371 GB, free: 14.63 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001887/1.508, allocations: 322.6 kB / 1.371 GB, free: 14.31 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/1.508, allocations: 46.06 kB / 1.371 GB, free: 14.28 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/1.508, allocations: 119.1 kB / 1.371 GB, free: 14.15 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001525/1.508, allocations: 83.48 kB / 1.371 GB, free: 14.07 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/1.508, allocations: 0 / 1.371 GB, free: 14.07 MB / 0.8386 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004046/1.508, allocations: 227.8 kB / 1.372 GB, free: 13.88 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.183e-05/1.508, allocations: 37.69 kB / 1.372 GB, free: 13.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/1.509, allocations: 7.938 kB / 1.372 GB, free: 13.82 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.326e-05/1.509, allocations: 4 kB / 1.372 GB, free: 13.82 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/1.509, allocations: 27.98 kB / 1.372 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.569e-05/1.509, allocations: 12.28 kB / 1.372 GB, free: 13.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002471/1.509, allocations: 51.36 kB / 1.372 GB, free: 13.73 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.638e-05/1.509, allocations: 15.98 kB / 1.372 GB, free: 13.72 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition4,$PRE.booleanPulse.y,booleanPulse.y,$whenCondition1,$whenCondition2,$whenCondition3,intDef.trigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 1 * 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.0001198/1.509, allocations: 124 kB / 1.372 GB, free: 13.6 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.442e-05/1.509, allocations: 15.86 kB / 1.372 GB, free: 13.58 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.433e-05/1.509, allocations: 8 kB / 1.372 GB, free: 13.58 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/1.509, allocations: 0 / 1.372 GB, free: 13.58 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/1.509, allocations: 4 kB / 1.372 GB, free: 13.58 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/1.509, allocations: 4.078 kB / 1.372 GB, free: 13.57 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005279/1.51, allocations: 393.5 kB / 1.372 GB, free: 13.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/1.51, allocations: 0 / 1.372 GB, free: 13.17 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001183/1.51, allocations: 23.23 kB / 1.372 GB, free: 13.15 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/1.51, allocations: 0 / 1.372 GB, free: 13.15 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/1.51, allocations: 4 kB / 1.372 GB, free: 13.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/1.51, allocations: 3.984 kB / 1.372 GB, free: 13.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/1.51, allocations: 0 / 1.372 GB, free: 13.14 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003057/1.51, allocations: 219.1 kB / 1.373 GB, free: 12.94 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.837e-05/1.51, allocations: 88.88 kB / 1.373 GB, free: 12.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/1.51, allocations: 4 kB / 1.373 GB, free: 12.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/1.511, allocations: 15.91 kB / 1.373 GB, free: 12.82 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.668e-05/1.511, allocations: 7.984 kB / 1.373 GB, free: 12.81 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.183e-05/1.511, allocations: 4 kB / 1.373 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.634e-05/1.511, allocations: 116.6 kB / 1.373 GB, free: 12.7 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.1e-07/1.511, allocations: 0 / 1.373 GB, free: 12.7 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003216/1.511, allocations: 35.75 kB / 1.373 GB, free: 12.67 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (intDef.trigger,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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.0003007/1.511, allocations: 123.1 kB / 1.373 GB, free: 12.54 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003204/1.512, allocations: 164.3 kB / 1.373 GB, free: 12.4 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/1.512, allocations: 0 / 1.373 GB, free: 12.4 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.876e-05/1.512, allocations: 42.34 kB / 1.373 GB, free: 12.36 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002689/1.512, allocations: 24.36 kB / 1.373 GB, free: 12.35 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005254/1.513, allocations: 189.2 kB / 1.373 GB, free: 12.16 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004026/1.513, allocations: 0.7082 MB / 1.374 GB, free: 11.43 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.124e-05/1.513, allocations: 8.781 kB / 1.374 GB, free: 11.42 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.704e-05/1.513, allocations: 15.44 kB / 1.374 GB, free: 11.4 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.513, allocations: 0 / 1.374 GB, free: 11.4 MB / 0.8386 GB Notification: Performance of Templates: time 0.004973/1.518, allocations: 1.592 MB / 1.376 GB, free: 9.84 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches