Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001353/0.001353, allocations: 106.2 kB / 19.69 MB, free: 2.277 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.001683/0.001683, allocations: 219.2 kB / 23.01 MB, free: 4.605 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.456/1.456, allocations: 230.6 MB / 256.8 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.119/3.119, allocations: 0.49 GB / 0.7959 GB, free: 33.52 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.002183/0.002183, allocations: 71.2 kB / 1.155 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3536, allocations: 176.1 MB / 1.327 GB, free: 1.469 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.00204/0.3556, allocations: 0.8357 MB / 1.328 GB, free: 0.6367 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001729/0.3573, allocations: 1.33 MB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.823e-05/0.3574, allocations: 0 / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.734e-05/0.3575, allocations: 11.81 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.141e-05/0.3575, allocations: 23.78 kB / 1.329 GB, free: 15.26 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008431/0.3584, allocations: 333.6 kB / 1.33 GB, free: 14.94 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003575/0.3587, allocations: 287.5 kB / 1.33 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.3589, allocations: 25.62 kB / 1.33 GB, free: 14.63 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001488/0.359, allocations: 119.8 kB / 1.33 GB, free: 14.51 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001938/0.3592, allocations: 107.7 kB / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.497e-05/0.3593, allocations: 32 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.655e-05/0.3594, allocations: 43.92 kB / 1.33 GB, free: 14.33 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.341e-05/0.3594, allocations: 23.92 kB / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001271/0.3595, allocations: 99.67 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003545/0.3599, allocations: 279 kB / 1.331 GB, free: 13.94 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3599, allocations: 0 / 1.331 GB, free: 13.94 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.814e-06/0.3599, allocations: 0 / 1.331 GB, free: 13.94 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.632e-06/0.3599, allocations: 0 / 1.331 GB, free: 13.94 MB / 1.029 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.0006985/0.3606, allocations: 458.9 kB / 1.331 GB, free: 13.44 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.3606, allocations: 12.03 kB / 1.331 GB, free: 13.43 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.373e-05/0.3607, allocations: 24.84 kB / 1.331 GB, free: 13.41 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.3608, allocations: 128.6 kB / 1.331 GB, free: 13.26 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.443e-05/0.3608, allocations: 16.12 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.915e-05/0.3609, allocations: 23.98 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001772/0.3611, allocations: 90.92 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.3611, allocations: 0 / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.3611, allocations: 4 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.3611, allocations: 4 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001033/0.3612, allocations: 43.97 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007065/0.3619, allocations: 475.2 kB / 1.332 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000235/0.3621, allocations: 66.56 kB / 1.332 GB, free: 12.49 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.698e-05/0.3622, allocations: 28.91 kB / 1.332 GB, free: 12.46 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.257e-05/0.3622, allocations: 0 / 1.332 GB, free: 12.46 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001824/0.3624, allocations: 119.4 kB / 1.332 GB, free: 12.33 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.322e-06/0.3624, allocations: 0 / 1.332 GB, free: 12.33 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0003727/0.3628, allocations: 176 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.594e-05/0.3628, allocations: 59.41 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.363, allocations: 160.2 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.973e-05/0.363, allocations: 33.7 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.688e-05/0.3631, allocations: 116 kB / 1.333 GB, free: 11.77 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.901e-05/0.3631, allocations: 23.84 kB / 1.333 GB, free: 11.74 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/0.3633, allocations: 77.67 kB / 1.333 GB, free: 11.66 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3634, allocations: 322.8 kB / 1.333 GB, free: 11.34 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/0.3636, allocations: 99.94 kB / 1.333 GB, free: 11.24 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002319/0.3638, allocations: 142.8 kB / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003089/0.3642, allocations: 249 kB / 1.333 GB, free: 10.8 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.3642, allocations: 4 kB / 1.333 GB, free: 10.79 MB / 1.029 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006316/0.3648, allocations: 416.5 kB / 1.334 GB, free: 10.36 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 7.803e-05/0.3649, allocations: 105 kB / 1.334 GB, free: 10.24 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.3649, allocations: 0 / 1.334 GB, free: 10.24 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.3649, allocations: 4 kB / 1.334 GB, free: 10.24 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.482e-05/0.3649, allocations: 11.94 kB / 1.334 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.365, allocations: 4 kB / 1.334 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004404/0.3654, allocations: 87.92 kB / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.089e-05/0.3654, allocations: 23.98 kB / 1.334 GB, free: 10.11 MB / 1.029 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.0001307/0.3656, allocations: 142.2 kB / 1.334 GB, free: 9.965 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.907e-05/0.3656, allocations: 19.84 kB / 1.334 GB, free: 9.945 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.335e-05/0.3656, allocations: 8.781 kB / 1.334 GB, free: 9.93 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.3656, allocations: 4 kB / 1.334 GB, free: 9.926 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.309e-06/0.3656, allocations: 0 / 1.334 GB, free: 9.926 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3656, allocations: 4 kB / 1.334 GB, free: 9.922 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001877/0.3658, allocations: 192.7 kB / 1.334 GB, free: 9.691 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3658, allocations: 0 / 1.334 GB, free: 9.691 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.298e-05/0.3659, allocations: 11.94 kB / 1.334 GB, free: 9.68 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.3659, allocations: 0 / 1.334 GB, free: 9.68 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.3659, allocations: 3.984 kB / 1.334 GB, free: 9.676 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.3659, allocations: 7.938 kB / 1.334 GB, free: 9.668 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.3659, allocations: 0 / 1.334 GB, free: 9.668 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000238/0.3661, allocations: 168.9 kB / 1.335 GB, free: 9.484 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.176e-05/0.3661, allocations: 19.83 kB / 1.335 GB, free: 9.465 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.841e-05/0.3662, allocations: 0 / 1.335 GB, free: 9.465 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.42e-05/0.3662, allocations: 4 kB / 1.335 GB, free: 9.461 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.64e-05/0.3662, allocations: 11.97 kB / 1.335 GB, free: 9.449 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.926e-06/0.3662, allocations: 4 kB / 1.335 GB, free: 9.445 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.49e-05/0.3663, allocations: 121.4 kB / 1.335 GB, free: 9.328 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3663, allocations: 0 / 1.335 GB, free: 9.328 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002703/0.3666, allocations: 51.94 kB / 1.335 GB, free: 9.277 MB / 1.029 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.0001519/0.3668, allocations: 103.2 kB / 1.335 GB, free: 9.168 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004848/0.3672, allocations: 350 kB / 1.335 GB, free: 8.789 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3672, allocations: 0 / 1.335 GB, free: 8.789 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.844e-05/0.3673, allocations: 47.97 kB / 1.335 GB, free: 8.742 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002486/0.3676, allocations: 24.3 kB / 1.335 GB, free: 8.719 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004617/0.368, allocations: 285.9 kB / 1.336 GB, free: 8.41 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.3684, allocations: 0.7084 MB / 1.336 GB, free: 7.676 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.351e-05/0.3684, allocations: 19.44 kB / 1.336 GB, free: 7.656 MB / 1.029 GB Notification: Performance of SimCode: time 3.1e-07/0.3684, allocations: 0 / 1.336 GB, free: 7.656 MB / 1.029 GB Notification: Performance of Templates: time 0.004149/0.3725, allocations: 2.283 MB / 1.338 GB, free: 5.387 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.080412098992383]