Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 113.9 kB / 16.42 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 192.3 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.55/1.55, allocations: 222.9 MB / 241.1 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.779/2.779, allocations: 461.9 MB / 0.7355 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001806/0.001806, allocations: 67.89 kB / 1.055 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9605/0.9623, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002269/0.9646, allocations: 0.829 MB / 1.209 GB, free: 12.8 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002065/0.9667, allocations: 1.287 MB / 1.211 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.9668, allocations: 4 kB / 1.211 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 5.624e-05/0.9669, allocations: 15.8 kB / 1.211 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001125/0.9671, allocations: 15.81 kB / 1.211 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001029/0.9681, allocations: 321.5 kB / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004742/0.9686, allocations: 311.5 kB / 1.211 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.9687, allocations: 37.44 kB / 1.211 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002045/0.9689, allocations: 119.7 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002274/0.9692, allocations: 115.6 kB / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 7.514e-05/0.9693, allocations: 28 kB / 1.211 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001277/0.9694, allocations: 39.98 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.648e-05/0.9694, allocations: 19.92 kB / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001604/0.9696, allocations: 107.6 kB / 1.212 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003501/0.97, allocations: 263 kB / 1.212 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.97, allocations: 4 kB / 1.212 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.487e-06/0.97, allocations: 3.984 kB / 1.212 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.256e-06/0.97, allocations: 4 kB / 1.212 GB, free: 10.13 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.000823/0.9708, allocations: 0.5214 MB / 1.212 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/0.9709, allocations: 8.031 kB / 1.212 GB, free: 9.535 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001191/0.971, allocations: 16.84 kB / 1.212 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000191/0.9712, allocations: 188.7 kB / 1.213 GB, free: 9.297 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.108e-05/0.9713, allocations: 11.94 kB / 1.213 GB, free: 9.285 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.632e-05/0.9713, allocations: 20 kB / 1.213 GB, free: 9.266 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002346/0.9716, allocations: 91.03 kB / 1.213 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.9716, allocations: 0 / 1.213 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.54e-05/0.9716, allocations: 3.984 kB / 1.213 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.9716, allocations: 4 kB / 1.213 GB, free: 9.164 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001039/0.9717, allocations: 43.98 kB / 1.213 GB, free: 9.121 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007454/0.9725, allocations: 0.4923 MB / 1.213 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002503/0.9728, allocations: 70.56 kB / 1.213 GB, free: 8.5 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.02e-05/0.9728, allocations: 28.91 kB / 1.213 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.104e-05/0.9728, allocations: 4 kB / 1.213 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002599/0.9731, allocations: 111.3 kB / 1.213 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=14): time 2.043e-06/0.9731, allocations: 4 kB / 1.213 GB, free: 8.34 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14): time 0.0004047/0.9735, allocations: 176.9 kB / 1.214 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.538e-05/0.9736, allocations: 59.41 kB / 1.214 GB, free: 8.094 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001586/0.9738, allocations: 166.2 kB / 1.214 GB, free: 7.926 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.782e-05/0.9738, allocations: 33.7 kB / 1.214 GB, free: 7.887 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.9739, allocations: 120 kB / 1.214 GB, free: 7.766 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.908e-05/0.974, allocations: 23.7 kB / 1.214 GB, free: 7.742 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/0.9741, allocations: 73.67 kB / 1.214 GB, free: 7.664 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.9743, allocations: 322.8 kB / 1.214 GB, free: 7.34 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002086/0.9745, allocations: 95.94 kB / 1.214 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002424/0.9748, allocations: 146 kB / 1.215 GB, free: 7.082 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000315/0.9751, allocations: 252.7 kB / 1.215 GB, free: 6.797 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.9751, allocations: 0 / 1.215 GB, free: 6.797 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000654/0.9757, allocations: 400.6 kB / 1.215 GB, free: 6.383 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 7.577e-05/0.9758, allocations: 101.1 kB / 1.215 GB, free: 6.266 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.9758, allocations: 0 / 1.215 GB, free: 6.266 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/0.9759, allocations: 12.11 kB / 1.215 GB, free: 6.254 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.217e-05/0.9759, allocations: 15.94 kB / 1.215 GB, free: 6.238 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.976, allocations: 4 kB / 1.215 GB, free: 6.234 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000494/0.9765, allocations: 87.66 kB / 1.215 GB, free: 6.148 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.941e-05/0.9765, allocations: 15.98 kB / 1.215 GB, free: 6.133 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001476/0.9767, allocations: 141.8 kB / 1.216 GB, free: 5.984 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.194e-05/0.9767, allocations: 11.84 kB / 1.216 GB, free: 5.973 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.117e-05/0.9767, allocations: 16.84 kB / 1.216 GB, free: 5.945 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.9767, allocations: 0 / 1.216 GB, free: 5.945 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.9768, allocations: 0 / 1.216 GB, free: 5.945 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.252e-05/0.9768, allocations: 96.84 kB / 1.216 GB, free: 5.832 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.551e-05/0.9768, allocations: 4 kB / 1.216 GB, free: 5.828 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.365e-05/0.9769, allocations: 7.938 kB / 1.216 GB, free: 5.82 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.006e-05/0.9769, allocations: 11.98 kB / 1.216 GB, free: 5.809 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002544/0.9772, allocations: 216.9 kB / 1.216 GB, free: 5.59 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002884/0.9775, allocations: 310.6 kB / 1.216 GB, free: 5.27 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.578e-05/0.9776, allocations: 43.98 kB / 1.216 GB, free: 5.227 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.396e-05/0.9777, allocations: 118.7 kB / 1.216 GB, free: 5.113 MB / 0.9356 GB Notification: Performance of Backend: time 4.81e-07/0.9777, allocations: 0 / 1.216 GB, free: 5.113 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0008516/0.9785, allocations: 436.5 kB / 1.217 GB, free: 4.645 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0007252/0.9793, allocations: 0.6757 MB / 1.217 GB, free: 3.922 MB / 0.9356 GB Notification: Performance of Templates: time 0.006713/0.986, allocations: 2.914 MB / 1.22 GB, free: 1.035 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches