Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001359/0.001359, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.00157/0.00157, allocations: 213.9 kB / 22.24 MB, free: 4.855 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.56/1.56, allocations: 230.6 MB / 256 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.526/3.526, allocations: 0.5107 GB / 0.8158 GB, free: 17.79 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sta.y1|sta.y1_actual",fileNamePrefix="Buildings_latest_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_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator") [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.003034/0.003034, allocations: 71.97 kB / 1.186 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4219/0.4249, allocations: 181.9 MB / 1.364 GB, free: 13.59 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.00318/0.4281, allocations: 1.759 MB / 1.366 GB, free: 11.81 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001385/0.4295, allocations: 0.6896 MB / 1.366 GB, free: 11.12 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001034/0.4296, allocations: 7.938 kB / 1.366 GB, free: 11.11 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001344/0.4297, allocations: 31.67 kB / 1.366 GB, free: 11.08 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.061e-05/0.4298, allocations: 31.73 kB / 1.366 GB, free: 11.05 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000762/0.4305, allocations: 254 kB / 1.367 GB, free: 10.8 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0005181/0.431, allocations: 407.4 kB / 1.367 GB, free: 10.4 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002843/0.4313, allocations: 175.3 kB / 1.367 GB, free: 10.23 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001635/0.4315, allocations: 147.5 kB / 1.367 GB, free: 10.09 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002129/0.4317, allocations: 119.5 kB / 1.367 GB, free: 9.969 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 6.666e-05/0.4318, allocations: 40 kB / 1.367 GB, free: 9.93 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001178/0.4319, allocations: 52 kB / 1.367 GB, free: 9.879 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 8.247e-05/0.432, allocations: 71.81 kB / 1.367 GB, free: 9.809 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001351/0.4321, allocations: 115.5 kB / 1.368 GB, free: 9.695 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004857/0.4326, allocations: 418.5 kB / 1.368 GB, free: 9.285 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.4326, allocations: 0 / 1.368 GB, free: 9.285 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.313e-06/0.4326, allocations: 0 / 1.368 GB, free: 9.285 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.664e-06/0.4326, allocations: 0 / 1.368 GB, free: 9.285 MB / 1.061 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.000841/0.4334, allocations: 498.6 kB / 1.368 GB, free: 8.754 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.4335, allocations: 12.03 kB / 1.368 GB, free: 8.742 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002754/0.4338, allocations: 40.77 kB / 1.369 GB, free: 8.703 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003732/0.4341, allocations: 194.2 kB / 1.369 GB, free: 8.488 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.663e-05/0.4342, allocations: 24.88 kB / 1.369 GB, free: 8.465 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.294e-05/0.4342, allocations: 28.38 kB / 1.369 GB, free: 8.438 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004845/0.4347, allocations: 275.3 kB / 1.369 GB, free: 8.16 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.4347, allocations: 192 / 1.369 GB, free: 8.16 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.99e-05/0.4348, allocations: 19.86 kB / 1.369 GB, free: 8.141 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.4348, allocations: 4 kB / 1.369 GB, free: 8.137 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003522/0.4351, allocations: 185.9 kB / 1.369 GB, free: 7.949 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.4362, allocations: 0.6987 MB / 1.37 GB, free: 7.219 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003207/0.4365, allocations: 154.8 kB / 1.37 GB, free: 7.059 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001448/0.4367, allocations: 88.69 kB / 1.37 GB, free: 6.969 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.152e-05/0.4367, allocations: 0 / 1.37 GB, free: 6.969 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002535/0.437, allocations: 142.1 kB / 1.37 GB, free: 6.816 MB / 1.061 GB Notification: Performance of pre-optimization done (n=27): time 1.543e-06/0.437, allocations: 0 / 1.37 GB, free: 6.816 MB / 1.061 GB Notification: Performance of matching and sorting (n=27): time 0.0005338/0.4375, allocations: 275.5 kB / 1.371 GB, free: 6.543 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.083e-05/0.4376, allocations: 67.38 kB / 1.371 GB, free: 6.465 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.4377, allocations: 167.3 kB / 1.371 GB, free: 6.293 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.438e-05/0.4378, allocations: 41.7 kB / 1.371 GB, free: 6.246 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.4379, allocations: 136.9 kB / 1.371 GB, free: 6.109 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 6.978e-05/0.438, allocations: 71.42 kB / 1.371 GB, free: 6.039 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001404/0.4381, allocations: 89.67 kB / 1.371 GB, free: 5.945 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001674/0.4383, allocations: 330.8 kB / 1.371 GB, free: 5.613 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002286/0.4385, allocations: 125.7 kB / 1.372 GB, free: 5.484 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002647/0.4388, allocations: 192.6 kB / 1.372 GB, free: 5.262 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003516/0.4391, allocations: 253.2 kB / 1.372 GB, free: 4.984 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4391, allocations: 3.938 kB / 1.372 GB, free: 4.98 MB / 1.061 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005984/0.4397, allocations: 386 kB / 1.372 GB, free: 4.586 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.891e-05/0.4398, allocations: 41.91 kB / 1.372 GB, free: 4.539 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.4398, allocations: 7.938 kB / 1.372 GB, free: 4.531 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.4398, allocations: 4 kB / 1.372 GB, free: 4.527 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.4399, allocations: 27.92 kB / 1.372 GB, free: 4.5 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.44, allocations: 7.984 kB / 1.372 GB, free: 4.492 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002441/0.4402, allocations: 47.8 kB / 1.372 GB, free: 4.445 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.502e-05/0.4402, allocations: 19.98 kB / 1.372 GB, free: 4.426 MB / 1.061 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.resume,sta.stateGraphRoot.suspend) * 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.0001813/0.4404, allocations: 173.7 kB / 1.373 GB, free: 4.25 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.717e-05/0.4404, allocations: 15.89 kB / 1.373 GB, free: 4.234 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.4e-05/0.4405, allocations: 25.91 kB / 1.373 GB, free: 4.207 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.4405, allocations: 4 kB / 1.373 GB, free: 4.203 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.371e-06/0.4405, allocations: 0 / 1.373 GB, free: 4.203 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.4405, allocations: 3.984 kB / 1.373 GB, free: 4.199 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008032/0.4413, allocations: 0.5256 MB / 1.373 GB, free: 3.633 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.4413, allocations: 3.938 kB / 1.373 GB, free: 3.629 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.751e-05/0.4414, allocations: 15.98 kB / 1.373 GB, free: 3.613 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.4414, allocations: 4 kB / 1.373 GB, free: 3.609 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.782e-05/0.4414, allocations: 8 kB / 1.373 GB, free: 3.602 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.4414, allocations: 0 / 1.373 GB, free: 3.602 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.4414, allocations: 0 / 1.373 GB, free: 3.602 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003735/0.4418, allocations: 313.2 kB / 1.374 GB, free: 3.281 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.615e-05/0.4418, allocations: 15.84 kB / 1.374 GB, free: 3.266 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.343e-05/0.4419, allocations: 11.98 kB / 1.374 GB, free: 3.254 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.442, allocations: 8 kB / 1.374 GB, free: 3.246 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.459e-05/0.4421, allocations: 23.95 kB / 1.374 GB, free: 3.223 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.836e-05/0.4421, allocations: 12 kB / 1.374 GB, free: 3.211 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.984e-05/0.4422, allocations: 101.6 kB / 1.374 GB, free: 3.113 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.4422, allocations: 4 kB / 1.374 GB, free: 3.109 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003315/0.4425, allocations: 63.89 kB / 1.374 GB, free: 3.047 MB / 1.061 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.0001706/0.4427, allocations: 119.2 kB / 1.374 GB, free: 2.918 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005212/0.4432, allocations: 306 kB / 1.374 GB, free: 2.602 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.4432, allocations: 0 / 1.374 GB, free: 2.602 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001545/0.4433, allocations: 84.33 kB / 1.374 GB, free: 2.52 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003403/0.4437, allocations: 45.66 kB / 1.374 GB, free: 2.477 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007076/0.4444, allocations: 372.9 kB / 1.375 GB, free: 2.09 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001405/0.4445, allocations: 137.6 kB / 1.375 GB, free: 1.934 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.181e-05/0.4446, allocations: 21.94 kB / 1.375 GB, free: 1.914 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.823e-05/0.4447, allocations: 19.44 kB / 1.375 GB, free: 1.895 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/0.4447, allocations: 0 / 1.375 GB, free: 1.895 MB / 1.061 GB Notification: Performance of Templates: time 0.007286/0.452, allocations: 2.883 MB / 1.378 GB, free: 15.05 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & ./Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.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.839224072173238]