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.001802/0.001802, allocations: 84.59 kB / 19.76 MB, free: 2.023 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.002939/0.002939, allocations: 159.4 kB / 23.01 MB, free: 4.961 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.521/1.521, allocations: 177.2 MB / 203.4 MB, free: 8.949 MB / 190.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.819/2.819, allocations: 377.9 MB / 0.6228 GB, free: 12.57 MB / 0.5919 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.002065/0.002065, allocations: 59.91 kB / 0.9819 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.07/1.072, allocations: 176.1 MB / 1.154 GB, free: 33.29 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002981/1.075, allocations: 1.77 MB / 1.156 GB, free: 32.09 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001272/1.076, allocations: 0.6743 MB / 1.156 GB, free: 31.64 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/1.076, allocations: 6.625 kB / 1.156 GB, free: 31.63 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001501/1.077, allocations: 33.75 kB / 1.156 GB, free: 31.61 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 7.27e-05/1.077, allocations: 33.34 kB / 1.156 GB, free: 31.58 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006984/1.077, allocations: 263.7 kB / 1.157 GB, free: 31.43 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0004322/1.078, allocations: 405.9 kB / 1.157 GB, free: 31.24 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002848/1.078, allocations: 177.6 kB / 1.157 GB, free: 31.16 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001293/1.078, allocations: 139.9 kB / 1.157 GB, free: 31.09 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/1.078, allocations: 120.5 kB / 1.157 GB, free: 31.03 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 5.582e-05/1.078, allocations: 41.53 kB / 1.157 GB, free: 31.03 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001148/1.079, allocations: 58.11 kB / 1.157 GB, free: 31.02 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 7.062e-05/1.079, allocations: 65.88 kB / 1.158 GB, free: 30.98 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0001168/1.079, allocations: 116.1 kB / 1.158 GB, free: 30.91 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.000395/1.079, allocations: 425.9 kB / 1.158 GB, free: 30.73 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/1.079, allocations: 0 / 1.158 GB, free: 30.73 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.783e-06/1.079, allocations: 0 / 1.158 GB, free: 30.73 MB / 1.076 GB Notification: Performance of Transformations before backend: time 8.416e-06/1.079, allocations: 0 / 1.158 GB, free: 30.73 MB / 1.076 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.000746/1.08, allocations: 490 kB / 1.159 GB, free: 30.32 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/1.08, allocations: 12.59 kB / 1.159 GB, free: 30.32 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003/1.08, allocations: 42.95 kB / 1.159 GB, free: 30.3 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000337/1.081, allocations: 197.2 kB / 1.159 GB, free: 30.13 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.007e-05/1.081, allocations: 23.09 kB / 1.159 GB, free: 30.12 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.192e-05/1.081, allocations: 30.62 kB / 1.159 GB, free: 30.12 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004225/1.081, allocations: 274.7 kB / 1.159 GB, free: 29.98 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/1.081, allocations: 192 / 1.159 GB, free: 29.98 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.434e-05/1.081, allocations: 10.41 kB / 1.159 GB, free: 29.97 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/1.081, allocations: 5.125 kB / 1.159 GB, free: 29.97 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002906/1.081, allocations: 188 kB / 1.159 GB, free: 29.9 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009018/1.082, allocations: 0.7089 MB / 1.16 GB, free: 29.38 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002739/1.083, allocations: 156 kB / 1.16 GB, free: 29.31 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001132/1.083, allocations: 73.92 kB / 1.16 GB, free: 29.27 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/1.083, allocations: 6.172 kB / 1.16 GB, free: 29.27 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002041/1.083, allocations: 143.1 kB / 1.16 GB, free: 29.19 MB / 1.076 GB Notification: Performance of pre-optimization done (n=27): time 1.603e-06/1.083, allocations: 0 / 1.16 GB, free: 29.19 MB / 1.076 GB Notification: Performance of matching and sorting (n=27): time 0.0004861/1.083, allocations: 274 kB / 1.161 GB, free: 29.07 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.441e-05/1.083, allocations: 56.56 kB / 1.161 GB, free: 29.01 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/1.084, allocations: 163.1 kB / 1.161 GB, free: 28.88 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 3.522e-05/1.084, allocations: 43.11 kB / 1.161 GB, free: 28.84 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 7.149e-05/1.084, allocations: 137.9 kB / 1.161 GB, free: 28.71 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 4.425e-05/1.084, allocations: 76.78 kB / 1.161 GB, free: 28.66 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/1.084, allocations: 88.5 kB / 1.161 GB, free: 28.61 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 8.096e-05/1.084, allocations: 332.2 kB / 1.161 GB, free: 28.29 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001801/1.084, allocations: 126.5 kB / 1.162 GB, free: 28.22 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/1.084, allocations: 198.4 kB / 1.162 GB, free: 28.07 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002705/1.085, allocations: 248.3 kB / 1.162 GB, free: 27.89 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/1.085, allocations: 0 / 1.162 GB, free: 27.89 MB / 1.076 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004971/1.085, allocations: 387.7 kB / 1.162 GB, free: 27.69 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 3.391e-05/1.085, allocations: 38.17 kB / 1.162 GB, free: 27.65 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/1.085, allocations: 11.44 kB / 1.162 GB, free: 27.64 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/1.085, allocations: 3.219 kB / 1.162 GB, free: 27.64 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/1.085, allocations: 28.47 kB / 1.162 GB, free: 27.64 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.866e-06/1.085, allocations: 2.938 kB / 1.162 GB, free: 27.64 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002365/1.086, allocations: 56.05 kB / 1.163 GB, free: 27.62 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.892e-05/1.086, allocations: 11.62 kB / 1.163 GB, free: 27.62 MB / 1.076 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.0001417/1.086, allocations: 177.7 kB / 1.163 GB, free: 27.46 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.3e-05/1.086, allocations: 20.69 kB / 1.163 GB, free: 27.45 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.9e-05/1.086, allocations: 28.16 kB / 1.163 GB, free: 27.43 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/1.086, allocations: 6.875 kB / 1.163 GB, free: 27.43 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/1.086, allocations: 0 / 1.163 GB, free: 27.43 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/1.086, allocations: 0 / 1.163 GB, free: 27.43 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006221/1.086, allocations: 0.5336 MB / 1.163 GB, free: 27.06 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/1.086, allocations: 0 / 1.163 GB, free: 27.06 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.24e-05/1.086, allocations: 11.47 kB / 1.163 GB, free: 27.06 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.247e-06/1.086, allocations: 2.938 kB / 1.163 GB, free: 27.06 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/1.087, allocations: 11.42 kB / 1.163 GB, free: 27.05 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/1.087, allocations: 2.688 kB / 1.163 GB, free: 27.05 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/1.087, allocations: 3.938 kB / 1.163 GB, free: 27.05 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002868/1.087, allocations: 306.6 kB / 1.164 GB, free: 26.85 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.661e-05/1.087, allocations: 17.44 kB / 1.164 GB, free: 26.84 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.682e-05/1.087, allocations: 6.875 kB / 1.164 GB, free: 26.83 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.181e-05/1.087, allocations: 10.42 kB / 1.164 GB, free: 26.83 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.331e-05/1.087, allocations: 26 kB / 1.164 GB, free: 26.82 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/1.087, allocations: 9.781 kB / 1.164 GB, free: 26.82 MB / 1.076 GB Notification: Performance of sorting global known variables: time 5.397e-05/1.087, allocations: 105.2 kB / 1.164 GB, free: 26.74 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/1.087, allocations: 4 kB / 1.164 GB, free: 26.73 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003268/1.087, allocations: 65.5 kB / 1.164 GB, free: 26.71 MB / 1.076 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.0001478/1.088, allocations: 121.9 kB / 1.164 GB, free: 26.61 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0004423/1.088, allocations: 302.1 kB / 1.164 GB, free: 26.45 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/1.088, allocations: 0 / 1.164 GB, free: 26.45 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001331/1.088, allocations: 82.31 kB / 1.164 GB, free: 26.42 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003339/1.088, allocations: 37.78 kB / 1.164 GB, free: 26.4 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000623/1.089, allocations: 384.2 kB / 1.165 GB, free: 26.15 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001125/1.089, allocations: 138.4 kB / 1.165 GB, free: 26.06 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 7.456e-05/1.089, allocations: 22.2 kB / 1.165 GB, free: 26.06 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.816e-05/1.089, allocations: 21.69 kB / 1.165 GB, free: 26.05 MB / 1.076 GB Notification: Performance of SimCode: time 3e-07/1.089, allocations: 0 / 1.165 GB, free: 26.05 MB / 1.076 GB Notification: Performance of Templates: time 0.006555/1.096, allocations: 2.77 MB / 1.168 GB, free: 25.71 MB / 1.076 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 -s ida -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: 9.513021066086367]