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.001184/0.001184, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001696/0.00288, allocations: 449.8 kB / 10.44 MB, free: 252 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.001115/0.001115, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001468/0.002583, allocations: 479.5 kB / 11.82 MB, free: 2.344 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.9315/0.9315, allocations: 177.2 MB / 189.8 MB, free: 5.262 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09349/1.025, allocations: 53.67 MB / 243.4 MB, free: 15.51 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.804/1.804, allocations: 378.4 MB / 0.6079 GB, free: 7.695 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.457/2.261, allocations: 123.3 MB / 0.7283 GB, free: 5.711 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.132e-06/1.132e-06, allocations: 0.5469 kB / 0.7296 GB, free: 4.422 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.289e-05/1.403e-05, allocations: 3.094 kB / 0.7296 GB, free: 4.418 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002095/0.002109, allocations: 1.857 MB / 0.7314 GB, free: 2.586 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0008368/0.002946, allocations: 0.7124 MB / 0.7321 GB, free: 1.875 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.972e-05/0.003025, allocations: 5.875 kB / 0.7321 GB, free: 1.871 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 7.924e-05/0.003105, allocations: 28.66 kB / 0.7322 GB, free: 1.844 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 5.216e-05/0.003157, allocations: 32.84 kB / 0.7322 GB, free: 1.82 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004313/0.003588, allocations: 255.4 kB / 0.7324 GB, free: 1.57 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0003813/0.003969, allocations: 408.4 kB / 0.7328 GB, free: 1.184 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002482/0.004218, allocations: 215.9 kB / 0.733 GB, free: 0.9727 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001615/0.004379, allocations: 207.6 kB / 0.7332 GB, free: 0.7695 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001379/0.004517, allocations: 107.6 kB / 0.7333 GB, free: 0.6641 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 3.868e-05/0.004556, allocations: 41.72 kB / 0.7334 GB, free: 0.625 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 9.58e-05/0.004652, allocations: 59.92 kB / 0.7334 GB, free: 0.5664 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 5.944e-05/0.004711, allocations: 55.86 kB / 0.7335 GB, free: 0.5117 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 8.294e-05/0.004794, allocations: 75.88 kB / 0.7336 GB, free: 448 kB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0002762/0.00507, allocations: 243.2 kB / 0.7338 GB, free: 204 kB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.126e-05/0.005081, allocations: 0.8125 kB / 0.7338 GB, free: 204 kB / 0.698 GB Notification: Performance of FrontEnd: time 4.31e-07/0.005082, allocations: 0 / 0.7338 GB, free: 204 kB / 0.698 GB Notification: Performance of Transformations before backend: time 1.443e-05/0.005096, allocations: 1.125 kB / 0.7338 GB, free: 204 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.0005893/0.005686, allocations: 0.5009 MB / 0.7343 GB, free: 15.66 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 2.987e-05/0.005715, allocations: 8.75 kB / 0.7343 GB, free: 15.65 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002258/0.005941, allocations: 138 kB / 0.7344 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001938/0.006135, allocations: 166.9 kB / 0.7346 GB, free: 15.31 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.532e-05/0.00616, allocations: 24.88 kB / 0.7346 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.272e-05/0.006193, allocations: 32.36 kB / 0.7346 GB, free: 15.26 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001953/0.006388, allocations: 208.6 kB / 0.7348 GB, free: 15.04 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.886e-06/0.006397, allocations: 1.031 kB / 0.7348 GB, free: 15.04 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.006412, allocations: 8.375 kB / 0.7349 GB, free: 15.04 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.00642, allocations: 9.625 kB / 0.7349 GB, free: 15.03 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.724e-05/0.006507, allocations: 75.34 kB / 0.7349 GB, free: 14.96 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000545/0.007052, allocations: 0.5319 MB / 0.7355 GB, free: 14.41 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001302/0.007182, allocations: 106.8 kB / 0.7356 GB, free: 14.3 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.994e-05/0.007222, allocations: 49.33 kB / 0.7356 GB, free: 14.25 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.298e-05/0.007235, allocations: 5.312 kB / 0.7356 GB, free: 14.24 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001179/0.007353, allocations: 112 kB / 0.7357 GB, free: 14.12 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=27): time 1.272e-06/0.007354, allocations: 0 / 0.7357 GB, free: 14.12 MB / 0.7136 GB Notification: Performance of matching and sorting (n=27): time 0.0001867/0.007541, allocations: 153.3 kB / 0.7359 GB, free: 13.97 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.869e-05/0.00757, allocations: 55.41 kB / 0.7359 GB, free: 13.9 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.994e-05/0.00765, allocations: 172.9 kB / 0.7361 GB, free: 13.72 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.007674, allocations: 37.7 kB / 0.7361 GB, free: 13.68 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.276e-05/0.007737, allocations: 132.9 kB / 0.7362 GB, free: 13.55 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.7e-05/0.007774, allocations: 79.39 kB / 0.7363 GB, free: 13.47 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.637e-05/0.007851, allocations: 90.48 kB / 0.7364 GB, free: 13.38 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.201e-05/0.007923, allocations: 330.7 kB / 0.7367 GB, free: 13.04 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.64e-05/0.007989, allocations: 77.67 kB / 0.7368 GB, free: 12.96 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.598e-05/0.008085, allocations: 146.3 kB / 0.7369 GB, free: 12.79 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001357/0.008221, allocations: 189.8 kB / 0.7371 GB, free: 12.57 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.008223, allocations: 1.094 kB / 0.7371 GB, free: 12.57 MB / 0.7136 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0002111/0.008434, allocations: 271.2 kB / 0.7374 GB, free: 12.29 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.839e-05/0.008462, allocations: 33.7 kB / 0.7374 GB, free: 12.25 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.008467, allocations: 4 kB / 0.7374 GB, free: 12.25 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.008479, allocations: 5.156 kB / 0.7374 GB, free: 12.25 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.008582, allocations: 39.92 kB / 0.7374 GB, free: 12.21 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.008588, allocations: 7.969 kB / 0.7375 GB, free: 12.2 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.008696, allocations: 49 kB / 0.7375 GB, free: 12.15 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/0.008715, allocations: 19.92 kB / 0.7375 GB, free: 12.13 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 8.511e-05/0.0088, allocations: 143.3 kB / 0.7377 GB, free: 11.98 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.767e-05/0.008817, allocations: 19.98 kB / 0.7377 GB, free: 11.96 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.124e-05/0.008849, allocations: 23.59 kB / 0.7377 GB, free: 11.95 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.00885, allocations: 0 / 0.7377 GB, free: 11.95 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.008852, allocations: 0 / 0.7377 GB, free: 11.95 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.008857, allocations: 7.984 kB / 0.7377 GB, free: 11.94 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003058/0.009163, allocations: 369.6 kB / 0.7381 GB, free: 11.55 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.009165, allocations: 0 / 0.7381 GB, free: 11.55 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.48e-05/0.009209, allocations: 16 kB / 0.7381 GB, free: 11.54 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.224e-05/0.009222, allocations: 16.47 kB / 0.7381 GB, free: 11.52 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.009225, allocations: 4.703 kB / 0.7381 GB, free: 11.52 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.009235, allocations: 15.88 kB / 0.7381 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.009236, allocations: 4.688 kB / 0.7381 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.009237, allocations: 0 / 0.7381 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001192/0.009356, allocations: 217.2 kB / 0.7383 GB, free: 11.27 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.648e-05/0.009373, allocations: 8 kB / 0.7383 GB, free: 11.26 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.362e-05/0.009416, allocations: 13.36 kB / 0.7383 GB, free: 11.25 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.538e-05/0.009462, allocations: 27.89 kB / 0.7384 GB, free: 11.22 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.694e-06/0.009469, allocations: 7.984 kB / 0.7384 GB, free: 11.21 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.922e-05/0.009489, allocations: 24.11 kB / 0.7384 GB, free: 11.19 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.009489, allocations: 1.031 kB / 0.7384 GB, free: 11.19 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001753/0.009664, allocations: 63.89 kB / 0.7385 GB, free: 11.13 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.0001037/0.009768, allocations: 106.1 kB / 0.7386 GB, free: 11.02 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002059/0.009974, allocations: 245.1 kB / 0.7388 GB, free: 10.76 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.00998, allocations: 3.938 kB / 0.7388 GB, free: 10.76 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 6.679e-05/0.01005, allocations: 64.83 kB / 0.7389 GB, free: 10.69 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002203/0.01027, allocations: 268.4 kB / 0.7391 GB, free: 10.38 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000549/0.01082, allocations: 359.6 kB / 0.7395 GB, free: 10 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.341e-05/0.01086, allocations: 84.27 kB / 0.7395 GB, free: 9.898 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.293e-05/0.01091, allocations: 23.81 kB / 0.7396 GB, free: 9.875 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.01102, allocations: 95.36 kB / 0.7397 GB, free: 9.781 MB / 0.7136 GB Notification: Performance of SimCode: time 6.01e-07/0.01102, allocations: 0 / 0.7397 GB, free: 9.781 MB / 0.7136 GB Notification: Performance of Templates: time 0.00428/0.0153, allocations: 3.039 MB / 0.7426 GB, free: 6.906 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.71558721549809]