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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002005/0.002005, allocations: 113.1 kB / 17.6 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002221/0.002221, allocations: 186.7 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 225.6 MB / 249.4 MB, free: 3.121 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.002/3.002, allocations: 496.2 MB / 0.7819 GB, free: 12.38 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 72.06 kB / 1.136 GB, free: 12.43 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.147/1.149, allocations: 173.6 MB / 1.305 GB, free: 33.41 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001926/1.151, allocations: 0.8415 MB / 1.306 GB, free: 32.87 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001393/1.152, allocations: 1.295 MB / 1.308 GB, free: 31.93 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.018e-05/1.152, allocations: 0 / 1.308 GB, free: 31.93 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.823e-05/1.152, allocations: 11.3 kB / 1.308 GB, free: 31.92 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 9.203e-05/1.152, allocations: 28.73 kB / 1.308 GB, free: 31.9 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007595/1.153, allocations: 322 kB / 1.308 GB, free: 31.74 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002758/1.153, allocations: 289.9 kB / 1.308 GB, free: 31.62 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/1.153, allocations: 31.81 kB / 1.308 GB, free: 31.6 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/1.153, allocations: 121.1 kB / 1.308 GB, free: 31.55 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000153/1.154, allocations: 117.2 kB / 1.308 GB, free: 31.5 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.322e-05/1.154, allocations: 25.75 kB / 1.308 GB, free: 31.5 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.667e-05/1.154, allocations: 38.98 kB / 1.308 GB, free: 31.49 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.743e-05/1.154, allocations: 21.02 kB / 1.308 GB, free: 31.48 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 9.645e-05/1.154, allocations: 110.5 kB / 1.309 GB, free: 31.42 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000276/1.154, allocations: 264.2 kB / 1.309 GB, free: 31.34 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/1.154, allocations: 0 / 1.309 GB, free: 31.34 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.794e-06/1.154, allocations: 0 / 1.309 GB, free: 31.34 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.853e-06/1.154, allocations: 0 / 1.309 GB, free: 31.34 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.0005935/1.155, allocations: 0.5298 MB / 1.309 GB, free: 30.82 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/1.155, allocations: 8.031 kB / 1.309 GB, free: 30.82 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.452e-05/1.155, allocations: 20.83 kB / 1.309 GB, free: 30.82 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.87e-05/1.155, allocations: 192.5 kB / 1.31 GB, free: 30.6 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.992e-05/1.155, allocations: 13.25 kB / 1.31 GB, free: 30.6 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.672e-05/1.155, allocations: 18.84 kB / 1.31 GB, free: 30.59 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001673/1.155, allocations: 88.06 kB / 1.31 GB, free: 30.54 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/1.155, allocations: 0 / 1.31 GB, free: 30.54 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/1.155, allocations: 3.422 kB / 1.31 GB, free: 30.54 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/1.155, allocations: 2.625 kB / 1.31 GB, free: 30.54 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.251e-05/1.155, allocations: 56.45 kB / 1.31 GB, free: 30.52 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005861/1.156, allocations: 0.4899 MB / 1.31 GB, free: 30.16 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002229/1.156, allocations: 61.84 kB / 1.31 GB, free: 30.12 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.747e-05/1.156, allocations: 24.11 kB / 1.31 GB, free: 30.11 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.623e-05/1.156, allocations: 6.281 kB / 1.31 GB, free: 30.11 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002358/1.156, allocations: 119.9 kB / 1.31 GB, free: 30.03 MB / 1.061 GB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/1.156, allocations: 2.938 kB / 1.31 GB, free: 30.03 MB / 1.061 GB Notification: Performance of matching and sorting (n=14): time 0.000348/1.157, allocations: 168.1 kB / 1.311 GB, free: 29.96 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.943e-05/1.157, allocations: 53.53 kB / 1.311 GB, free: 29.89 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/1.157, allocations: 162.8 kB / 1.311 GB, free: 29.77 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.912e-05/1.157, allocations: 35.55 kB / 1.311 GB, free: 29.73 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.806e-05/1.157, allocations: 123.7 kB / 1.311 GB, free: 29.62 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.369e-05/1.157, allocations: 29.66 kB / 1.311 GB, free: 29.6 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/1.157, allocations: 72.02 kB / 1.311 GB, free: 29.57 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.166e-05/1.157, allocations: 328.1 kB / 1.311 GB, free: 29.25 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001716/1.157, allocations: 96.38 kB / 1.311 GB, free: 29.22 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/1.157, allocations: 141.5 kB / 1.312 GB, free: 29.13 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002393/1.158, allocations: 257.3 kB / 1.312 GB, free: 28.92 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/1.158, allocations: 0 / 1.312 GB, free: 28.92 MB / 1.061 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005488/1.158, allocations: 415.9 kB / 1.312 GB, free: 28.69 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.789e-05/1.158, allocations: 105.1 kB / 1.312 GB, free: 28.59 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/1.158, allocations: 2.781 kB / 1.312 GB, free: 28.59 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.851e-05/1.158, allocations: 2.969 kB / 1.312 GB, free: 28.59 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.441e-05/1.158, allocations: 8.781 kB / 1.312 GB, free: 28.59 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/1.158, allocations: 6.312 kB / 1.312 GB, free: 28.59 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005659/1.159, allocations: 82.14 kB / 1.312 GB, free: 28.57 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.465e-05/1.159, allocations: 17.38 kB / 1.312 GB, free: 28.57 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.0001018/1.159, allocations: 136.2 kB / 1.313 GB, free: 28.45 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.249e-05/1.159, allocations: 21 kB / 1.313 GB, free: 28.43 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.531e-05/1.159, allocations: 11.81 kB / 1.313 GB, free: 28.42 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/1.159, allocations: 7.031 kB / 1.313 GB, free: 28.42 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/1.159, allocations: 4 kB / 1.313 GB, free: 28.41 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/1.159, allocations: 3.938 kB / 1.313 GB, free: 28.41 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001718/1.159, allocations: 219.8 kB / 1.313 GB, free: 28.2 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/1.159, allocations: 0 / 1.313 GB, free: 28.2 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.367e-05/1.159, allocations: 16.25 kB / 1.313 GB, free: 28.19 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/1.159, allocations: 3.938 kB / 1.313 GB, free: 28.18 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/1.159, allocations: 2.75 kB / 1.313 GB, free: 28.18 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/1.159, allocations: 3.328 kB / 1.313 GB, free: 28.18 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/1.159, allocations: 0 / 1.313 GB, free: 28.18 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001998/1.16, allocations: 166.1 kB / 1.313 GB, free: 28.08 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.606e-05/1.16, allocations: 95.88 kB / 1.313 GB, free: 27.97 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.315e-05/1.16, allocations: 7.656 kB / 1.313 GB, free: 27.96 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.957e-05/1.16, allocations: 2.875 kB / 1.313 GB, free: 27.96 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.407e-05/1.16, allocations: 10.28 kB / 1.313 GB, free: 27.96 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.388e-06/1.16, allocations: 5.688 kB / 1.313 GB, free: 27.96 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.858e-05/1.16, allocations: 119 kB / 1.313 GB, free: 27.87 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/1.16, allocations: 0 / 1.313 GB, free: 27.87 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002515/1.16, allocations: 60.34 kB / 1.313 GB, free: 27.86 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.0001556/1.16, allocations: 102.5 kB / 1.313 GB, free: 27.77 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004101/1.161, allocations: 344.9 kB / 1.314 GB, free: 27.52 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/1.161, allocations: 0 / 1.314 GB, free: 27.52 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 7.787e-05/1.161, allocations: 45.7 kB / 1.314 GB, free: 27.51 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/1.161, allocations: 35.25 kB / 1.314 GB, free: 27.5 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004456/1.161, allocations: 256.1 kB / 1.314 GB, free: 27.31 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001685/1.162, allocations: 0.7052 MB / 1.315 GB, free: 26.62 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.475e-05/1.162, allocations: 16.38 kB / 1.315 GB, free: 26.61 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.069e-05/1.162, allocations: 15.78 kB / 1.315 GB, free: 26.61 MB / 1.061 GB Notification: Performance of SimCode: time 5.71e-07/1.162, allocations: 0 / 1.315 GB, free: 26.61 MB / 1.061 GB Notification: Performance of Templates: time 0.005853/1.168, allocations: 2.822 MB / 1.318 GB, free: 26.36 MB / 1.061 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=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 400] 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: 9.762778027914464]