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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|sta.y1|sta.y1_actual",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001593/0.001593, allocations: 108.3 kB / 15.99 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001747/0.001747, allocations: 194.9 kB / 16.91 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.708/2.708, allocations: 482.2 MB / 0.7548 GB, free: 7.352 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 65.09 kB / 0.9238 GB, free: 0.5547 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8902/0.8921, allocations: 162.2 MB / 1.082 GB, free: 1.75 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003178/0.8953, allocations: 1.857 MB / 1.084 GB, free: 472 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001273/0.8966, allocations: 0.6862 MB / 1.085 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.8968, allocations: 4.094 kB / 1.085 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001599/0.8969, allocations: 22.66 kB / 1.085 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.975e-05/0.897, allocations: 15.69 kB / 1.085 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008268/0.8979, allocations: 234.1 kB / 1.085 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0005747/0.8985, allocations: 404.2 kB / 1.085 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000402/0.8989, allocations: 223.8 kB / 1.085 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001994/0.8991, allocations: 132.8 kB / 1.086 GB, free: 15.47 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002109/0.8993, allocations: 127.2 kB / 1.086 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.912e-05/0.8994, allocations: 39.41 kB / 1.086 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001611/0.8995, allocations: 62.36 kB / 1.086 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.8996, allocations: 70.19 kB / 1.086 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001998/0.8999, allocations: 146 kB / 1.086 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0004963/0.9004, allocations: 317.6 kB / 1.086 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.9004, allocations: 4 kB / 1.086 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.415e-06/0.9004, allocations: 0 / 1.086 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.162e-05/0.9004, allocations: 1.031 kB / 1.086 GB, free: 15.14 MB / 0.8419 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.00101/0.9014, allocations: 0.545 MB / 1.087 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.9015, allocations: 9.812 kB / 1.087 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.838e-05/0.9016, allocations: 28.84 kB / 1.087 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003747/0.9019, allocations: 264 kB / 1.087 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.178e-05/0.902, allocations: 28.27 kB / 1.087 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.734e-05/0.9021, allocations: 30.95 kB / 1.087 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000576/0.9027, allocations: 275.3 kB / 1.087 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.9027, allocations: 4.188 kB / 1.087 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.263e-05/0.9027, allocations: 14.8 kB / 1.088 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.9027, allocations: 6.094 kB / 1.088 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003594/0.9031, allocations: 183.1 kB / 1.088 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.9044, allocations: 0.8733 MB / 1.089 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003332/0.9048, allocations: 179.5 kB / 1.089 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001638/0.905, allocations: 101.5 kB / 1.089 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.236e-05/0.905, allocations: 2.75 kB / 1.089 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002811/0.9053, allocations: 148.4 kB / 1.089 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=27): time 1.824e-06/0.9053, allocations: 0 / 1.089 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of matching and sorting (n=27): time 0.0005507/0.9058, allocations: 268.4 kB / 1.089 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.293e-05/0.9059, allocations: 61.38 kB / 1.089 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001539/0.9061, allocations: 158.3 kB / 1.089 GB, free: 13 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.463e-05/0.9061, allocations: 45.95 kB / 1.089 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/0.9063, allocations: 138.6 kB / 1.09 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.73e-05/0.9064, allocations: 66.62 kB / 1.09 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001517/0.9065, allocations: 90.12 kB / 1.09 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001639/0.9067, allocations: 328.3 kB / 1.09 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002008/0.9069, allocations: 99.47 kB / 1.09 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002596/0.9072, allocations: 168.9 kB / 1.09 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003721/0.9075, allocations: 245.7 kB / 1.091 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.9075, allocations: 0 / 1.091 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006314/0.9082, allocations: 355.2 kB / 1.091 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.03e-05/0.9082, allocations: 38.33 kB / 1.091 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.9083, allocations: 6.953 kB / 1.091 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.322e-05/0.9083, allocations: 3.781 kB / 1.091 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.9084, allocations: 36.8 kB / 1.091 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.749e-06/0.9085, allocations: 3.562 kB / 1.091 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002764/0.9087, allocations: 51.44 kB / 1.091 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.895e-05/0.9088, allocations: 19.47 kB / 1.091 GB, free: 11.85 MB / 0.8419 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.000218/0.909, allocations: 170 kB / 1.091 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.461e-05/0.9091, allocations: 18.98 kB / 1.091 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000452/0.9095, allocations: 234.8 kB / 1.091 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.9095, allocations: 6.969 kB / 1.091 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.9096, allocations: 0 / 1.091 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.9096, allocations: 2.688 kB / 1.091 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.9106, allocations: 0.6495 MB / 1.092 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.9106, allocations: 4 kB / 1.092 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.727e-05/0.9107, allocations: 19.7 kB / 1.092 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.9107, allocations: 1.531 kB / 1.092 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.9107, allocations: 6.953 kB / 1.092 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.9107, allocations: 1.469 kB / 1.092 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.9107, allocations: 0 / 1.092 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004143/0.9111, allocations: 308.9 kB / 1.092 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.412e-05/0.9112, allocations: 94.16 kB / 1.093 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.37e-05/0.9113, allocations: 12 kB / 1.093 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.797e-05/0.9114, allocations: 12.64 kB / 1.093 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.418e-05/0.9115, allocations: 25.2 kB / 1.093 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.9115, allocations: 8.344 kB / 1.093 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.231e-05/0.9116, allocations: 102.5 kB / 1.093 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of sort global known variables: time 9.1e-08/0.9116, allocations: 0.5625 kB / 1.093 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004065/0.912, allocations: 68.77 kB / 1.093 GB, free: 10.7 MB / 0.8419 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.localActive,sta.off.localActive,$cse1,$cse2,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,y1.y,sta.stateGraphRoot.activeSteps,sta.off.newActive,sta.off.oldActive,sta.off.active,sta.offToOn.fire,sta.offToOn.t_start,sta.on.newActive,sta.on.oldActive,sta.on.active,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.0002135/0.9122, allocations: 133.7 kB / 1.093 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006403/0.9129, allocations: 315.9 kB / 1.093 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.421e-06/0.9129, allocations: 5.312 kB / 1.093 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001801/0.9131, allocations: 95.11 kB / 1.093 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.9135, allocations: 33.55 kB / 1.093 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008755/0.9143, allocations: 492.1 kB / 1.094 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004283/0.9148, allocations: 0.7444 MB / 1.094 GB, free: 9.316 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.081e-05/0.9149, allocations: 24.09 kB / 1.095 GB, free: 9.312 MB / 0.8419 GB Notification: Performance of SimCode: time 4.31e-07/0.9149, allocations: 0.8125 kB / 1.095 GB, free: 9.312 MB / 0.8419 GB Notification: Performance of Templates: time 0.006853/0.9217, allocations: 3.1 MB / 1.098 GB, free: 8.953 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) 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) Reference file matches