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.0007624/0.0007624, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009824/0.001745, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0006879/0.0006879, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009226/0.00161, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 0.9348/0.9348, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1155/1.05, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.894/1.894, allocations: 378.4 MB / 0.6079 GB, free: 7.723 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.478/2.372, allocations: 123.3 MB / 0.7283 GB, free: 5.773 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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: Performance of FrontEnd - loaded program: time 2.635e-06/2.635e-06, allocations: 0 / 0.7297 GB, free: 4.441 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.313e-05/2.577e-05, allocations: 2.312 kB / 0.7297 GB, free: 4.438 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002595/0.002621, allocations: 0.8798 MB / 0.7305 GB, free: 3.59 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001834/0.004455, allocations: 1.343 MB / 0.7318 GB, free: 2.238 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.005e-05/0.004535, allocations: 0 / 0.7318 GB, free: 2.238 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 4.307e-05/0.004579, allocations: 11.81 kB / 0.7318 GB, free: 2.227 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 9.623e-05/0.004675, allocations: 30.84 kB / 0.7319 GB, free: 2.203 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007842/0.005459, allocations: 302.1 kB / 0.7322 GB, free: 1.91 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0003958/0.005855, allocations: 292 kB / 0.7324 GB, free: 1.641 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001262/0.005981, allocations: 38.84 kB / 0.7325 GB, free: 1.598 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002411/0.006222, allocations: 167.7 kB / 0.7326 GB, free: 1.434 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001707/0.006393, allocations: 84.33 kB / 0.7327 GB, free: 1.352 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 5.581e-05/0.006449, allocations: 24.53 kB / 0.7327 GB, free: 1.328 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000126/0.006575, allocations: 47.92 kB / 0.7328 GB, free: 1.281 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 3.57e-05/0.00661, allocations: 20.81 kB / 0.7328 GB, free: 1.262 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 9.568e-05/0.006706, allocations: 59.92 kB / 0.7329 GB, free: 1.203 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0003068/0.007013, allocations: 172 kB / 0.733 GB, free: 1.035 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.433e-05/0.007027, allocations: 0 / 0.733 GB, free: 1.035 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.623e-06/0.007029, allocations: 0.875 kB / 0.733 GB, free: 1.035 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.678e-05/0.007046, allocations: 0 / 0.733 GB, free: 1.035 MB / 0.698 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.0007076/0.007753, allocations: 462.6 kB / 0.7335 GB, free: 0.543 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.007794, allocations: 15.95 kB / 0.7335 GB, free: 0.5273 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.017e-05/0.007874, allocations: 24.92 kB / 0.7335 GB, free: 0.5039 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002369/0.008111, allocations: 150.2 kB / 0.7337 GB, free: 340 kB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.68e-05/0.008138, allocations: 9.031 kB / 0.7337 GB, free: 332 kB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.255e-05/0.00818, allocations: 20.38 kB / 0.7337 GB, free: 312 kB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001366/0.008317, allocations: 93.14 kB / 0.7338 GB, free: 212 kB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.008327, allocations: 1.719 kB / 0.7338 GB, free: 212 kB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.008338, allocations: 7.922 kB / 0.7338 GB, free: 204 kB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/0.008346, allocations: 4 kB / 0.7338 GB, free: 200 kB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.658e-05/0.008392, allocations: 19.95 kB / 0.7338 GB, free: 180 kB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000487/0.008879, allocations: 256.7 kB / 0.734 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001927/0.009072, allocations: 46.56 kB / 0.7341 GB, free: 15.86 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.057e-05/0.009102, allocations: 17.34 kB / 0.7341 GB, free: 15.84 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 7.634e-06/0.00911, allocations: 0.5625 kB / 0.7341 GB, free: 15.84 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001603/0.00927, allocations: 112.5 kB / 0.7342 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=14): time 3.146e-06/0.009273, allocations: 3.984 kB / 0.7342 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14): time 0.0002159/0.009489, allocations: 103.9 kB / 0.7343 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/0.009536, allocations: 56.28 kB / 0.7344 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.009659, allocations: 160.5 kB / 0.7345 GB, free: 15.37 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.697e-05/0.009696, allocations: 38.33 kB / 0.7346 GB, free: 15.33 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.888e-05/0.009774, allocations: 104.5 kB / 0.7347 GB, free: 15.22 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.34e-05/0.009808, allocations: 36.45 kB / 0.7347 GB, free: 15.19 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.009924, allocations: 65.66 kB / 0.7348 GB, free: 15.12 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001188/0.01004, allocations: 336.5 kB / 0.7351 GB, free: 14.78 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/0.0102, allocations: 149.1 kB / 0.7352 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001808/0.01038, allocations: 203.8 kB / 0.7354 GB, free: 14.38 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00022/0.0106, allocations: 224.1 kB / 0.7356 GB, free: 14.12 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.01061, allocations: 0.5312 kB / 0.7356 GB, free: 14.12 MB / 0.7136 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004231/0.01103, allocations: 393.4 kB / 0.736 GB, free: 13.7 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 7.867e-05/0.01111, allocations: 97.08 kB / 0.7361 GB, free: 13.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.01112, allocations: 5.031 kB / 0.7361 GB, free: 13.58 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.01114, allocations: 3.938 kB / 0.7361 GB, free: 13.58 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.517e-05/0.0112, allocations: 12 kB / 0.7361 GB, free: 13.57 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.01121, allocations: 8.5 kB / 0.7361 GB, free: 13.56 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002698/0.01148, allocations: 69.58 kB / 0.7362 GB, free: 13.49 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.427e-05/0.01151, allocations: 11.98 kB / 0.7362 GB, free: 13.48 MB / 0.7136 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.0001157/0.01163, allocations: 131 kB / 0.7363 GB, free: 13.34 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.79e-05/0.01166, allocations: 13.58 kB / 0.7363 GB, free: 13.33 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.284e-05/0.01169, allocations: 12.78 kB / 0.7364 GB, free: 13.32 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.01169, allocations: 11.92 kB / 0.7364 GB, free: 13.31 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.093e-06/0.0117, allocations: 0 / 0.7364 GB, free: 13.31 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.0117, allocations: 0 / 0.7364 GB, free: 13.31 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001275/0.01183, allocations: 90.61 kB / 0.7364 GB, free: 13.2 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.01183, allocations: 0 / 0.7364 GB, free: 13.2 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.651e-05/0.01188, allocations: 20.55 kB / 0.7365 GB, free: 13.18 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 2.067e-05/0.0119, allocations: 20.59 kB / 0.7365 GB, free: 13.16 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.0119, allocations: 0 / 0.7365 GB, free: 13.16 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.234e-06/0.01191, allocations: 1.031 kB / 0.7365 GB, free: 13.16 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.01191, allocations: 0 / 0.7365 GB, free: 13.16 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.01191, allocations: 7.938 kB / 0.7365 GB, free: 13.16 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001442/0.01206, allocations: 110.2 kB / 0.7366 GB, free: 13.03 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.471e-05/0.01207, allocations: 0 / 0.7366 GB, free: 13.03 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.064e-05/0.0121, allocations: 4 kB / 0.7366 GB, free: 13.03 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.958e-05/0.01214, allocations: 20.47 kB / 0.7366 GB, free: 13.01 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.287e-06/0.01215, allocations: 3.938 kB / 0.7366 GB, free: 13 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 3.9e-05/0.01219, allocations: 36.98 kB / 0.7367 GB, free: 12.97 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7e-08/0.01219, allocations: 3.938 kB / 0.7367 GB, free: 12.96 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002523/0.01244, allocations: 48 kB / 0.7367 GB, free: 12.92 MB / 0.7136 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.0001804/0.01262, allocations: 90.53 kB / 0.7368 GB, free: 12.82 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003887/0.01301, allocations: 401 kB / 0.7372 GB, free: 12.38 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.01302, allocations: 0 / 0.7372 GB, free: 12.38 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.251e-05/0.01307, allocations: 39.97 kB / 0.7372 GB, free: 12.34 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000263/0.01333, allocations: 204.9 kB / 0.7374 GB, free: 12.1 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006777/0.01401, allocations: 237.1 kB / 0.7376 GB, free: 11.84 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.226e-05/0.01406, allocations: 67.34 kB / 0.7377 GB, free: 11.75 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 4.682e-05/0.01411, allocations: 15.53 kB / 0.7377 GB, free: 11.74 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001867/0.0143, allocations: 95.33 kB / 0.7378 GB, free: 11.65 MB / 0.7136 GB Notification: Performance of SimCode: time 7.81e-07/0.0143, allocations: 0 / 0.7378 GB, free: 11.65 MB / 0.7136 GB Notification: Performance of Templates: time 0.006784/0.02108, allocations: 3.312 MB / 0.741 GB, free: 8.516 MB / 0.7136 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.052089161239564]