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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001474/0.001474, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001632/0.001632, allocations: 210.5 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.526/1.526, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.611/3.611, allocations: 0.5107 GB / 0.8158 GB, free: 17.8 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003372/0.003372, allocations: 71.61 kB / 1.186 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4525/0.4558, allocations: 181.9 MB / 1.364 GB, free: 13.54 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.0023/0.4581, allocations: 0.8002 MB / 1.365 GB, free: 12.74 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002054/0.4602, allocations: 1.308 MB / 1.366 GB, free: 11.42 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.803e-05/0.4603, allocations: 0 / 1.366 GB, free: 11.42 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 5.268e-05/0.4603, allocations: 11.88 kB / 1.366 GB, free: 11.41 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001126/0.4604, allocations: 23.78 kB / 1.366 GB, free: 11.39 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009426/0.4614, allocations: 322.3 kB / 1.366 GB, free: 11.08 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0004006/0.4618, allocations: 291.5 kB / 1.367 GB, free: 10.8 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.4619, allocations: 29.62 kB / 1.367 GB, free: 10.76 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001639/0.4621, allocations: 115.7 kB / 1.367 GB, free: 10.65 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002213/0.4623, allocations: 103.6 kB / 1.367 GB, free: 10.55 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.631e-05/0.4624, allocations: 24 kB / 1.367 GB, free: 10.52 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001089/0.4625, allocations: 43.92 kB / 1.367 GB, free: 10.48 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.249e-05/0.4625, allocations: 31.91 kB / 1.367 GB, free: 10.45 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.4626, allocations: 91.75 kB / 1.367 GB, free: 10.36 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003444/0.463, allocations: 263.1 kB / 1.367 GB, free: 10.1 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.463, allocations: 0 / 1.367 GB, free: 10.1 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.583e-06/0.463, allocations: 0 / 1.367 GB, free: 10.1 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.463, allocations: 0 / 1.367 GB, free: 10.1 MB / 1.061 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.0006812/0.4637, allocations: 460.9 kB / 1.368 GB, free: 9.605 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.4637, allocations: 12.03 kB / 1.368 GB, free: 9.594 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.182e-05/0.4638, allocations: 16.89 kB / 1.368 GB, free: 9.578 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.4639, allocations: 134.9 kB / 1.368 GB, free: 9.422 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.564e-05/0.464, allocations: 20.12 kB / 1.368 GB, free: 9.402 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.144e-05/0.464, allocations: 27.98 kB / 1.368 GB, free: 9.375 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001763/0.4642, allocations: 81.66 kB / 1.368 GB, free: 9.289 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.4642, allocations: 0 / 1.368 GB, free: 9.289 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.837e-05/0.4642, allocations: 8 kB / 1.368 GB, free: 9.281 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.4642, allocations: 0 / 1.368 GB, free: 9.281 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001098/0.4643, allocations: 55.91 kB / 1.368 GB, free: 9.227 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006414/0.465, allocations: 376.1 kB / 1.368 GB, free: 8.828 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000236/0.4652, allocations: 66.61 kB / 1.368 GB, free: 8.754 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.927e-05/0.4653, allocations: 28.86 kB / 1.368 GB, free: 8.723 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 8.526e-06/0.4653, allocations: 4 kB / 1.368 GB, free: 8.719 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002438/0.4655, allocations: 115.2 kB / 1.369 GB, free: 8.594 MB / 1.061 GB Notification: Performance of pre-optimization done (n=14): time 1.383e-06/0.4655, allocations: 0 / 1.369 GB, free: 8.594 MB / 1.061 GB Notification: Performance of matching and sorting (n=14): time 0.0004197/0.4659, allocations: 177.7 kB / 1.369 GB, free: 8.414 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.466, allocations: 55.41 kB / 1.369 GB, free: 8.348 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001818/0.4662, allocations: 155.8 kB / 1.369 GB, free: 8.188 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.39e-05/0.4662, allocations: 37.69 kB / 1.369 GB, free: 8.145 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.4664, allocations: 100.5 kB / 1.369 GB, free: 8.039 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.956e-05/0.4664, allocations: 31.8 kB / 1.369 GB, free: 8.008 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/0.4665, allocations: 77.67 kB / 1.369 GB, free: 7.926 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001816/0.4667, allocations: 326.8 kB / 1.369 GB, free: 7.598 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002871/0.467, allocations: 185 kB / 1.37 GB, free: 7.398 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003377/0.4673, allocations: 245.8 kB / 1.37 GB, free: 7.121 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003559/0.4677, allocations: 254.9 kB / 1.37 GB, free: 6.832 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.4677, allocations: 4 kB / 1.37 GB, free: 6.828 MB / 1.061 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007323/0.4684, allocations: 0.4993 MB / 1.371 GB, free: 6.285 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 8.869e-05/0.4685, allocations: 97.09 kB / 1.371 GB, free: 6.172 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.4685, allocations: 3.938 kB / 1.371 GB, free: 6.168 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.4685, allocations: 4 kB / 1.371 GB, free: 6.164 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.943e-05/0.4686, allocations: 11.98 kB / 1.371 GB, free: 6.152 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.4686, allocations: 4 kB / 1.371 GB, free: 6.148 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004595/0.4691, allocations: 87.98 kB / 1.371 GB, free: 6.062 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.292e-05/0.4691, allocations: 19.98 kB / 1.371 GB, free: 6.043 MB / 1.061 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.0001428/0.4693, allocations: 133.8 kB / 1.371 GB, free: 5.902 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.035e-05/0.4693, allocations: 11.89 kB / 1.371 GB, free: 5.891 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.779e-05/0.4693, allocations: 16.77 kB / 1.371 GB, free: 5.871 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.4693, allocations: 0 / 1.371 GB, free: 5.871 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.4693, allocations: 0 / 1.371 GB, free: 5.871 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.4693, allocations: 4 kB / 1.371 GB, free: 5.867 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001619/0.4695, allocations: 153.2 kB / 1.371 GB, free: 5.688 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.4695, allocations: 0 / 1.371 GB, free: 5.688 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.326e-05/0.4695, allocations: 12 kB / 1.371 GB, free: 5.676 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.036e-06/0.4695, allocations: 11.92 kB / 1.371 GB, free: 5.664 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.4695, allocations: 0 / 1.371 GB, free: 5.664 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.4696, allocations: 7.938 kB / 1.371 GB, free: 5.656 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-05/0.4696, allocations: 3.984 kB / 1.371 GB, free: 5.652 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002463/0.4698, allocations: 160.1 kB / 1.371 GB, free: 5.48 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.105e-05/0.4698, allocations: 19.83 kB / 1.371 GB, free: 5.461 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.322e-05/0.4699, allocations: 8 kB / 1.371 GB, free: 5.453 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.837e-05/0.4699, allocations: 0 / 1.371 GB, free: 5.453 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.857e-05/0.4699, allocations: 15.98 kB / 1.371 GB, free: 5.438 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.4699, allocations: 7.984 kB / 1.371 GB, free: 5.43 MB / 1.061 GB Notification: Performance of sorting global known variables: time 8.288e-05/0.47, allocations: 105.5 kB / 1.371 GB, free: 5.328 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.47, allocations: 0 / 1.371 GB, free: 5.328 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002708/0.4703, allocations: 48 kB / 1.372 GB, free: 5.281 MB / 1.061 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.0001908/0.4705, allocations: 111.1 kB / 1.372 GB, free: 5.164 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005858/0.4711, allocations: 443.2 kB / 1.372 GB, free: 4.676 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4711, allocations: 0 / 1.372 GB, free: 4.676 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 8.194e-05/0.4712, allocations: 39.92 kB / 1.372 GB, free: 4.637 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.4714, allocations: 41.7 kB / 1.372 GB, free: 4.598 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005067/0.4719, allocations: 243.4 kB / 1.372 GB, free: 4.336 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.791e-05/0.472, allocations: 98.59 kB / 1.372 GB, free: 4.219 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.271e-05/0.4721, allocations: 12.97 kB / 1.372 GB, free: 4.207 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.791e-05/0.4721, allocations: 11.44 kB / 1.372 GB, free: 4.199 MB / 1.061 GB Notification: Performance of SimCode: time 4.21e-07/0.4721, allocations: 4 kB / 1.372 GB, free: 4.195 MB / 1.061 GB Notification: Performance of Templates: time 0.006801/0.4789, allocations: 3.11 MB / 1.376 GB, free: 1.152 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.072308918461204]