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.001289/0.001289, allocations: 116.5 kB / 17.13 MB, free: 5.945 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.001394/0.001394, allocations: 210.5 kB / 20.09 MB, free: 2.996 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.45/1.45, allocations: 230.6 MB / 253.5 MB, free: 15.13 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.904/2.904, allocations: 0.49 GB / 0.7923 GB, free: 1.449 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: 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.002626/0.002626, allocations: 75.89 kB / 1.15 GB, free: 14.9 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.92/0.9226, allocations: 176.1 MB / 1.322 GB, free: 25.08 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002493/0.9251, allocations: 1.788 MB / 1.324 GB, free: 23.84 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001037/0.9262, allocations: 0.7031 MB / 1.324 GB, free: 23.36 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.671e-05/0.9263, allocations: 8.906 kB / 1.324 GB, free: 23.36 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001314/0.9264, allocations: 29.73 kB / 1.324 GB, free: 23.33 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.675e-05/0.9264, allocations: 21.34 kB / 1.324 GB, free: 23.32 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006027/0.927, allocations: 267.6 kB / 1.325 GB, free: 23.16 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003534/0.9274, allocations: 406.3 kB / 1.325 GB, free: 22.98 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002257/0.9276, allocations: 182.3 kB / 1.325 GB, free: 22.89 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001058/0.9277, allocations: 139.1 kB / 1.325 GB, free: 22.82 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000142/0.9279, allocations: 138.8 kB / 1.325 GB, free: 22.75 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.08e-05/0.9279, allocations: 38.47 kB / 1.326 GB, free: 22.75 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.827e-05/0.928, allocations: 64.12 kB / 1.326 GB, free: 22.74 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.434e-05/0.9281, allocations: 68.64 kB / 1.326 GB, free: 22.69 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.9282, allocations: 139.1 kB / 1.326 GB, free: 22.6 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003397/0.9285, allocations: 418.5 kB / 1.326 GB, free: 22.43 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.9285, allocations: 0 / 1.326 GB, free: 22.43 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.302e-06/0.9285, allocations: 0 / 1.326 GB, free: 22.43 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.068e-05/0.9285, allocations: 0 / 1.326 GB, free: 22.43 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.0006423/0.9292, allocations: 0.5626 MB / 1.327 GB, free: 21.92 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.9292, allocations: 12.08 kB / 1.327 GB, free: 21.92 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002632/0.9295, allocations: 45 kB / 1.327 GB, free: 21.9 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003101/0.9298, allocations: 261.2 kB / 1.327 GB, free: 21.66 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4e-05/0.9298, allocations: 26.28 kB / 1.327 GB, free: 21.64 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.483e-05/0.9299, allocations: 30.5 kB / 1.327 GB, free: 21.64 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004535/0.9303, allocations: 275.2 kB / 1.327 GB, free: 21.5 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.9303, allocations: 192 / 1.327 GB, free: 21.5 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.9304, allocations: 18.38 kB / 1.327 GB, free: 21.48 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.9304, allocations: 6.125 kB / 1.327 GB, free: 21.48 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003254/0.9307, allocations: 182.1 kB / 1.328 GB, free: 21.42 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009977/0.9317, allocations: 0.8517 MB / 1.328 GB, free: 20.82 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003082/0.932, allocations: 168.3 kB / 1.329 GB, free: 20.73 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.9321, allocations: 77.22 kB / 1.329 GB, free: 20.7 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.367e-05/0.9322, allocations: 2.469 kB / 1.329 GB, free: 20.7 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002386/0.9324, allocations: 134.6 kB / 1.329 GB, free: 20.62 MB / 1.061 GB Notification: Performance of pre-optimization done (n=27): time 1.552e-06/0.9324, allocations: 0 / 1.329 GB, free: 20.62 MB / 1.061 GB Notification: Performance of matching and sorting (n=27): time 0.0005456/0.9329, allocations: 276.8 kB / 1.329 GB, free: 20.5 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.266e-05/0.933, allocations: 65.33 kB / 1.329 GB, free: 20.43 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.9331, allocations: 162.1 kB / 1.329 GB, free: 20.3 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.792e-05/0.9331, allocations: 41.7 kB / 1.329 GB, free: 20.26 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.793e-05/0.9332, allocations: 138.8 kB / 1.329 GB, free: 20.14 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.124e-05/0.9333, allocations: 70.67 kB / 1.329 GB, free: 20.08 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/0.9334, allocations: 92.42 kB / 1.33 GB, free: 20.04 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.939e-05/0.9335, allocations: 333 kB / 1.33 GB, free: 19.71 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002098/0.9337, allocations: 93.44 kB / 1.33 GB, free: 19.68 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002346/0.9339, allocations: 168.7 kB / 1.33 GB, free: 19.56 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003292/0.9343, allocations: 249.7 kB / 1.33 GB, free: 19.38 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.9343, allocations: 1.062 kB / 1.33 GB, free: 19.38 MB / 1.061 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005593/0.9348, allocations: 349.2 kB / 1.331 GB, free: 19.21 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.516e-05/0.9349, allocations: 45.59 kB / 1.331 GB, free: 19.18 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.9349, allocations: 2.781 kB / 1.331 GB, free: 19.18 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.9349, allocations: 2.781 kB / 1.331 GB, free: 19.18 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.935, allocations: 31.61 kB / 1.331 GB, free: 19.17 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.935, allocations: 4.188 kB / 1.331 GB, free: 19.17 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002494/0.9353, allocations: 47.47 kB / 1.331 GB, free: 19.15 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.62e-05/0.9353, allocations: 17.45 kB / 1.331 GB, free: 19.15 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.0001389/0.9355, allocations: 176.9 kB / 1.331 GB, free: 19 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.737e-05/0.9355, allocations: 19.33 kB / 1.331 GB, free: 18.98 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.128e-05/0.9356, allocations: 21.53 kB / 1.331 GB, free: 18.96 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.9356, allocations: 3.438 kB / 1.331 GB, free: 18.96 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/0.9356, allocations: 0.7969 kB / 1.331 GB, free: 18.96 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.9356, allocations: 1.219 kB / 1.331 GB, free: 18.96 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007606/0.9363, allocations: 0.6401 MB / 1.332 GB, free: 18.5 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.9363, allocations: 0 / 1.332 GB, free: 18.5 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.848e-05/0.9364, allocations: 19.61 kB / 1.332 GB, free: 18.5 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.9364, allocations: 1.281 kB / 1.332 GB, free: 18.5 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.789e-05/0.9364, allocations: 7.172 kB / 1.332 GB, free: 18.49 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.9364, allocations: 0.5625 kB / 1.332 GB, free: 18.49 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.9364, allocations: 1.5 kB / 1.332 GB, free: 18.49 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003168/0.9368, allocations: 304.9 kB / 1.332 GB, free: 18.29 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.914e-05/0.9368, allocations: 94.31 kB / 1.332 GB, free: 18.19 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.823e-05/0.9368, allocations: 11.66 kB / 1.332 GB, free: 18.18 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.022e-05/0.9369, allocations: 8.031 kB / 1.332 GB, free: 18.18 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.05e-05/0.937, allocations: 29.39 kB / 1.332 GB, free: 18.17 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.937, allocations: 5.688 kB / 1.332 GB, free: 18.17 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.364e-05/0.9371, allocations: 102.5 kB / 1.332 GB, free: 18.09 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.9371, allocations: 0 / 1.332 GB, free: 18.09 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003431/0.9374, allocations: 66.92 kB / 1.332 GB, free: 18.07 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.0001476/0.9375, allocations: 122.1 kB / 1.332 GB, free: 17.96 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004532/0.938, allocations: 274.9 kB / 1.333 GB, free: 17.83 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.938, allocations: 3.938 kB / 1.333 GB, free: 17.82 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000148/0.9382, allocations: 82.22 kB / 1.333 GB, free: 17.8 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003219/0.9385, allocations: 29.09 kB / 1.333 GB, free: 17.79 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000689/0.9392, allocations: 423.7 kB / 1.333 GB, free: 17.5 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001733/0.9393, allocations: 0.7352 MB / 1.334 GB, free: 16.8 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.441e-05/0.9394, allocations: 21.86 kB / 1.334 GB, free: 16.8 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/0.9394, allocations: 4 kB / 1.334 GB, free: 16.79 MB / 1.061 GB Notification: Performance of Templates: time 0.00613/0.9455, allocations: 2.933 MB / 1.337 GB, free: 16.45 MB / 1.061 GB " [Timeout remaining time 299] 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 11.332941644999664]