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.0007746/0.0007746, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00105/0.001825, allocations: 449.7 kB / 10.37 MB, free: 328 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.0006978/0.0006978, allocations: 165.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000929/0.001627, allocations: 459.6 kB / 11.71 MB, free: 2.457 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.9461/0.9461, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1018/1.048, allocations: 53.66 MB / 243.3 MB, free: 15.59 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.89/1.89, allocations: 378.2 MB / 0.6076 GB, free: 7.82 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.5729/2.463, allocations: 123.3 MB / 0.728 GB, free: 5.809 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 1.993e-06/1.993e-06, allocations: 0 / 0.7293 GB, free: 4.508 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.271e-05/2.471e-05, allocations: 3.344 kB / 0.7293 GB, free: 4.504 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002134/0.002159, allocations: 0.8619 MB / 0.7302 GB, free: 3.668 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001813/0.003972, allocations: 1.349 MB / 0.7315 GB, free: 2.309 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.714e-05/0.004039, allocations: 4.656 kB / 0.7315 GB, free: 2.305 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 3.711e-05/0.004076, allocations: 7.875 kB / 0.7315 GB, free: 2.297 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 8.121e-05/0.004157, allocations: 26.62 kB / 0.7315 GB, free: 2.277 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.000704/0.004861, allocations: 310.6 kB / 0.7318 GB, free: 1.977 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0004087/0.00527, allocations: 299.3 kB / 0.7321 GB, free: 1.699 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.005388, allocations: 26.27 kB / 0.7321 GB, free: 1.668 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001927/0.005581, allocations: 176.6 kB / 0.7323 GB, free: 1.496 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001632/0.005744, allocations: 95.67 kB / 0.7324 GB, free: 1.402 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 5.263e-05/0.005796, allocations: 25.44 kB / 0.7324 GB, free: 1.379 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 9.717e-05/0.005894, allocations: 39.92 kB / 0.7325 GB, free: 1.34 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.478e-05/0.005918, allocations: 15.94 kB / 0.7325 GB, free: 1.324 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 6.508e-05/0.005984, allocations: 59.94 kB / 0.7325 GB, free: 1.266 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0002336/0.006217, allocations: 180.1 kB / 0.7327 GB, free: 1.09 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.762e-05/0.006235, allocations: 0 / 0.7327 GB, free: 1.09 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.202e-06/0.006236, allocations: 0.6875 kB / 0.7327 GB, free: 1.09 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.813e-05/0.006254, allocations: 0 / 0.7327 GB, free: 1.09 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.0005666/0.006821, allocations: 462.8 kB / 0.7332 GB, free: 0.5977 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.006856, allocations: 15.97 kB / 0.7332 GB, free: 0.582 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.06e-05/0.006907, allocations: 24.91 kB / 0.7332 GB, free: 0.5586 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000186/0.007093, allocations: 146.2 kB / 0.7333 GB, free: 400 kB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.378e-05/0.007116, allocations: 17.27 kB / 0.7333 GB, free: 384 kB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.646e-05/0.007143, allocations: 16.38 kB / 0.7334 GB, free: 368 kB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001052/0.007248, allocations: 88.52 kB / 0.7334 GB, free: 272 kB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.007254, allocations: 1.781 kB / 0.7334 GB, free: 272 kB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.278e-06/0.007264, allocations: 8 kB / 0.7335 GB, free: 264 kB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.007268, allocations: 0 / 0.7335 GB, free: 264 kB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.495e-05/0.007303, allocations: 23.94 kB / 0.7335 GB, free: 240 kB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004035/0.007707, allocations: 252.7 kB / 0.7337 GB, free: 15.97 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001456/0.007852, allocations: 47.52 kB / 0.7338 GB, free: 15.92 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.979e-05/0.007882, allocations: 16.8 kB / 0.7338 GB, free: 15.9 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 7.624e-06/0.00789, allocations: 4 kB / 0.7338 GB, free: 15.89 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001299/0.00802, allocations: 96.19 kB / 0.7339 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=14): time 1.974e-06/0.008022, allocations: 0.6562 kB / 0.7339 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14): time 0.0001748/0.008196, allocations: 113.6 kB / 0.734 GB, free: 15.67 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.229e-05/0.008239, allocations: 56.06 kB / 0.734 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.008343, allocations: 165 kB / 0.7342 GB, free: 15.43 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.008373, allocations: 35.45 kB / 0.7342 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.364e-05/0.008426, allocations: 116.5 kB / 0.7343 GB, free: 15.27 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.008445, allocations: 23.8 kB / 0.7344 GB, free: 15.25 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.858e-05/0.008524, allocations: 69.64 kB / 0.7344 GB, free: 15.18 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.25e-05/0.008617, allocations: 327.5 kB / 0.7347 GB, free: 14.85 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001108/0.008727, allocations: 153 kB / 0.7349 GB, free: 14.68 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001478/0.008875, allocations: 196 kB / 0.7351 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001614/0.009037, allocations: 231.5 kB / 0.7353 GB, free: 14.19 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.00904, allocations: 0.7188 kB / 0.7353 GB, free: 14.19 MB / 0.7136 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004182/0.009458, allocations: 388.9 kB / 0.7357 GB, free: 13.77 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 7.894e-05/0.009537, allocations: 98.25 kB / 0.7358 GB, free: 13.65 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.009543, allocations: 0 / 0.7358 GB, free: 13.65 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.009555, allocations: 7.938 kB / 0.7358 GB, free: 13.64 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.746e-05/0.009623, allocations: 20.95 kB / 0.7358 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.958e-06/0.009627, allocations: 0 / 0.7358 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001807/0.009808, allocations: 66.19 kB / 0.7359 GB, free: 13.56 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.111e-05/0.009829, allocations: 15.98 kB / 0.7359 GB, free: 13.55 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 8.492e-05/0.009914, allocations: 132 kB / 0.736 GB, free: 13.41 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.627e-05/0.00993, allocations: 11.98 kB / 0.736 GB, free: 13.4 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.773e-05/0.009958, allocations: 16.78 kB / 0.736 GB, free: 13.38 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.009961, allocations: 3.938 kB / 0.736 GB, free: 13.38 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.009964, allocations: 4.75 kB / 0.736 GB, free: 13.38 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.009969, allocations: 7.984 kB / 0.736 GB, free: 13.37 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.758e-05/0.01006, allocations: 98.33 kB / 0.7361 GB, free: 13.25 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.01006, allocations: 0.75 kB / 0.7361 GB, free: 13.25 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.286e-05/0.0101, allocations: 15.94 kB / 0.7361 GB, free: 13.24 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.641e-05/0.01012, allocations: 17.12 kB / 0.7362 GB, free: 13.22 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.01012, allocations: 0 / 0.7362 GB, free: 13.22 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.01013, allocations: 7.984 kB / 0.7362 GB, free: 13.21 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.01013, allocations: 0.9062 kB / 0.7362 GB, free: 13.21 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.01013, allocations: 3.938 kB / 0.7362 GB, free: 13.21 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001069/0.01024, allocations: 108.2 kB / 0.7363 GB, free: 13.09 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.01026, allocations: 8.797 kB / 0.7363 GB, free: 13.08 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.932e-05/0.01029, allocations: 0 / 0.7363 GB, free: 13.08 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.262e-05/0.01032, allocations: 12.89 kB / 0.7363 GB, free: 13.07 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.388e-06/0.01033, allocations: 7.938 kB / 0.7363 GB, free: 13.06 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 3.591e-05/0.01037, allocations: 35.53 kB / 0.7363 GB, free: 13.03 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1e-07/0.01037, allocations: 0 / 0.7363 GB, free: 13.03 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001637/0.01053, allocations: 48 kB / 0.7364 GB, free: 12.98 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.000132/0.01066, allocations: 85.3 kB / 0.7365 GB, free: 12.89 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002973/0.01096, allocations: 409.9 kB / 0.7369 GB, free: 12.43 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.01096, allocations: 6.75 kB / 0.7369 GB, free: 12.43 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.616e-05/0.011, allocations: 32.78 kB / 0.7369 GB, free: 12.39 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001748/0.01118, allocations: 35.98 kB / 0.7369 GB, free: 12.36 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006615/0.01184, allocations: 238 kB / 0.7372 GB, free: 12.1 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.915e-05/0.01189, allocations: 63.34 kB / 0.7372 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 4.264e-05/0.01193, allocations: 12.97 kB / 0.7372 GB, free: 12.01 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/0.0121, allocations: 99.33 kB / 0.7373 GB, free: 11.91 MB / 0.7136 GB Notification: Performance of SimCode: time 8.82e-07/0.01211, allocations: 0 / 0.7373 GB, free: 11.91 MB / 0.7136 GB Notification: Performance of Templates: time 0.006988/0.01909, allocations: 3.37 MB / 0.7406 GB, free: 8.73 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,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.986380587331951]