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.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001394/0.001394, allocations: 103 kB / 18.19 MB, free: 3.879 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 189.9 kB / 21.34 MB, free: 0.7383 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 225.6 MB / 249.9 MB, free: 3.191 MB / 190.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.806/2.806, allocations: 489.7 MB / 0.7761 GB, free: 2.41 MB / 0.6075 GB [Timeout remaining time 87] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=521,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=521,variableFilter="time|sta.y1|sta.y1_actual",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator") [Timeout 300] Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 67.89 kB / 1.127 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8919/0.8939, allocations: 172 MB / 1.295 GB, free: 5.691 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003144/0.897, allocations: 1.776 MB / 1.297 GB, free: 4.457 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001261/0.8983, allocations: 0.6853 MB / 1.297 GB, free: 3.988 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.8984, allocations: 7.906 kB / 1.297 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.8985, allocations: 35.53 kB / 1.297 GB, free: 3.957 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.978e-05/0.8986, allocations: 28.52 kB / 1.297 GB, free: 3.934 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007144/0.8993, allocations: 253.6 kB / 1.298 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0004817/0.8998, allocations: 406.8 kB / 1.298 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003068/0.9001, allocations: 187.7 kB / 1.298 GB, free: 3.52 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001552/0.9002, allocations: 138.2 kB / 1.298 GB, free: 3.449 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002059/0.9004, allocations: 135.5 kB / 1.298 GB, free: 3.375 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.907e-05/0.9005, allocations: 39.84 kB / 1.298 GB, free: 3.375 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001229/0.9006, allocations: 62.34 kB / 1.298 GB, free: 3.367 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.859e-05/0.9007, allocations: 70.61 kB / 1.299 GB, free: 3.32 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001664/0.9009, allocations: 136.3 kB / 1.299 GB, free: 3.23 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005519/0.9014, allocations: 420.5 kB / 1.299 GB, free: 3.059 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.9014, allocations: 4 kB / 1.299 GB, free: 3.055 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.044e-06/0.9014, allocations: 1.125 kB / 1.299 GB, free: 3.055 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.143e-06/0.9014, allocations: 0 / 1.299 GB, free: 3.055 MB / 0.9981 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.000913/0.9024, allocations: 0.5542 MB / 1.3 GB, free: 2.559 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.9024, allocations: 9.375 kB / 1.3 GB, free: 2.559 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.673e-05/0.9025, allocations: 28.47 kB / 1.3 GB, free: 2.547 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004062/0.9029, allocations: 266.7 kB / 1.3 GB, free: 2.297 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.601e-05/0.9029, allocations: 27.44 kB / 1.3 GB, free: 2.285 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.034e-05/0.903, allocations: 35 kB / 1.3 GB, free: 2.273 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005249/0.9035, allocations: 271.5 kB / 1.3 GB, free: 2.141 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.9035, allocations: 4.125 kB / 1.3 GB, free: 2.137 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/0.9035, allocations: 14.88 kB / 1.3 GB, free: 2.125 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.9036, allocations: 5.438 kB / 1.3 GB, free: 2.125 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003515/0.9039, allocations: 187 kB / 1.3 GB, free: 2.055 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001256/0.9052, allocations: 0.8701 MB / 1.301 GB, free: 1.438 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003006/0.9055, allocations: 151.8 kB / 1.301 GB, free: 1.367 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.9056, allocations: 83.27 kB / 1.302 GB, free: 1.328 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.9056, allocations: 6.547 kB / 1.302 GB, free: 1.324 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000268/0.9059, allocations: 146.2 kB / 1.302 GB, free: 1.238 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=27): time 2.064e-06/0.9059, allocations: 0 / 1.302 GB, free: 1.238 MB / 0.9981 GB Notification: Performance of matching and sorting (n=27): time 0.0006488/0.9066, allocations: 274.6 kB / 1.302 GB, free: 1.121 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.693e-05/0.9066, allocations: 61.3 kB / 1.302 GB, free: 1.055 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002016/0.9068, allocations: 161 kB / 1.302 GB, free: 0.9258 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.344e-05/0.9069, allocations: 44.78 kB / 1.302 GB, free: 0.8828 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/0.9071, allocations: 143.1 kB / 1.302 GB, free: 0.7578 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 7.624e-05/0.9071, allocations: 69.88 kB / 1.302 GB, free: 0.7031 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001804/0.9073, allocations: 94.84 kB / 1.302 GB, free: 0.6562 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001977/0.9075, allocations: 329.1 kB / 1.303 GB, free: 344 kB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000224/0.9077, allocations: 94.88 kB / 1.303 GB, free: 312 kB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002946/0.908, allocations: 160.3 kB / 1.303 GB, free: 200 kB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004466/0.9085, allocations: 256.5 kB / 1.303 GB, free: 8 kB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.9085, allocations: 4 kB / 1.303 GB, free: 4 kB / 0.9981 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008315/0.9093, allocations: 357.6 kB / 1.304 GB, free: 15.82 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 5.98e-05/0.9094, allocations: 43.22 kB / 1.304 GB, free: 15.79 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.9094, allocations: 6.719 kB / 1.304 GB, free: 15.78 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.431e-05/0.9094, allocations: 2.75 kB / 1.304 GB, free: 15.78 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001782/0.9096, allocations: 28.05 kB / 1.304 GB, free: 15.78 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.9096, allocations: 4.578 kB / 1.304 GB, free: 15.78 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000292/0.9099, allocations: 55.92 kB / 1.304 GB, free: 15.75 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.916e-05/0.9099, allocations: 21.95 kB / 1.304 GB, free: 15.75 MB / 1.014 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.0002606/0.9102, allocations: 178.2 kB / 1.304 GB, free: 15.6 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.974e-05/0.9102, allocations: 19.38 kB / 1.304 GB, free: 15.59 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000533/0.9108, allocations: 233.1 kB / 1.304 GB, free: 15.47 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.477e-06/0.9108, allocations: 6.906 kB / 1.304 GB, free: 15.47 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/0.9108, allocations: 1.578 kB / 1.304 GB, free: 15.47 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.348e-05/0.9108, allocations: 1.125 kB / 1.304 GB, free: 15.47 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.912, allocations: 0.6427 MB / 1.305 GB, free: 15.02 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.912, allocations: 1.344 kB / 1.305 GB, free: 15.02 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.101e-05/0.9121, allocations: 15.55 kB / 1.305 GB, free: 15.02 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.9121, allocations: 1.953 kB / 1.305 GB, free: 15.02 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/0.9121, allocations: 6.844 kB / 1.305 GB, free: 15.01 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.9121, allocations: 1.922 kB / 1.305 GB, free: 15.01 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.9121, allocations: 7.938 kB / 1.305 GB, free: 15 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004347/0.9125, allocations: 313.2 kB / 1.305 GB, free: 14.8 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 7.151e-05/0.9126, allocations: 94.88 kB / 1.305 GB, free: 14.7 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.372e-05/0.9126, allocations: 8.156 kB / 1.305 GB, free: 14.7 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.9128, allocations: 8.062 kB / 1.305 GB, free: 14.69 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.988e-05/0.9128, allocations: 25.77 kB / 1.305 GB, free: 14.69 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.208e-05/0.9129, allocations: 11.84 kB / 1.305 GB, free: 14.68 MB / 1.014 GB Notification: Performance of sorting global known variables: time 8.549e-05/0.9129, allocations: 107.2 kB / 1.305 GB, free: 14.6 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.9129, allocations: 0 / 1.305 GB, free: 14.6 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003828/0.9133, allocations: 64.81 kB / 1.305 GB, free: 14.58 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 (sta.offToOn.enableFire,sta.onToOff.enableFire,sta.on.active,sta.off.active,$cse1,$cse2,$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 (29): * Single equations (assignments): 24 * 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.0002131/0.9135, allocations: 126.4 kB / 1.306 GB, free: 14.47 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0005372/0.9141, allocations: 285.4 kB / 1.306 GB, free: 14.34 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.9141, allocations: 4.062 kB / 1.306 GB, free: 14.33 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001669/0.9143, allocations: 83.7 kB / 1.306 GB, free: 14.31 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003408/0.9146, allocations: 38.19 kB / 1.306 GB, free: 14.29 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008031/0.9154, allocations: 410.9 kB / 1.306 GB, free: 14.02 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000402/0.9158, allocations: 0.7461 MB / 1.307 GB, free: 13.31 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.754e-05/0.9159, allocations: 24.11 kB / 1.307 GB, free: 13.3 MB / 1.014 GB Notification: Performance of SimCode: time 4.3e-07/0.9159, allocations: 0 / 1.307 GB, free: 13.3 MB / 1.014 GB Notification: Performance of Templates: time 0.006983/0.9229, allocations: 3.13 MB / 1.31 GB, free: 12.93 MB / 1.014 GB [Timeout remaining time 299] 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=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 400] 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/jenkins1/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