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.001399/0.001399, allocations: 71.75 kB / 20.97 MB, free: 3.574 MB / 18.57 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.001205/0.001205, allocations: 169 kB / 24.28 MB, free: 276 kB / 18.57 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.057/1.057, allocations: 177.1 MB / 204.6 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.869/1.869, allocations: 377.8 MB / 0.6239 GB, free: 8.566 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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.773e-06/1.773e-06, allocations: 0 / 0.8115 GB, free: 2.098 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.105e-05/3.282e-05, allocations: 6.25 kB / 0.8115 GB, free: 2.09 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002752/0.002785, allocations: 1.834 MB / 0.8133 GB, free: 276 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0009245/0.003709, allocations: 0.6969 MB / 0.814 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.567e-05/0.003805, allocations: 4.875 kB / 0.814 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.003936, allocations: 27.67 kB / 0.814 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 5.372e-05/0.00399, allocations: 28.52 kB / 0.814 GB, free: 15.51 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005401/0.00453, allocations: 265 kB / 0.8143 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0003539/0.004884, allocations: 403.4 kB / 0.8147 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000236/0.00512, allocations: 220.8 kB / 0.8149 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001528/0.005273, allocations: 207.7 kB / 0.8151 GB, free: 14.44 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000139/0.005412, allocations: 109 kB / 0.8152 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.848e-05/0.00545, allocations: 40 kB / 0.8152 GB, free: 14.3 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 7.937e-05/0.005529, allocations: 51.94 kB / 0.8153 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 5.576e-05/0.005585, allocations: 71.8 kB / 0.8153 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001231/0.005708, allocations: 105.5 kB / 0.8154 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002629/0.005971, allocations: 279.1 kB / 0.8157 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.005974, allocations: 0 / 0.8157 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.323e-06/0.005976, allocations: 0 / 0.8157 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.00598, allocations: 0.9688 kB / 0.8157 GB, free: 13.8 MB / 0.7761 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.0006023/0.006582, allocations: 0.583 MB / 0.8163 GB, free: 13.17 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.006619, allocations: 8.594 kB / 0.8163 GB, free: 13.16 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002106/0.00683, allocations: 56.78 kB / 0.8163 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002267/0.007057, allocations: 202.2 kB / 0.8165 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.127e-05/0.007088, allocations: 28.86 kB / 0.8166 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.523e-05/0.007123, allocations: 36.36 kB / 0.8166 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002737/0.007397, allocations: 221.6 kB / 0.8168 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.007406, allocations: 2.75 kB / 0.8168 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.007425, allocations: 12.38 kB / 0.8168 GB, free: 12.58 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.007435, allocations: 8.359 kB / 0.8168 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001586/0.007593, allocations: 106.8 kB / 0.8169 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000794/0.008387, allocations: 0.7826 MB / 0.8177 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001872/0.008575, allocations: 131.8 kB / 0.8178 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.164e-05/0.008656, allocations: 60.38 kB / 0.8179 GB, free: 11.44 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.55e-05/0.008672, allocations: 4 kB / 0.8179 GB, free: 11.44 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001489/0.008821, allocations: 124.5 kB / 0.818 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=27): time 1.533e-06/0.008822, allocations: 1.625 kB / 0.818 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of matching and sorting (n=27): time 0.0003181/0.00914, allocations: 225 kB / 0.8182 GB, free: 11.08 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.354e-05/0.009174, allocations: 59.41 kB / 0.8183 GB, free: 11.01 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.009283, allocations: 216.5 kB / 0.8185 GB, free: 10.78 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.887e-05/0.009312, allocations: 46.31 kB / 0.8185 GB, free: 10.73 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 8.072e-05/0.009393, allocations: 187.5 kB / 0.8187 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 4.136e-05/0.009434, allocations: 64.17 kB / 0.8188 GB, free: 10.48 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.187e-05/0.009526, allocations: 100 kB / 0.8189 GB, free: 10.37 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.009644, allocations: 0.4962 MB / 0.8193 GB, free: 9.863 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.00976, allocations: 98.62 kB / 0.8194 GB, free: 9.762 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.009904, allocations: 192 kB / 0.8196 GB, free: 9.531 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001866/0.01009, allocations: 209.3 kB / 0.8198 GB, free: 9.293 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.01009, allocations: 4 kB / 0.8198 GB, free: 9.289 MB / 0.7761 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003388/0.01043, allocations: 356.9 kB / 0.8202 GB, free: 8.926 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.573e-05/0.01046, allocations: 29.7 kB / 0.8202 GB, free: 8.891 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.01046, allocations: 4 kB / 0.8202 GB, free: 8.887 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.01048, allocations: 7.984 kB / 0.8202 GB, free: 8.879 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.762e-05/0.01057, allocations: 39.86 kB / 0.8202 GB, free: 8.84 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.01058, allocations: 10.94 kB / 0.8203 GB, free: 8.832 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.01069, allocations: 43.77 kB / 0.8203 GB, free: 8.789 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.015e-05/0.01071, allocations: 19.98 kB / 0.8203 GB, free: 8.77 MB / 0.7761 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 9.844e-05/0.01081, allocations: 192.5 kB / 0.8205 GB, free: 8.574 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.251e-05/0.01083, allocations: 25.28 kB / 0.8205 GB, free: 8.551 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.088e-05/0.01087, allocations: 29.89 kB / 0.8205 GB, free: 8.527 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.01087, allocations: 0 / 0.8205 GB, free: 8.527 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.01087, allocations: 0 / 0.8205 GB, free: 8.527 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.01088, allocations: 4.562 kB / 0.8206 GB, free: 8.523 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006005/0.01148, allocations: 0.5412 MB / 0.8211 GB, free: 7.938 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.01148, allocations: 0.5625 kB / 0.8211 GB, free: 7.938 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.516e-05/0.01152, allocations: 19.94 kB / 0.8211 GB, free: 7.918 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.01153, allocations: 5.125 kB / 0.8211 GB, free: 7.914 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.01154, allocations: 7.984 kB / 0.8211 GB, free: 7.906 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.01154, allocations: 0 / 0.8211 GB, free: 7.906 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.01154, allocations: 1.094 kB / 0.8211 GB, free: 7.906 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002053/0.01174, allocations: 336.5 kB / 0.8214 GB, free: 7.559 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.056e-05/0.01175, allocations: 15.84 kB / 0.8214 GB, free: 7.543 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/0.01177, allocations: 8.594 kB / 0.8215 GB, free: 7.535 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.734e-05/0.01182, allocations: 12.7 kB / 0.8215 GB, free: 7.523 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.697e-05/0.01188, allocations: 19.95 kB / 0.8215 GB, free: 7.504 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.01189, allocations: 15.94 kB / 0.8215 GB, free: 7.492 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.267e-05/0.01194, allocations: 147 kB / 0.8216 GB, free: 7.348 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.01194, allocations: 0 / 0.8216 GB, free: 7.348 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001985/0.01214, allocations: 59.89 kB / 0.8217 GB, free: 7.289 MB / 0.7761 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.0001258/0.01227, allocations: 119 kB / 0.8218 GB, free: 7.164 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002983/0.01256, allocations: 279.5 kB / 0.8221 GB, free: 6.871 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.01257, allocations: 0 / 0.8221 GB, free: 6.871 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 8.846e-05/0.01265, allocations: 91.95 kB / 0.8222 GB, free: 6.777 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002129/0.01287, allocations: 33 kB / 0.8222 GB, free: 6.746 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004336/0.0133, allocations: 371.7 kB / 0.8226 GB, free: 6.355 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.635e-05/0.01335, allocations: 80.33 kB / 0.8226 GB, free: 6.258 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 5.94e-05/0.01341, allocations: 24.69 kB / 0.8227 GB, free: 6.234 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.056e-05/0.01345, allocations: 24.5 kB / 0.8227 GB, free: 6.211 MB / 0.7761 GB Notification: Performance of SimCode: time 4.71e-07/0.01345, allocations: 3.062 kB / 0.8227 GB, free: 6.211 MB / 0.7761 GB Notification: Performance of Templates: time 0.004495/0.01794, allocations: 2.768 MB / 0.8254 GB, free: 3.504 MB / 0.7761 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 -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","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.3546183430589736]