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.246/2.246, allocations: 393.5 MB / 408.4 MB, free: 10.95 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.001112/0.001112, allocations: 172 kB / 0.4902 GB, free: 2.246 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.682/1.682, allocations: 223.1 MB / 0.7992 GB, free: 14.68 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.001084/0.001084, allocations: 96.27 kB / 0.9396 GB, free: 1.797 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004077/0.0004077, allocations: 13.84 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.347/0.3475, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.204/0.5515, allocations: 150.7 MB / 1.376 GB, free: 2.703 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000284/0.5519, allocations: 71.95 kB / 1.376 GB, free: 2.633 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01301/0.5649, allocations: 3.293 MB / 1.38 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of FrontEnd: time 6.472e-06/0.565, allocations: 7.938 kB / 1.38 GB, free: 15.33 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.794e-05/0.565, allocations: 0 / 1.38 GB, free: 15.33 MB / 0.8855 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.0008609/0.5659, allocations: 448.6 kB / 1.38 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.5659, allocations: 8.562 kB / 1.38 GB, free: 14.83 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.227e-05/0.566, allocations: 15.91 kB / 1.38 GB, free: 14.81 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001518/0.5662, allocations: 183.5 kB / 1.38 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.385e-05/0.5662, allocations: 7.984 kB / 1.38 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.112e-05/0.5663, allocations: 12 kB / 1.38 GB, free: 14.57 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002524/0.5665, allocations: 101.6 kB / 1.38 GB, free: 14.47 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.5666, allocations: 0 / 1.38 GB, free: 14.47 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.54e-05/0.5666, allocations: 4 kB / 1.38 GB, free: 14.46 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.5666, allocations: 4 kB / 1.38 GB, free: 14.46 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001971/0.5668, allocations: 67.89 kB / 1.381 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009816/0.5678, allocations: 432.4 kB / 1.381 GB, free: 13.92 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001602/0.568, allocations: 50.5 kB / 1.381 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.568, allocations: 3.984 kB / 1.381 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002993/0.5683, allocations: 119.3 kB / 1.381 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.5683, allocations: 0 / 1.381 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10): time 0.0004876/0.5688, allocations: 161.5 kB / 1.381 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.306e-05/0.5688, allocations: 51.41 kB / 1.381 GB, free: 13.5 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.569, allocations: 141 kB / 1.381 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.283e-05/0.569, allocations: 33.7 kB / 1.381 GB, free: 13.32 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 9.32e-05/0.5691, allocations: 104.3 kB / 1.382 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.522e-05/0.5692, allocations: 31.61 kB / 1.382 GB, free: 13.18 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.491e-05/0.5692, allocations: 7.938 kB / 1.382 GB, free: 13.17 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001317/0.5693, allocations: 326.8 kB / 1.382 GB, free: 12.84 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.5695, allocations: 63.95 kB / 1.382 GB, free: 12.78 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002261/0.5698, allocations: 134.3 kB / 1.382 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002153/0.57, allocations: 101.6 kB / 1.382 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.57, allocations: 0 / 1.382 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0005308/0.5705, allocations: 266.8 kB / 1.382 GB, free: 12.23 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.555e-05/0.5706, allocations: 41.69 kB / 1.382 GB, free: 12.18 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.5706, allocations: 4 kB / 1.382 GB, free: 12.18 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.5706, allocations: 4 kB / 1.382 GB, free: 12.18 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001289/0.5708, allocations: 32.27 kB / 1.383 GB, free: 12.14 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.5708, allocations: 4 kB / 1.383 GB, free: 12.14 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002446/0.571, allocations: 47.89 kB / 1.383 GB, free: 12.09 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.133e-05/0.5711, allocations: 16 kB / 1.383 GB, free: 12.08 MB / 0.8855 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 () * Number of clocked 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.0001276/0.5712, allocations: 132.3 kB / 1.383 GB, free: 11.94 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.396e-05/0.5712, allocations: 19.75 kB / 1.383 GB, free: 11.92 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.616e-05/0.5713, allocations: 12.72 kB / 1.383 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.5713, allocations: 0 / 1.383 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.5713, allocations: 4 kB / 1.383 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.5713, allocations: 0 / 1.383 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006309/0.5719, allocations: 434.7 kB / 1.383 GB, free: 11.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.5719, allocations: 0 / 1.383 GB, free: 11.43 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.5721, allocations: 15.98 kB / 1.383 GB, free: 11.41 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.5721, allocations: 0 / 1.383 GB, free: 11.41 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.5721, allocations: 4 kB / 1.383 GB, free: 11.41 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.5721, allocations: 3.938 kB / 1.383 GB, free: 11.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.5721, allocations: 7.984 kB / 1.383 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004699/0.5726, allocations: 275.3 kB / 1.383 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.023e-05/0.5726, allocations: 92.91 kB / 1.384 GB, free: 11 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/0.5727, allocations: 0 / 1.384 GB, free: 11 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.5728, allocations: 11.98 kB / 1.384 GB, free: 10.99 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.371e-05/0.5728, allocations: 11.98 kB / 1.384 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.41e-05/0.5728, allocations: 4 kB / 1.384 GB, free: 10.97 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 8.76e-05/0.5729, allocations: 115 kB / 1.384 GB, free: 10.86 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5729, allocations: 0 / 1.384 GB, free: 10.86 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002851/0.5732, allocations: 40 kB / 1.384 GB, free: 10.82 MB / 0.8855 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 () * Number of clocked 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.0002178/0.5735, allocations: 116 kB / 1.384 GB, free: 10.7 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0004275/0.5739, allocations: 203.5 kB / 1.384 GB, free: 10.49 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.5739, allocations: 0 / 1.384 GB, free: 10.49 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001339/0.574, allocations: 51.91 kB / 1.384 GB, free: 10.44 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002457/0.5743, allocations: 12.84 kB / 1.384 GB, free: 10.43 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005723/0.5749, allocations: 298.6 kB / 1.384 GB, free: 10.11 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003123/0.5752, allocations: 0.716 MB / 1.385 GB, free: 9.367 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.955e-05/0.5753, allocations: 8.562 kB / 1.385 GB, free: 9.359 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.304e-05/0.5753, allocations: 19.36 kB / 1.385 GB, free: 9.34 MB / 0.8855 GB Notification: Performance of SimCode: time 2.31e-07/0.5753, allocations: 0 / 1.385 GB, free: 9.34 MB / 0.8855 GB Notification: Performance of Templates: time 0.004283/0.5796, allocations: 1.574 MB / 1.387 GB, free: 7.777 MB / 0.8855 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