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.00124/0.00124, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001383/0.001383, allocations: 218.4 kB / 23.01 MB, free: 5.121 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.371/1.371, allocations: 230.6 MB / 256.8 MB, free: 7.961 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.981/2.981, allocations: 0.49 GB / 0.7958 GB, free: 33.41 MB / 0.6231 GB " [Timeout remaining time 177] 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.001971/0.001971, allocations: 74.69 kB / 1.155 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.328/0.3299, allocations: 176.1 MB / 1.327 GB, free: 1.477 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003008/0.3329, allocations: 1.806 MB / 1.329 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001195/0.3341, allocations: 0.7091 MB / 1.33 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.119e-05/0.3342, allocations: 7.938 kB / 1.33 GB, free: 14.94 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001206/0.3343, allocations: 31.67 kB / 1.33 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.447e-05/0.3344, allocations: 31.72 kB / 1.33 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006496/0.3351, allocations: 257.4 kB / 1.33 GB, free: 14.63 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004964/0.3356, allocations: 411.4 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003013/0.3359, allocations: 179.3 kB / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000154/0.336, allocations: 139.6 kB / 1.331 GB, free: 13.91 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002101/0.3362, allocations: 139.4 kB / 1.331 GB, free: 13.77 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.227e-05/0.3363, allocations: 40 kB / 1.331 GB, free: 13.73 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001141/0.3364, allocations: 59.98 kB / 1.331 GB, free: 13.68 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.698e-05/0.3365, allocations: 71.77 kB / 1.331 GB, free: 13.61 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001537/0.3366, allocations: 147.4 kB / 1.331 GB, free: 13.46 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004584/0.3371, allocations: 414.5 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3371, allocations: 0 / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3371, allocations: 0 / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.777e-06/0.3371, allocations: 4 kB / 1.331 GB, free: 13.05 MB / 1.029 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.0007621/0.3378, allocations: 490.6 kB / 1.332 GB, free: 12.53 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.3379, allocations: 12.03 kB / 1.332 GB, free: 12.52 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002585/0.3381, allocations: 40.77 kB / 1.332 GB, free: 12.48 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003259/0.3385, allocations: 201.7 kB / 1.332 GB, free: 12.26 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/0.3385, allocations: 32.88 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.379e-05/0.3386, allocations: 28.38 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004382/0.339, allocations: 271.3 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.339, allocations: 192 / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.891e-05/0.339, allocations: 19.92 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.339, allocations: 4 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003219/0.3394, allocations: 177.9 kB / 1.333 GB, free: 11.73 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001169/0.3405, allocations: 0.8268 MB / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002943/0.3408, allocations: 154.8 kB / 1.334 GB, free: 10.7 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001431/0.341, allocations: 81.84 kB / 1.334 GB, free: 10.61 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.789e-05/0.341, allocations: 4 kB / 1.334 GB, free: 10.61 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002238/0.3412, allocations: 145.8 kB / 1.334 GB, free: 10.45 MB / 1.029 GB Notification: Performance of pre-optimization done (n=27): time 1.352e-06/0.3412, allocations: 0 / 1.334 GB, free: 10.45 MB / 1.029 GB Notification: Performance of matching and sorting (n=27): time 0.0004979/0.3417, allocations: 271.5 kB / 1.334 GB, free: 10.18 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.154e-05/0.3418, allocations: 59.39 kB / 1.334 GB, free: 10.11 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.3419, allocations: 163.1 kB / 1.334 GB, free: 9.945 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.147e-05/0.342, allocations: 41.7 kB / 1.334 GB, free: 9.898 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.3421, allocations: 144.8 kB / 1.334 GB, free: 9.754 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.9e-05/0.3421, allocations: 67.47 kB / 1.335 GB, free: 9.688 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.3422, allocations: 93.62 kB / 1.335 GB, free: 9.59 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.3424, allocations: 330.8 kB / 1.335 GB, free: 9.258 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.3426, allocations: 87.97 kB / 1.335 GB, free: 9.172 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002444/0.3428, allocations: 175.6 kB / 1.335 GB, free: 8.973 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003422/0.3432, allocations: 244.8 kB / 1.335 GB, free: 8.703 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3432, allocations: 0 / 1.335 GB, free: 8.703 MB / 1.029 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005678/0.3437, allocations: 364.1 kB / 1.336 GB, free: 8.336 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.515e-05/0.3438, allocations: 41.58 kB / 1.336 GB, free: 8.289 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3438, allocations: 0 / 1.336 GB, free: 8.289 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/0.3438, allocations: 4 kB / 1.336 GB, free: 8.285 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.3439, allocations: 31.92 kB / 1.336 GB, free: 8.254 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.344, allocations: 4.219 kB / 1.336 GB, free: 8.25 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002233/0.3442, allocations: 55.8 kB / 1.336 GB, free: 8.195 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.889e-05/0.3442, allocations: 16 kB / 1.336 GB, free: 8.18 MB / 1.029 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.0001728/0.3444, allocations: 174.2 kB / 1.336 GB, free: 8 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.637e-05/0.3444, allocations: 15.84 kB / 1.336 GB, free: 7.984 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.232e-05/0.3445, allocations: 25.97 kB / 1.336 GB, free: 7.957 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.69e-06/0.3445, allocations: 7.984 kB / 1.336 GB, free: 7.949 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.3445, allocations: 0 / 1.336 GB, free: 7.949 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.3445, allocations: 3.984 kB / 1.336 GB, free: 7.945 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000797/0.3453, allocations: 0.5914 MB / 1.337 GB, free: 7.301 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.3453, allocations: 0 / 1.337 GB, free: 7.301 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.505e-05/0.3453, allocations: 16 kB / 1.337 GB, free: 7.285 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.3454, allocations: 0 / 1.337 GB, free: 7.285 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.3454, allocations: 11.98 kB / 1.337 GB, free: 7.273 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3454, allocations: 4 kB / 1.337 GB, free: 7.27 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.3454, allocations: 0 / 1.337 GB, free: 7.27 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003505/0.3457, allocations: 305.2 kB / 1.337 GB, free: 6.957 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.958e-05/0.3457, allocations: 19.84 kB / 1.337 GB, free: 6.938 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.684e-05/0.3458, allocations: 8 kB / 1.337 GB, free: 6.93 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.42e-05/0.3459, allocations: 11.98 kB / 1.337 GB, free: 6.918 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.996e-05/0.3459, allocations: 27.95 kB / 1.337 GB, free: 6.891 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.346, allocations: 8 kB / 1.337 GB, free: 6.883 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.585e-05/0.346, allocations: 104.8 kB / 1.337 GB, free: 6.781 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.346, allocations: 0 / 1.337 GB, free: 6.781 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000307/0.3463, allocations: 71.78 kB / 1.337 GB, free: 6.711 MB / 1.029 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.0001617/0.3465, allocations: 122.9 kB / 1.337 GB, free: 6.578 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004513/0.3469, allocations: 276.4 kB / 1.338 GB, free: 6.297 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.3469, allocations: 4.062 kB / 1.338 GB, free: 6.293 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000146/0.3471, allocations: 79.91 kB / 1.338 GB, free: 6.215 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002974/0.3474, allocations: 31.97 kB / 1.338 GB, free: 6.184 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006494/0.348, allocations: 402.5 kB / 1.338 GB, free: 5.762 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.3484, allocations: 0.744 MB / 1.339 GB, free: 4.992 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.091e-05/0.3484, allocations: 23.44 kB / 1.339 GB, free: 4.969 MB / 1.029 GB Notification: Performance of SimCode: time 3.11e-07/0.3484, allocations: 0 / 1.339 GB, free: 4.969 MB / 1.029 GB Notification: Performance of Templates: time 0.004779/0.3532, allocations: 2.931 MB / 1.342 GB, free: 2.039 MB / 1.029 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=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: 10.805460866016801]