Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.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.001083/0.001083, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001734/0.002818, 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.001124/0.001124, allocations: 165.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001443/0.002567, 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 1.015/1.015, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1017/1.117, allocations: 53.65 MB / 243.3 MB, free: 15.58 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.817/1.817, allocations: 378.2 MB / 0.6076 GB, free: 7.855 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.5089/2.326, allocations: 123.3 MB / 0.728 GB, free: 5.836 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.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sta.y1|sta.y1_actual",fileNamePrefix="Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator") translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sta.y1|sta.y1_actual",fileNamePrefix="Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.913e-06/1.913e-06, allocations: 0.6562 kB / 0.7293 GB, free: 4.574 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.154e-05/3.345e-05, allocations: 4.984 kB / 0.7293 GB, free: 4.57 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.004307/0.00434, allocations: 1.853 MB / 0.7311 GB, free: 2.73 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001683/0.006023, allocations: 0.7156 MB / 0.7318 GB, free: 2.016 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001852/0.006208, allocations: 9.344 kB / 0.7318 GB, free: 2.008 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.000141/0.006349, allocations: 28.97 kB / 0.7319 GB, free: 1.98 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.0001118/0.006461, allocations: 34.31 kB / 0.7319 GB, free: 1.953 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.001015/0.007475, allocations: 256.6 kB / 0.7321 GB, free: 1.703 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0007305/0.008206, allocations: 403.6 kB / 0.7325 GB, free: 1.32 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004356/0.008641, allocations: 210.8 kB / 0.7327 GB, free: 1.113 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003113/0.008953, allocations: 217.1 kB / 0.7329 GB, free: 0.9023 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002495/0.009202, allocations: 99.72 kB / 0.733 GB, free: 0.8047 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 6.728e-05/0.009269, allocations: 40 kB / 0.7331 GB, free: 0.7656 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000166/0.009435, allocations: 56.64 kB / 0.7331 GB, free: 0.7109 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 8.567e-05/0.009521, allocations: 51.88 kB / 0.7332 GB, free: 0.6602 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.009634, allocations: 80.55 kB / 0.7332 GB, free: 0.582 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0004195/0.01005, allocations: 247.2 kB / 0.7335 GB, free: 348 kB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 2.172e-05/0.01007, allocations: 5.719 kB / 0.7335 GB, free: 344 kB / 0.698 GB Notification: Performance of FrontEnd: time 1.883e-06/0.01008, allocations: 0 / 0.7335 GB, free: 344 kB / 0.698 GB Notification: Performance of Transformations before backend: time 2.401e-05/0.0101, allocations: 0 / 0.7335 GB, free: 344 kB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.000918/0.01102, allocations: 0.497 MB / 0.734 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.01106, allocations: 9.062 kB / 0.734 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003523/0.01141, allocations: 137.9 kB / 0.7341 GB, free: 15.64 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003118/0.01172, allocations: 166 kB / 0.7343 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.476e-05/0.01177, allocations: 25.75 kB / 0.7343 GB, free: 15.43 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.59e-05/0.01182, allocations: 32.38 kB / 0.7343 GB, free: 15.4 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003155/0.01213, allocations: 204.8 kB / 0.7345 GB, free: 15.19 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.01214, allocations: 192 / 0.7345 GB, free: 15.19 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.301e-05/0.01216, allocations: 12.38 kB / 0.7345 GB, free: 15.18 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.01218, allocations: 5.25 kB / 0.7345 GB, free: 15.17 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001399/0.01231, allocations: 71.39 kB / 0.7346 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008966/0.01321, allocations: 0.5396 MB / 0.7351 GB, free: 14.55 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002005/0.01341, allocations: 106.6 kB / 0.7352 GB, free: 14.44 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.286e-05/0.01347, allocations: 46.7 kB / 0.7353 GB, free: 14.39 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.0135, allocations: 7.984 kB / 0.7353 GB, free: 14.38 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001831/0.01368, allocations: 110.3 kB / 0.7354 GB, free: 14.26 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=27): time 2.394e-06/0.01368, allocations: 0 / 0.7354 GB, free: 14.26 MB / 0.7136 GB Notification: Performance of matching and sorting (n=27): time 0.0003014/0.01398, allocations: 155 kB / 0.7355 GB, free: 14.11 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.495e-05/0.01404, allocations: 59.41 kB / 0.7356 GB, free: 14.04 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001452/0.01418, allocations: 159.2 kB / 0.7357 GB, free: 13.87 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.89e-05/0.01423, allocations: 41.7 kB / 0.7358 GB, free: 13.82 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 9.748e-05/0.01433, allocations: 141.9 kB / 0.7359 GB, free: 13.68 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 6.886e-05/0.0144, allocations: 71.41 kB / 0.736 GB, free: 13.61 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.01453, allocations: 89.61 kB / 0.7361 GB, free: 13.52 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.01466, allocations: 335.4 kB / 0.7364 GB, free: 13.18 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001367/0.0148, allocations: 81.61 kB / 0.7365 GB, free: 13.1 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.01497, allocations: 142.5 kB / 0.7366 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002701/0.01524, allocations: 190.4 kB / 0.7368 GB, free: 12.71 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.01525, allocations: 0 / 0.7368 GB, free: 12.71 MB / 0.7136 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004054/0.01565, allocations: 263.3 kB / 0.737 GB, free: 12.44 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 7.189e-05/0.01572, allocations: 44.59 kB / 0.7371 GB, free: 12.39 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.01574, allocations: 3.938 kB / 0.7371 GB, free: 12.39 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.548e-05/0.01576, allocations: 4.75 kB / 0.7371 GB, free: 12.39 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002172/0.01598, allocations: 39.92 kB / 0.7371 GB, free: 12.35 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.01599, allocations: 8.578 kB / 0.7371 GB, free: 12.34 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001999/0.01619, allocations: 44.52 kB / 0.7372 GB, free: 12.3 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.382e-05/0.01622, allocations: 25.33 kB / 0.7372 GB, free: 12.27 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.sta.offToOn.enableFire,$PRE.sta.onToOff.enableFire,$whenCondition1,$whenCondition2,sta.onToOff.t_start,$PRE.sta.onToOff.t_start,sta.onToOff.fire,sta.onToOff.enableFire,sta.on.active,sta.on.oldActive,$PRE.sta.on.oldActive,sta.on.newActive,$PRE.sta.on.newActive,sta.on.localActive,$PRE.sta.on.localActive,sta.offToOn.t_start,$PRE.sta.offToOn.t_start,sta.offToOn.fire,sta.offToOn.enableFire,sta.off.active,sta.off.oldActive,$PRE.sta.off.oldActive,sta.off.newActive,$PRE.sta.off.newActive,sta.off.localActive,$PRE.sta.off.localActive,sta.stateGraphRoot.activeSteps,y1.y,$PRE.y1.y,$whenCondition3,$whenCondition4,sta.stateGraphRoot.suspend,sta.stateGraphRoot.resume) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 1 * 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.0001341/0.01636, allocations: 138.6 kB / 0.7373 GB, free: 12.13 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.082e-05/0.01639, allocations: 19.98 kB / 0.7373 GB, free: 12.11 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.904e-05/0.01644, allocations: 26.89 kB / 0.7374 GB, free: 12.09 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.01644, allocations: 4 kB / 0.7374 GB, free: 12.08 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.01645, allocations: 0.7812 kB / 0.7374 GB, free: 12.08 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.01645, allocations: 0 / 0.7374 GB, free: 12.08 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005763/0.01703, allocations: 368.3 kB / 0.7377 GB, free: 11.7 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.01703, allocations: 0 / 0.7377 GB, free: 11.7 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.515e-05/0.01712, allocations: 28.52 kB / 0.7378 GB, free: 11.67 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 2.439e-05/0.01715, allocations: 17 kB / 0.7378 GB, free: 11.66 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.01716, allocations: 4 kB / 0.7378 GB, free: 11.65 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.01717, allocations: 7.938 kB / 0.7378 GB, free: 11.64 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.01717, allocations: 1.469 kB / 0.7378 GB, free: 11.64 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.01717, allocations: 0 / 0.7378 GB, free: 11.64 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000227/0.0174, allocations: 224.4 kB / 0.738 GB, free: 11.41 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.469e-05/0.01743, allocations: 3.984 kB / 0.738 GB, free: 11.41 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.196e-05/0.01751, allocations: 10.75 kB / 0.738 GB, free: 11.4 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.185e-05/0.01758, allocations: 31.88 kB / 0.738 GB, free: 11.37 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.01759, allocations: 4 kB / 0.738 GB, free: 11.36 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 3.481e-05/0.01762, allocations: 28.83 kB / 0.7381 GB, free: 11.33 MB / 0.7136 GB Notification: Performance of sort global known variables: time 8e-08/0.01762, allocations: 0 / 0.7381 GB, free: 11.33 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002875/0.01791, allocations: 59.89 kB / 0.7381 GB, free: 11.27 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: 20 (sta.offToOn.enableFire,sta.onToOff.enableFire,sta.on.active,sta.off.active,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,y1.y,sta.stateGraphRoot.activeSteps,sta.off.localActive,sta.off.newActive,sta.off.oldActive,sta.offToOn.fire,sta.offToOn.t_start,sta.on.localActive,sta.on.newActive,sta.on.oldActive,sta.onToOff.fire,sta.onToOff.t_start) * Number of discrete states: 2 (sta.off.newActive,sta.on.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001708/0.01808, allocations: 94.59 kB / 0.7382 GB, free: 11.18 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003114/0.01839, allocations: 242.2 kB / 0.7385 GB, free: 10.92 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.398e-05/0.01841, allocations: 4.5 kB / 0.7385 GB, free: 10.91 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 8.927e-05/0.0185, allocations: 67.45 kB / 0.7385 GB, free: 10.85 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.01876, allocations: 39.92 kB / 0.7386 GB, free: 10.81 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008896/0.01965, allocations: 364.3 kB / 0.7389 GB, free: 10.42 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.648e-05/0.01971, allocations: 84.31 kB / 0.739 GB, free: 10.32 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 9.091e-05/0.0198, allocations: 20.39 kB / 0.739 GB, free: 10.3 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001552/0.01996, allocations: 100.9 kB / 0.7391 GB, free: 10.21 MB / 0.7136 GB Notification: Performance of SimCode: time 1.012e-06/0.01996, allocations: 0 / 0.7391 GB, free: 10.21 MB / 0.7136 GB Notification: Performance of Templates: time 0.007556/0.02752, allocations: 3.089 MB / 0.7421 GB, free: 7.273 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & ./Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator/Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.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: 5.140436465851963]