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.008772/0.008772, allocations: 100.5 kB / 15.73 MB, free: 6.023 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.001276/0.001276, allocations: 192.9 kB / 16.67 MB, free: 5.957 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.651/1.651, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.12/3.12, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 63.91 kB / 1.054 GB, free: 7.199 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.45/0.4514, allocations: 157.4 MB / 1.208 GB, free: 9.688 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.003604/0.4551, allocations: 0.8285 MB / 1.209 GB, free: 8.855 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00259/0.4577, allocations: 1.292 MB / 1.21 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001198/0.4578, allocations: 4 kB / 1.21 GB, free: 7.547 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 6.515e-05/0.4579, allocations: 7.875 kB / 1.21 GB, free: 7.539 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001465/0.4581, allocations: 23.72 kB / 1.21 GB, free: 7.516 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.4594, allocations: 317.1 kB / 1.21 GB, free: 7.215 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004752/0.4598, allocations: 311.4 kB / 1.21 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002092/0.4601, allocations: 37.44 kB / 1.21 GB, free: 6.871 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001981/0.4603, allocations: 119.7 kB / 1.211 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002478/0.4605, allocations: 111.7 kB / 1.211 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.264e-05/0.4606, allocations: 24 kB / 1.211 GB, free: 6.621 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000143/0.4607, allocations: 47.97 kB / 1.211 GB, free: 6.574 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.354e-05/0.4608, allocations: 19.92 kB / 1.211 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.000149/0.461, allocations: 111.6 kB / 1.211 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004672/0.4614, allocations: 263.2 kB / 1.211 GB, free: 6.188 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.4615, allocations: 0 / 1.211 GB, free: 6.188 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.986e-06/0.4615, allocations: 0 / 1.211 GB, free: 6.188 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.113e-05/0.4615, allocations: 0 / 1.211 GB, free: 6.188 MB / 0.9669 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.001093/0.4626, allocations: 0.5274 MB / 1.212 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 6.523e-05/0.4626, allocations: 8.625 kB / 1.212 GB, free: 5.586 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.4628, allocations: 16.84 kB / 1.212 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002412/0.463, allocations: 195 kB / 1.212 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.257e-05/0.4631, allocations: 16.12 kB / 1.212 GB, free: 5.328 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.262e-05/0.4631, allocations: 27.98 kB / 1.212 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002543/0.4634, allocations: 90.97 kB / 1.212 GB, free: 5.207 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.4634, allocations: 0 / 1.212 GB, free: 5.207 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.154e-05/0.4634, allocations: 4 kB / 1.212 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.4635, allocations: 0 / 1.212 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000129/0.4636, allocations: 47.97 kB / 1.212 GB, free: 5.156 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009305/0.4645, allocations: 492.1 kB / 1.213 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002981/0.4648, allocations: 74.61 kB / 1.213 GB, free: 4.543 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.013e-05/0.4649, allocations: 24.92 kB / 1.213 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/0.4649, allocations: 4 kB / 1.213 GB, free: 4.512 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002452/0.4652, allocations: 123.2 kB / 1.213 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=14): time 1.363e-06/0.4652, allocations: 0 / 1.213 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14): time 0.000475/0.4657, allocations: 172.5 kB / 1.213 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/0.4658, allocations: 59.34 kB / 1.213 GB, free: 4.137 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002013/0.466, allocations: 168.3 kB / 1.213 GB, free: 3.965 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.636e-05/0.466, allocations: 37.64 kB / 1.213 GB, free: 3.922 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.4661, allocations: 112 kB / 1.213 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.32e-05/0.4662, allocations: 31.64 kB / 1.213 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/0.4663, allocations: 77.66 kB / 1.213 GB, free: 3.695 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001944/0.4665, allocations: 322.8 kB / 1.214 GB, free: 3.371 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002144/0.4668, allocations: 95.95 kB / 1.214 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002421/0.467, allocations: 142 kB / 1.214 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004014/0.4674, allocations: 252.6 kB / 1.214 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/0.4675, allocations: 0 / 1.214 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006853/0.4681, allocations: 407.7 kB / 1.215 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.4683, allocations: 101.1 kB / 1.215 GB, free: 2.293 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.4683, allocations: 192 / 1.215 GB, free: 2.293 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.799e-05/0.4683, allocations: 8 kB / 1.215 GB, free: 2.285 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.47e-05/0.4684, allocations: 15.98 kB / 1.215 GB, free: 2.27 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.769e-05/0.4684, allocations: 7.938 kB / 1.215 GB, free: 2.262 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004886/0.4689, allocations: 79.75 kB / 1.215 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.219e-05/0.469, allocations: 19.98 kB / 1.215 GB, free: 2.164 MB / 0.9669 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.0001851/0.4692, allocations: 133.8 kB / 1.215 GB, free: 2.023 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.363e-05/0.4692, allocations: 15.78 kB / 1.215 GB, free: 2.008 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.069e-05/0.4693, allocations: 20.83 kB / 1.215 GB, free: 1.98 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.4693, allocations: 0 / 1.215 GB, free: 1.98 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.415e-06/0.4693, allocations: 0 / 1.215 GB, free: 1.98 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.4693, allocations: 0 / 1.215 GB, free: 1.98 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002963/0.4696, allocations: 217.5 kB / 1.215 GB, free: 1.719 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.4696, allocations: 0 / 1.215 GB, free: 1.719 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.221e-05/0.4697, allocations: 23.86 kB / 1.215 GB, free: 1.695 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.4697, allocations: 0 / 1.215 GB, free: 1.695 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.4697, allocations: 8 kB / 1.215 GB, free: 1.688 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.4697, allocations: 0 / 1.215 GB, free: 1.688 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.4697, allocations: 0 / 1.215 GB, free: 1.688 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002529/0.47, allocations: 153 kB / 1.215 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.389e-05/0.4701, allocations: 92.86 kB / 1.215 GB, free: 1.41 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.315e-05/0.4701, allocations: 3.984 kB / 1.215 GB, free: 1.406 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.184e-05/0.4701, allocations: 15.94 kB / 1.215 GB, free: 1.391 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.036e-05/0.4702, allocations: 7.984 kB / 1.215 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.4702, allocations: 8 kB / 1.215 GB, free: 1.375 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.68e-05/0.4703, allocations: 120.4 kB / 1.216 GB, free: 1.258 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4703, allocations: 0 / 1.216 GB, free: 1.258 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002832/0.4706, allocations: 55.94 kB / 1.216 GB, free: 1.203 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002347/0.4709, allocations: 112.8 kB / 1.216 GB, free: 1.086 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0005664/0.4714, allocations: 382.1 kB / 1.216 GB, free: 0.6758 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.4714, allocations: 0 / 1.216 GB, free: 0.6758 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 8.975e-05/0.4715, allocations: 55.92 kB / 1.216 GB, free: 0.6211 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.4718, allocations: 23.97 kB / 1.216 GB, free: 0.5977 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006176/0.4725, allocations: 247 kB / 1.216 GB, free: 344 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000426/0.4729, allocations: 0.7123 MB / 1.217 GB, free: 15.6 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.637e-05/0.473, allocations: 12.64 kB / 1.217 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.879e-05/0.473, allocations: 19.38 kB / 1.217 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of SimCode: time 2.2e-07/0.473, allocations: 0 / 1.217 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of Templates: time 0.00653/0.4796, allocations: 2.892 MB / 1.22 GB, free: 12.71 MB / 0.9825 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/jenkins/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