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.001843/0.001843, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002567/0.002567, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.581/1.581, allocations: 230.6 MB / 256 MB, free: 7.789 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.522/3.522, allocations: 0.4892 GB / 0.7943 GB, free: 35.62 MB / 0.6231 GB " [Timeout remaining time 176] 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.00227/0.00227, allocations: 63.72 kB / 1.154 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4213/0.4236, allocations: 176.1 MB / 1.326 GB, free: 1.898 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002782/0.4264, allocations: 0.8084 MB / 1.326 GB, free: 1.094 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002073/0.4285, allocations: 1.303 MB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.472e-05/0.4285, allocations: 0 / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 5.124e-05/0.4286, allocations: 11.86 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001083/0.4287, allocations: 27.75 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009869/0.4297, allocations: 319.1 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004339/0.4301, allocations: 295.5 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001351/0.4303, allocations: 25.62 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001855/0.4304, allocations: 123.8 kB / 1.328 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002028/0.4307, allocations: 95.61 kB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.125e-05/0.4307, allocations: 24 kB / 1.328 GB, free: 14.87 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.4308, allocations: 39.98 kB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.54e-05/0.4309, allocations: 23.92 kB / 1.329 GB, free: 14.81 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001218/0.431, allocations: 95.73 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003518/0.4313, allocations: 266.9 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.4313, allocations: 0 / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.242e-06/0.4313, allocations: 0 / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.204e-05/0.4313, allocations: 0 / 1.329 GB, free: 14.46 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.0007283/0.4321, allocations: 470.8 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.4321, allocations: 12.03 kB / 1.329 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.998e-05/0.4322, allocations: 20.84 kB / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.4323, allocations: 127 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.684e-05/0.4324, allocations: 16.11 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.11e-05/0.4324, allocations: 20 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002011/0.4326, allocations: 94.92 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.4326, allocations: 0 / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.4326, allocations: 4 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.4327, allocations: 0 / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001136/0.4328, allocations: 51.97 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006921/0.4335, allocations: 380.1 kB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002474/0.4337, allocations: 70.55 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.95e-05/0.4338, allocations: 28.91 kB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.481e-05/0.4338, allocations: 3.938 kB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00026/0.434, allocations: 109.9 kB / 1.33 GB, free: 12.95 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 5.41e-06/0.4341, allocations: 3.984 kB / 1.33 GB, free: 12.95 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0003969/0.4344, allocations: 173.5 kB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.742e-05/0.4345, allocations: 63.34 kB / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.4347, allocations: 161.1 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.569e-05/0.4347, allocations: 37.7 kB / 1.331 GB, free: 12.49 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.4348, allocations: 112.5 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.795e-05/0.4349, allocations: 19.86 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001716/0.435, allocations: 81.66 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000161/0.4352, allocations: 322.8 kB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002765/0.4355, allocations: 181 kB / 1.331 GB, free: 11.75 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003041/0.4358, allocations: 239.7 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003421/0.4361, allocations: 260.2 kB / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.4361, allocations: 3.938 kB / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007475/0.4369, allocations: 0.4888 MB / 1.332 GB, free: 10.65 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 7.867e-05/0.4369, allocations: 97.09 kB / 1.332 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.437, allocations: 3.984 kB / 1.332 GB, free: 10.53 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.437, allocations: 4.188 kB / 1.332 GB, free: 10.53 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.689e-05/0.4371, allocations: 19.94 kB / 1.332 GB, free: 10.51 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.4371, allocations: 4 kB / 1.332 GB, free: 10.5 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004553/0.4375, allocations: 79.8 kB / 1.332 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.62e-05/0.4376, allocations: 19.98 kB / 1.333 GB, free: 10.41 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.0001835/0.4377, allocations: 142.3 kB / 1.333 GB, free: 10.26 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.615e-05/0.4378, allocations: 15.84 kB / 1.333 GB, free: 10.24 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.108e-05/0.4378, allocations: 16.78 kB / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.4378, allocations: 0 / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.4378, allocations: 0 / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.4378, allocations: 3.938 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001617/0.438, allocations: 157.2 kB / 1.333 GB, free: 10.03 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.438, allocations: 0 / 1.333 GB, free: 10.03 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.426e-05/0.438, allocations: 8 kB / 1.333 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.033e-06/0.438, allocations: 7.938 kB / 1.333 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.4381, allocations: 3.984 kB / 1.333 GB, free: 10.01 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.4381, allocations: 4 kB / 1.333 GB, free: 10.01 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.4381, allocations: 0 / 1.333 GB, free: 10.01 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002487/0.4383, allocations: 164 kB / 1.333 GB, free: 9.832 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.138e-05/0.4383, allocations: 15.84 kB / 1.333 GB, free: 9.816 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.952e-05/0.4383, allocations: 0 / 1.333 GB, free: 9.816 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.987e-05/0.4384, allocations: 0 / 1.333 GB, free: 9.816 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.457e-05/0.4384, allocations: 19.91 kB / 1.333 GB, free: 9.797 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-06/0.4384, allocations: 8 kB / 1.333 GB, free: 9.789 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.479e-05/0.4385, allocations: 103.3 kB / 1.333 GB, free: 9.688 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4385, allocations: 0 / 1.333 GB, free: 9.688 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000287/0.4388, allocations: 51.98 kB / 1.333 GB, free: 9.637 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.0001804/0.439, allocations: 118 kB / 1.333 GB, free: 9.516 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006533/0.4396, allocations: 435.2 kB / 1.334 GB, free: 9.035 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.4396, allocations: 0 / 1.334 GB, free: 9.035 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.81e-05/0.4397, allocations: 47.91 kB / 1.334 GB, free: 8.988 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003038/0.44, allocations: 34.17 kB / 1.334 GB, free: 8.957 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006199/0.4407, allocations: 247.4 kB / 1.334 GB, free: 8.691 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001582/0.4408, allocations: 94.23 kB / 1.334 GB, free: 8.578 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.102e-05/0.4409, allocations: 12.97 kB / 1.334 GB, free: 8.566 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.825e-05/0.4409, allocations: 15.44 kB / 1.334 GB, free: 8.551 MB / 1.029 GB Notification: Performance of SimCode: time 1.052e-06/0.4409, allocations: 4 kB / 1.334 GB, free: 8.547 MB / 1.029 GB Notification: Performance of Templates: time 0.008209/0.4491, allocations: 3.12 MB / 1.337 GB, free: 5.496 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/jenkins/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: 9.850697295740247]