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.001806/0.001806, allocations: 104.3 kB / 19.7 MB, free: 2.004 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.002195/0.002195, allocations: 220 kB / 22.99 MB, free: 4.91 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.504/1.504, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.271/3.271, allocations: 0.5107 GB / 0.8166 GB, free: 17.86 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.0021/0.0021, allocations: 69.16 kB / 1.187 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3463, allocations: 181.9 MB / 1.365 GB, free: 13.61 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002552/0.3489, allocations: 0.8047 MB / 1.365 GB, free: 12.81 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00184/0.3507, allocations: 1.304 MB / 1.367 GB, free: 11.49 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.241e-05/0.3508, allocations: 4 kB / 1.367 GB, free: 11.49 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.052e-05/0.3508, allocations: 7.875 kB / 1.367 GB, free: 11.48 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.918e-05/0.3509, allocations: 23.78 kB / 1.367 GB, free: 11.46 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008302/0.3518, allocations: 330.2 kB / 1.367 GB, free: 11.14 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003457/0.3521, allocations: 295.5 kB / 1.367 GB, free: 10.86 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001215/0.3522, allocations: 29.61 kB / 1.367 GB, free: 10.82 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.3524, allocations: 115.7 kB / 1.367 GB, free: 10.71 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001885/0.3526, allocations: 99.66 kB / 1.368 GB, free: 10.61 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.296e-05/0.3526, allocations: 28 kB / 1.368 GB, free: 10.58 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.3527, allocations: 35.98 kB / 1.368 GB, free: 10.55 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.464e-05/0.3528, allocations: 23.92 kB / 1.368 GB, free: 10.52 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.3529, allocations: 99.67 kB / 1.368 GB, free: 10.43 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003251/0.3532, allocations: 267.1 kB / 1.368 GB, free: 10.16 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3532, allocations: 0 / 1.368 GB, free: 10.16 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.253e-06/0.3532, allocations: 0 / 1.368 GB, free: 10.16 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.688e-06/0.3532, allocations: 4 kB / 1.368 GB, free: 10.16 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.0006866/0.3539, allocations: 460.6 kB / 1.368 GB, free: 9.664 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.3539, allocations: 8.031 kB / 1.368 GB, free: 9.656 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.636e-05/0.354, allocations: 20.89 kB / 1.368 GB, free: 9.637 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.3541, allocations: 127.5 kB / 1.369 GB, free: 9.488 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.252e-05/0.3542, allocations: 20.12 kB / 1.369 GB, free: 9.469 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.366e-05/0.3542, allocations: 23.98 kB / 1.369 GB, free: 9.445 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001902/0.3544, allocations: 81.66 kB / 1.369 GB, free: 9.359 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.3544, allocations: 0 / 1.369 GB, free: 9.359 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.3544, allocations: 4 kB / 1.369 GB, free: 9.355 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.3545, allocations: 12 kB / 1.369 GB, free: 9.344 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001117/0.3546, allocations: 47.91 kB / 1.369 GB, free: 9.297 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006814/0.3553, allocations: 384 kB / 1.369 GB, free: 8.891 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002423/0.3555, allocations: 70.67 kB / 1.369 GB, free: 8.812 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.331e-05/0.3555, allocations: 20.86 kB / 1.369 GB, free: 8.789 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.659e-05/0.3556, allocations: 11.92 kB / 1.369 GB, free: 8.777 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002422/0.3558, allocations: 111.3 kB / 1.369 GB, free: 8.656 MB / 1.061 GB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.3558, allocations: 0 / 1.369 GB, free: 8.656 MB / 1.061 GB Notification: Performance of matching and sorting (n=14): time 0.0003898/0.3562, allocations: 180.5 kB / 1.369 GB, free: 8.477 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.998e-05/0.3562, allocations: 55.41 kB / 1.37 GB, free: 8.41 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001499/0.3564, allocations: 155.4 kB / 1.37 GB, free: 8.25 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.049e-05/0.3564, allocations: 37.64 kB / 1.37 GB, free: 8.207 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.695e-05/0.3565, allocations: 108.5 kB / 1.37 GB, free: 8.094 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.103e-05/0.3566, allocations: 31.78 kB / 1.37 GB, free: 8.062 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001397/0.3567, allocations: 73.67 kB / 1.37 GB, free: 7.984 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001558/0.3569, allocations: 326.8 kB / 1.37 GB, free: 7.656 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002777/0.3571, allocations: 189 kB / 1.37 GB, free: 7.453 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003053/0.3575, allocations: 236.7 kB / 1.371 GB, free: 7.184 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003303/0.3578, allocations: 265.2 kB / 1.371 GB, free: 6.887 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3578, allocations: 0 / 1.371 GB, free: 6.887 MB / 1.061 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007427/0.3585, allocations: 0.4916 MB / 1.371 GB, free: 6.352 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 7.999e-05/0.3586, allocations: 93.09 kB / 1.371 GB, free: 6.242 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.3586, allocations: 8.188 kB / 1.371 GB, free: 6.234 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.3586, allocations: 3.938 kB / 1.371 GB, free: 6.23 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.558e-05/0.3587, allocations: 15.98 kB / 1.372 GB, free: 6.215 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.3587, allocations: 0 / 1.372 GB, free: 6.215 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004823/0.3592, allocations: 83.8 kB / 1.372 GB, free: 6.133 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.304e-05/0.3592, allocations: 19.98 kB / 1.372 GB, free: 6.113 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.0001324/0.3594, allocations: 137.8 kB / 1.372 GB, free: 5.969 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.225e-05/0.3594, allocations: 15.89 kB / 1.372 GB, free: 5.953 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.661e-05/0.3594, allocations: 12.77 kB / 1.372 GB, free: 5.938 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.3594, allocations: 4 kB / 1.372 GB, free: 5.934 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3594, allocations: 0 / 1.372 GB, free: 5.934 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3594, allocations: 0 / 1.372 GB, free: 5.934 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001598/0.3596, allocations: 153.2 kB / 1.372 GB, free: 5.754 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3596, allocations: 0 / 1.372 GB, free: 5.754 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.319e-05/0.3596, allocations: 8 kB / 1.372 GB, free: 5.746 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.3596, allocations: 7.938 kB / 1.372 GB, free: 5.738 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.3596, allocations: 11.94 kB / 1.372 GB, free: 5.727 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.3596, allocations: 0 / 1.372 GB, free: 5.727 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3596, allocations: 0 / 1.372 GB, free: 5.727 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000243/0.3599, allocations: 161 kB / 1.372 GB, free: 5.551 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.144e-05/0.3599, allocations: 19.83 kB / 1.372 GB, free: 5.531 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.19e-05/0.3599, allocations: 8 kB / 1.372 GB, free: 5.523 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.018e-05/0.36, allocations: 0 / 1.372 GB, free: 5.523 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.202e-05/0.36, allocations: 11.98 kB / 1.372 GB, free: 5.512 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.327e-05/0.36, allocations: 7.984 kB / 1.372 GB, free: 5.504 MB / 1.061 GB Notification: Performance of sorting global known variables: time 8.032e-05/0.3601, allocations: 109.6 kB / 1.372 GB, free: 5.398 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3601, allocations: 4 kB / 1.372 GB, free: 5.395 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002705/0.3604, allocations: 48 kB / 1.372 GB, free: 5.348 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.0001648/0.3605, allocations: 117.3 kB / 1.372 GB, free: 5.227 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005736/0.3611, allocations: 431.2 kB / 1.373 GB, free: 4.75 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3611, allocations: 0 / 1.373 GB, free: 4.75 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.781e-05/0.3612, allocations: 47.91 kB / 1.373 GB, free: 4.703 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002756/0.3615, allocations: 40.27 kB / 1.373 GB, free: 4.664 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005003/0.362, allocations: 273.1 kB / 1.373 GB, free: 4.367 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.278e-05/0.3621, allocations: 94.22 kB / 1.373 GB, free: 4.254 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.374e-05/0.3621, allocations: 15.44 kB / 1.373 GB, free: 4.242 MB / 1.061 GB Notification: Performance of SimCode: time 3.21e-07/0.3621, allocations: 4 kB / 1.373 GB, free: 4.238 MB / 1.061 GB Notification: Performance of Templates: time 0.004469/0.3666, allocations: 2.268 MB / 1.375 GB, free: 1.992 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/jenkins1/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: 11.294549492187798]