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.001402/0.001402, allocations: 77.62 kB / 19.76 MB, free: 2.031 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.001641/0.001641, allocations: 157.1 kB / 23.01 MB, free: 4.941 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.47/1.47, allocations: 177.2 MB / 203.4 MB, free: 8.949 MB / 190.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 2.918/2.918, allocations: 394.2 MB / 0.6386 GB, free: 11.92 MB / 0.6075 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.002275/0.002275, allocations: 59.91 kB / 1.009 GB, free: 14.6 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8847/0.8869, allocations: 181.8 MB / 1.187 GB, free: 16.15 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001865/0.8888, allocations: 0.8063 MB / 1.187 GB, free: 15.64 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.00132/0.8901, allocations: 1.308 MB / 1.189 GB, free: 14.7 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.752e-05/0.8902, allocations: 2.656 kB / 1.189 GB, free: 14.7 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 3.991e-05/0.8902, allocations: 9.234 kB / 1.189 GB, free: 14.69 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 7.279e-05/0.8903, allocations: 20.81 kB / 1.189 GB, free: 14.68 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007672/0.8911, allocations: 327.8 kB / 1.189 GB, free: 14.51 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0003051/0.8914, allocations: 288 kB / 1.189 GB, free: 14.39 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.8915, allocations: 35.52 kB / 1.189 GB, free: 14.37 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.8916, allocations: 117.9 kB / 1.189 GB, free: 14.32 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001729/0.8918, allocations: 96.94 kB / 1.19 GB, free: 14.29 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 5.512e-05/0.8918, allocations: 30.73 kB / 1.19 GB, free: 14.28 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 8.909e-05/0.8919, allocations: 34.81 kB / 1.19 GB, free: 14.28 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 2.881e-05/0.8919, allocations: 25.28 kB / 1.19 GB, free: 14.27 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.8921, allocations: 107.6 kB / 1.19 GB, free: 14.21 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0003111/0.8924, allocations: 255.6 kB / 1.19 GB, free: 14.12 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.8924, allocations: 0 / 1.19 GB, free: 14.12 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.262e-06/0.8924, allocations: 3.938 kB / 1.19 GB, free: 14.12 MB / 1.076 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.8924, allocations: 1.375 kB / 1.19 GB, free: 14.12 MB / 1.076 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.0005045/0.8929, allocations: 459.9 kB / 1.19 GB, free: 13.71 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.8929, allocations: 11.16 kB / 1.19 GB, free: 13.71 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.998e-05/0.893, allocations: 17.14 kB / 1.19 GB, free: 13.7 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.515e-05/0.8931, allocations: 132.6 kB / 1.191 GB, free: 13.56 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.998e-05/0.8931, allocations: 18.02 kB / 1.191 GB, free: 13.55 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.764e-05/0.8932, allocations: 20.72 kB / 1.191 GB, free: 13.55 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001573/0.8933, allocations: 86.98 kB / 1.191 GB, free: 13.5 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.8933, allocations: 0 / 1.191 GB, free: 13.5 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.8933, allocations: 11.2 kB / 1.191 GB, free: 13.49 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.8933, allocations: 1.25 kB / 1.191 GB, free: 13.49 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.545e-05/0.8934, allocations: 43.36 kB / 1.191 GB, free: 13.48 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005272/0.894, allocations: 385.6 kB / 1.191 GB, free: 13.2 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002056/0.8942, allocations: 67.48 kB / 1.191 GB, free: 13.16 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.074e-05/0.8942, allocations: 28.25 kB / 1.191 GB, free: 13.14 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.359e-05/0.8942, allocations: 5.328 kB / 1.191 GB, free: 13.14 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001925/0.8944, allocations: 116.7 kB / 1.191 GB, free: 13.07 MB / 1.076 GB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.8944, allocations: 0 / 1.191 GB, free: 13.07 MB / 1.076 GB Notification: Performance of matching and sorting (n=14): time 0.0003275/0.8948, allocations: 177.8 kB / 1.191 GB, free: 12.98 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.289e-05/0.8948, allocations: 54.38 kB / 1.192 GB, free: 12.92 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.573e-05/0.8949, allocations: 151.7 kB / 1.192 GB, free: 12.8 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 3.567e-05/0.8949, allocations: 35.38 kB / 1.192 GB, free: 12.77 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 5.501e-05/0.895, allocations: 109.8 kB / 1.192 GB, free: 12.67 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.105e-05/0.895, allocations: 33.72 kB / 1.192 GB, free: 12.64 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/0.8951, allocations: 81.33 kB / 1.192 GB, free: 12.61 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 4.23e-05/0.8952, allocations: 326 kB / 1.192 GB, free: 12.29 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002432/0.8954, allocations: 192.8 kB / 1.192 GB, free: 12.15 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002315/0.8956, allocations: 236.8 kB / 1.193 GB, free: 11.96 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002512/0.8959, allocations: 257.4 kB / 1.193 GB, free: 11.75 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.8959, allocations: 0 / 1.193 GB, free: 11.75 MB / 1.076 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006133/0.8965, allocations: 0.4949 MB / 1.193 GB, free: 11.42 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 4.723e-05/0.8965, allocations: 96.83 kB / 1.193 GB, free: 11.32 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.8965, allocations: 2.938 kB / 1.193 GB, free: 11.32 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.8966, allocations: 2.75 kB / 1.193 GB, free: 11.32 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.659e-05/0.8966, allocations: 10.17 kB / 1.193 GB, free: 11.32 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.8966, allocations: 3.875 kB / 1.193 GB, free: 11.32 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004875/0.8971, allocations: 84.22 kB / 1.194 GB, free: 11.31 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.388e-05/0.8972, allocations: 21.97 kB / 1.194 GB, free: 11.3 MB / 1.076 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 9.624e-05/0.8973, allocations: 136.8 kB / 1.194 GB, free: 11.18 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.01e-05/0.8973, allocations: 17.41 kB / 1.194 GB, free: 11.16 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.889e-05/0.8973, allocations: 13.47 kB / 1.194 GB, free: 11.16 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.8973, allocations: 1.094 kB / 1.194 GB, free: 11.16 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.8973, allocations: 1.766 kB / 1.194 GB, free: 11.16 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.8973, allocations: 8.734 kB / 1.194 GB, free: 11.15 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001145/0.8974, allocations: 147.6 kB / 1.194 GB, free: 11.01 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.8974, allocations: 0 / 1.194 GB, free: 11.01 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.451e-05/0.8975, allocations: 12.94 kB / 1.194 GB, free: 11 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.8975, allocations: 4.719 kB / 1.194 GB, free: 11 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.8975, allocations: 6.75 kB / 1.194 GB, free: 11 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.8975, allocations: 0.75 kB / 1.194 GB, free: 11 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.8975, allocations: 1.406 kB / 1.194 GB, free: 11 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002035/0.8977, allocations: 162.3 kB / 1.194 GB, free: 10.9 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.568e-05/0.8977, allocations: 15.78 kB / 1.194 GB, free: 10.89 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.97e-05/0.8977, allocations: 6.422 kB / 1.194 GB, free: 10.88 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.208e-05/0.8978, allocations: 6.344 kB / 1.194 GB, free: 10.88 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.16e-05/0.8978, allocations: 12.61 kB / 1.194 GB, free: 10.88 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.8978, allocations: 6.391 kB / 1.194 GB, free: 10.88 MB / 1.076 GB Notification: Performance of sorting global known variables: time 4.906e-05/0.8979, allocations: 108 kB / 1.194 GB, free: 10.79 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.8979, allocations: 3.938 kB / 1.194 GB, free: 10.79 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002832/0.8981, allocations: 53.23 kB / 1.194 GB, free: 10.78 MB / 1.076 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.0001124/0.8983, allocations: 106.4 kB / 1.194 GB, free: 10.69 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0004597/0.8987, allocations: 438.8 kB / 1.195 GB, free: 10.34 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.8987, allocations: 0 / 1.195 GB, free: 10.34 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 7.654e-05/0.8988, allocations: 43.72 kB / 1.195 GB, free: 10.32 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002836/0.8991, allocations: 29.92 kB / 1.195 GB, free: 10.31 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000401/0.8995, allocations: 242.1 kB / 1.195 GB, free: 10.13 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.835e-05/0.8996, allocations: 98.06 kB / 1.195 GB, free: 10.05 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 3.897e-05/0.8996, allocations: 11.22 kB / 1.195 GB, free: 10.05 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.784e-05/0.8996, allocations: 19.67 kB / 1.195 GB, free: 10.04 MB / 1.076 GB Notification: Performance of SimCode: time 3.31e-07/0.8996, allocations: 0.875 kB / 1.195 GB, free: 10.04 MB / 1.076 GB Notification: Performance of Templates: time 0.006843/0.9065, allocations: 3.035 MB / 1.198 GB, free: 9.676 MB / 1.076 GB " [Timeout remaining time 299] 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 -s ida -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: 9.10333173291292]