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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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|sta.fil.y|sta.yLim",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|sta.fil.y|sta.yLim",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.0007905/0.0007909, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.005323/0.005323, allocations: 171.5 kB / 16.27 MB, free: 6.648 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.464/1.464, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.97/2.97, allocations: 462.7 MB / 0.7364 GB, free: 272 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003602/0.0003601, allocations: 13.25 kB / 0.9028 GB, free: 36.69 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3897/0.3901, allocations: 159.6 MB / 1.059 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002464/0.3926, allocations: 1.488 MB / 1.06 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001637/0.3942, allocations: 0.8339 MB / 1.061 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001778/0.3945, allocations: 4 kB / 1.061 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001402/0.3946, allocations: 11.88 kB / 1.061 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003033/0.3949, allocations: 27.86 kB / 1.061 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005824/0.3955, allocations: 147.2 kB / 1.061 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002991/0.3958, allocations: 191.5 kB / 1.061 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/0.396, allocations: 41.36 kB / 1.061 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001894/0.3962, allocations: 67.75 kB / 1.061 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001714/0.3964, allocations: 55.75 kB / 1.061 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.028e-05/0.3964, allocations: 11.94 kB / 1.061 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.756e-05/0.3965, allocations: 19.98 kB / 1.061 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.402e-05/0.3966, allocations: 19.92 kB / 1.062 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.3967, allocations: 97.28 kB / 1.062 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002859/0.397, allocations: 187.6 kB / 1.062 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.397, allocations: 0 / 1.062 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.204e-06/0.397, allocations: 0 / 1.062 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.397, allocations: 4 kB / 1.062 GB, free: 2.277 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0009033/0.398, allocations: 440.7 kB / 1.062 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/0.398, allocations: 12.03 kB / 1.062 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.626e-05/0.3981, allocations: 20.83 kB / 1.062 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005239/0.3987, allocations: 237.3 kB / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.637e-05/0.3987, allocations: 8.375 kB / 1.062 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.275e-05/0.3988, allocations: 12.38 kB / 1.062 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002349/0.399, allocations: 95.53 kB / 1.063 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.399, allocations: 0 / 1.063 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.3991, allocations: 3.984 kB / 1.063 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.686e-05/0.3991, allocations: 8 kB / 1.063 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001627/0.3993, allocations: 51.97 kB / 1.063 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009454/0.4002, allocations: 448.5 kB / 1.063 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002053/0.4004, allocations: 90.52 kB / 1.063 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.29e-05/0.4005, allocations: 32.89 kB / 1.063 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.842e-05/0.4005, allocations: 4 kB / 1.063 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001874/0.4007, allocations: 83.38 kB / 1.063 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 2.084e-06/0.4008, allocations: 0 / 1.063 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0003887/0.4011, allocations: 133.7 kB / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.455e-05/0.4012, allocations: 55.41 kB / 1.063 GB, free: 400 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002671/0.4015, allocations: 191.3 kB / 1.064 GB, free: 196 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.142e-05/0.4016, allocations: 33.8 kB / 1.064 GB, free: 156 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.4017, allocations: 108.1 kB / 1.064 GB, free: 44 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.656e-05/0.4017, allocations: 27.64 kB / 1.064 GB, free: 16 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.268e-05/0.4018, allocations: 25.77 kB / 1.064 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.00016/0.402, allocations: 326.8 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001352/0.4021, allocations: 47.97 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001553/0.4023, allocations: 78.55 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000223/0.4025, allocations: 136.2 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.4025, allocations: 0 / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004296/0.403, allocations: 211 kB / 1.065 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.05e-05/0.4031, allocations: 33.7 kB / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.4031, allocations: 0 / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.4031, allocations: 0 / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.4033, allocations: 28.05 kB / 1.065 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.507e-05/0.4033, allocations: 7.922 kB / 1.065 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002842/0.4036, allocations: 47.88 kB / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.584e-05/0.4036, allocations: 4 kB / 1.065 GB, free: 15.03 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,sta.y1_actual,y1.y,$PRE.y1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * 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.0001822/0.4038, allocations: 137.8 kB / 1.065 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.678e-05/0.4039, allocations: 11.91 kB / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.796e-05/0.4039, allocations: 13.41 kB / 1.065 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.4039, allocations: 4 kB / 1.065 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/0.404, allocations: 7.922 kB / 1.065 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.404, allocations: 0 / 1.065 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002376/0.4042, allocations: 221.6 kB / 1.065 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.4042, allocations: 0 / 1.065 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.171e-05/0.4043, allocations: 11.98 kB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.4043, allocations: 4 kB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.4044, allocations: 4 kB / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.237e-06/0.4044, allocations: 0 / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.4044, allocations: 3.938 kB / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004008/0.4048, allocations: 172.8 kB / 1.065 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.141e-05/0.4049, allocations: 96.97 kB / 1.065 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.824e-05/0.4049, allocations: 4 kB / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.469e-05/0.405, allocations: 8.234 kB / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.094e-05/0.4051, allocations: 11.94 kB / 1.065 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.4051, allocations: 7.938 kB / 1.065 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001646/0.4053, allocations: 140.8 kB / 1.066 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4053, allocations: 0 / 1.066 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002765/0.4056, allocations: 35.91 kB / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (sta.fil.s[1],sta.fil.s[2]) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,y1.y,sta.y1_actual) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002287/0.4058, allocations: 103.2 kB / 1.066 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003525/0.4062, allocations: 175.3 kB / 1.066 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.4062, allocations: 4.062 kB / 1.066 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.4063, allocations: 31.94 kB / 1.066 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003598/0.4067, allocations: 33 kB / 1.066 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000706/0.4074, allocations: 326.2 kB / 1.066 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.4078, allocations: 0.7121 MB / 1.067 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.605e-05/0.4079, allocations: 16.88 kB / 1.067 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.432e-05/0.4079, allocations: 23.42 kB / 1.067 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of SimCode: time 4.91e-07/0.4079, allocations: 0 / 1.067 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of Templates: time 0.006563/0.4145, allocations: 1.829 MB / 1.069 GB, free: 10.77 MB / 0.8262 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/jenkins/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