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.001087/0.001087, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002013/0.0031, allocations: 440 kB / 10.41 MB, free: 284 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.001067/0.001067, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001646/0.002713, allocations: 475.6 kB / 11.8 MB, free: 2.375 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.9867/0.9867, allocations: 177.2 MB / 189.7 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1055/1.092, allocations: 53.68 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.45/2.45, allocations: 447.1 MB / 0.675 GB, free: 5.902 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2701/2.72, allocations: 146 MB / 0.8176 GB, free: 3.816 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-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: Performance of FrontEnd - loaded program: time 2.234e-06/2.234e-06, allocations: 0 / 0.8189 GB, free: 2.473 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.902e-05/2.125e-05, allocations: 4.422 kB / 0.8189 GB, free: 2.469 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001452/0.001473, allocations: 0.8716 MB / 0.8198 GB, free: 1.59 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001193/0.002667, allocations: 1.349 MB / 0.8211 GB, free: 232 kB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.984e-05/0.002716, allocations: 0 / 0.8211 GB, free: 232 kB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 2.947e-05/0.002746, allocations: 7.875 kB / 0.8211 GB, free: 224 kB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 5.394e-05/0.0028, allocations: 31.72 kB / 0.8211 GB, free: 192 kB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004986/0.003298, allocations: 307.3 kB / 0.8214 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0002643/0.003563, allocations: 279.5 kB / 0.8217 GB, free: 15.61 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 9.15e-05/0.003654, allocations: 34.25 kB / 0.8217 GB, free: 15.58 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001582/0.003812, allocations: 175.7 kB / 0.8219 GB, free: 15.41 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001272/0.00394, allocations: 91.78 kB / 0.822 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 3.67e-05/0.003976, allocations: 24 kB / 0.822 GB, free: 15.29 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 8.592e-05/0.004062, allocations: 43.98 kB / 0.8221 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 2.663e-05/0.004089, allocations: 15.94 kB / 0.8221 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 6.528e-05/0.004154, allocations: 59.92 kB / 0.8221 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002302/0.004384, allocations: 175.5 kB / 0.8223 GB, free: 15 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.408e-05/0.004398, allocations: 0 / 0.8223 GB, free: 15 MB / 0.8073 GB Notification: Performance of FrontEnd: time 7.21e-07/0.004399, allocations: 0 / 0.8223 GB, free: 15 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.524e-05/0.004414, allocations: 0 / 0.8223 GB, free: 15 MB / 0.8073 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.0005685/0.004983, allocations: 469 kB / 0.8227 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.005017, allocations: 12.03 kB / 0.8228 GB, free: 14.49 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.856e-05/0.005076, allocations: 28.91 kB / 0.8228 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001951/0.005271, allocations: 148.5 kB / 0.8229 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.97e-05/0.005301, allocations: 12.38 kB / 0.8229 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.005335, allocations: 20.38 kB / 0.823 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001093/0.005445, allocations: 93.31 kB / 0.823 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.005453, allocations: 0 / 0.823 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.796e-06/0.005462, allocations: 3.984 kB / 0.8231 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.036e-06/0.00547, allocations: 4 kB / 0.8231 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.522e-05/0.005505, allocations: 16 kB / 0.8231 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003322/0.005837, allocations: 263.9 kB / 0.8233 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001408/0.005978, allocations: 42.56 kB / 0.8234 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.359e-05/0.006001, allocations: 20.84 kB / 0.8234 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 7.544e-06/0.006009, allocations: 0 / 0.8234 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001251/0.006134, allocations: 103.2 kB / 0.8235 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=14): time 1.103e-06/0.006135, allocations: 0 / 0.8235 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14): time 0.0001715/0.006307, allocations: 102.9 kB / 0.8236 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.158e-05/0.006338, allocations: 55.41 kB / 0.8236 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.006e-05/0.006418, allocations: 165.2 kB / 0.8238 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.8e-05/0.006446, allocations: 45.58 kB / 0.8238 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.017e-05/0.006497, allocations: 112.4 kB / 0.8239 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.095e-05/0.006517, allocations: 31.78 kB / 0.824 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.478e-05/0.006592, allocations: 69.64 kB / 0.824 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.141e-05/0.006674, allocations: 326.8 kB / 0.8243 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.006786, allocations: 149.1 kB / 0.8245 GB, free: 12.58 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001265/0.006913, allocations: 204.5 kB / 0.8247 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001447/0.007057, allocations: 225.3 kB / 0.8249 GB, free: 12.08 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.00706, allocations: 0 / 0.8249 GB, free: 12.08 MB / 0.8073 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002838/0.007343, allocations: 387.6 kB / 0.8253 GB, free: 11.66 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 6.089e-05/0.007404, allocations: 101.1 kB / 0.8254 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.00741, allocations: 4 kB / 0.8254 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.007427, allocations: 7.938 kB / 0.8254 GB, free: 11.53 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.622e-05/0.007473, allocations: 11.94 kB / 0.8254 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.007479, allocations: 8.125 kB / 0.8254 GB, free: 11.51 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/0.007658, allocations: 79.81 kB / 0.8255 GB, free: 11.43 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.08e-05/0.007679, allocations: 11.98 kB / 0.8255 GB, free: 11.42 MB / 0.8073 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 7.981e-05/0.007758, allocations: 126.6 kB / 0.8256 GB, free: 11.29 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.259e-05/0.007771, allocations: 11.98 kB / 0.8256 GB, free: 11.28 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.363e-05/0.007795, allocations: 16.72 kB / 0.8256 GB, free: 11.26 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.0078, allocations: 11.92 kB / 0.8256 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.873e-06/0.007802, allocations: 0 / 0.8256 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.007805, allocations: 0 / 0.8256 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.687e-05/0.007892, allocations: 93.86 kB / 0.8257 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.007895, allocations: 4 kB / 0.8257 GB, free: 11.13 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.686e-05/0.007922, allocations: 11.98 kB / 0.8257 GB, free: 11.12 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.094e-05/0.007933, allocations: 15.84 kB / 0.8258 GB, free: 11.11 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.007934, allocations: 0 / 0.8258 GB, free: 11.11 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-06/0.00794, allocations: 4 kB / 0.8258 GB, free: 11.1 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.007943, allocations: 7.984 kB / 0.8258 GB, free: 11.09 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.007946, allocations: 3.938 kB / 0.8258 GB, free: 11.09 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001014/0.008047, allocations: 116.5 kB / 0.8259 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.008059, allocations: 4 kB / 0.8259 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.715e-05/0.008076, allocations: 4 kB / 0.8259 GB, free: 10.95 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.655e-05/0.008103, allocations: 15.97 kB / 0.8259 GB, free: 10.94 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.05e-06/0.008108, allocations: 3.938 kB / 0.8259 GB, free: 10.93 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 3.31e-05/0.008141, allocations: 28.83 kB / 0.8259 GB, free: 10.9 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.008141, allocations: 0 / 0.8259 GB, free: 10.9 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001479/0.008289, allocations: 48 kB / 0.826 GB, free: 10.86 MB / 0.8073 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.0001402/0.008429, allocations: 92.34 kB / 0.8261 GB, free: 10.76 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.000283/0.008712, allocations: 404 kB / 0.8265 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.008718, allocations: 3.984 kB / 0.8265 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.926e-05/0.008757, allocations: 40.78 kB / 0.8265 GB, free: 10.26 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001927/0.00895, allocations: 190.2 kB / 0.8267 GB, free: 10.04 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005068/0.009456, allocations: 237.8 kB / 0.8269 GB, free: 9.777 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.852e-05/0.009495, allocations: 75.2 kB / 0.827 GB, free: 9.684 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.781e-05/0.009523, allocations: 8.969 kB / 0.827 GB, free: 9.676 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.00965, allocations: 99.27 kB / 0.8271 GB, free: 9.578 MB / 0.8073 GB Notification: Performance of SimCode: time 7.82e-07/0.009651, allocations: 0 / 0.8271 GB, free: 9.578 MB / 0.8073 GB Notification: Performance of Templates: time 0.004521/0.01417, allocations: 3.328 MB / 0.8303 GB, free: 6.32 MB / 0.8073 GB " [Timeout remaining time 300] 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch/Buildings_latest_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.449389100074768]