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.001147/0.001147, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001154/0.001154, allocations: 201.6 kB / 16.14 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.46/1.46, allocations: 222.9 MB / 239.8 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.855/2.855, allocations: 461.9 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001295, allocations: 60.45 kB / 0.8984 GB, free: 37.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3917/0.3931, allocations: 157.4 MB / 1.052 GB, free: 8.828 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003424/0.3965, allocations: 1.827 MB / 1.054 GB, free: 6.984 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00155/0.3981, allocations: 0.8377 MB / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.3982, allocations: 11.94 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001566/0.3984, allocations: 11.92 kB / 1.055 GB, free: 6.117 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002516/0.3987, allocations: 31.78 kB / 1.055 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004131/0.3991, allocations: 134.8 kB / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002402/0.3993, allocations: 195.5 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.3995, allocations: 41.38 kB / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001307/0.3996, allocations: 67.75 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.3998, allocations: 75.67 kB / 1.055 GB, free: 5.586 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.38e-05/0.3998, allocations: 11.94 kB / 1.055 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.557e-05/0.3999, allocations: 15.98 kB / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.003e-05/0.4, allocations: 27.91 kB / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.332e-05/0.4001, allocations: 67.66 kB / 1.055 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002422/0.4003, allocations: 191.7 kB / 1.056 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.4003, allocations: 0 / 1.056 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.006e-06/0.4003, allocations: 4 kB / 1.056 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.971e-06/0.4004, allocations: 0 / 1.056 GB, free: 5.273 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.0009438/0.4013, allocations: 476.5 kB / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.4014, allocations: 12.03 kB / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.288e-05/0.4014, allocations: 12.84 kB / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003573/0.4018, allocations: 245.4 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.4018, allocations: 8.375 kB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.944e-05/0.4019, allocations: 8.375 kB / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001801/0.4021, allocations: 105.2 kB / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.4021, allocations: 0 / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.433e-05/0.4021, allocations: 0 / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.403e-05/0.4021, allocations: 4 kB / 1.056 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001354/0.4023, allocations: 59.95 kB / 1.056 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000649/0.4029, allocations: 444.5 kB / 1.057 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001623/0.4031, allocations: 82.62 kB / 1.057 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.334e-05/0.4032, allocations: 28.84 kB / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.295e-06/0.4032, allocations: 4 kB / 1.057 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001475/0.4033, allocations: 87.47 kB / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.323e-06/0.4033, allocations: 0 / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002979/0.4036, allocations: 133.7 kB / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.492e-05/0.4037, allocations: 59.39 kB / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002055/0.4039, allocations: 184 kB / 1.057 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.944e-05/0.4039, allocations: 29.8 kB / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.199e-05/0.404, allocations: 120 kB / 1.058 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.014e-05/0.4041, allocations: 27.64 kB / 1.058 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.68e-05/0.4042, allocations: 41.61 kB / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001121/0.4043, allocations: 326.8 kB / 1.058 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.4044, allocations: 47.97 kB / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001243/0.4045, allocations: 74.55 kB / 1.058 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001782/0.4047, allocations: 132.2 kB / 1.058 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4047, allocations: 4 kB / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003443/0.4051, allocations: 207.2 kB / 1.058 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.643e-05/0.4051, allocations: 33.7 kB / 1.058 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.4051, allocations: 7.984 kB / 1.058 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.4051, allocations: 0 / 1.058 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001605/0.4053, allocations: 27.92 kB / 1.058 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.4053, allocations: 8 kB / 1.058 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002411/0.4056, allocations: 39.88 kB / 1.059 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.248e-05/0.4056, allocations: 7.984 kB / 1.059 GB, free: 1.984 MB / 0.8106 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.0001096/0.4057, allocations: 127.4 kB / 1.059 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.988e-05/0.4057, allocations: 7.906 kB / 1.059 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.128e-05/0.4058, allocations: 21.39 kB / 1.059 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.4058, allocations: 0 / 1.059 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.4058, allocations: 7.938 kB / 1.059 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.4058, allocations: 0 / 1.059 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001862/0.406, allocations: 225.6 kB / 1.059 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.406, allocations: 4 kB / 1.059 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.741e-05/0.4061, allocations: 11.92 kB / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.167e-06/0.4061, allocations: 4 kB / 1.059 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.4061, allocations: 0 / 1.059 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.4061, allocations: 0 / 1.059 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.4061, allocations: 3.938 kB / 1.059 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002618/0.4064, allocations: 172.8 kB / 1.059 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.771e-05/0.4065, allocations: 105.1 kB / 1.059 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.647e-05/0.4065, allocations: 4 kB / 1.059 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.168e-05/0.4066, allocations: 7.922 kB / 1.059 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.193e-05/0.4067, allocations: 7.938 kB / 1.059 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.4067, allocations: 11.94 kB / 1.059 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000139/0.4068, allocations: 131.9 kB / 1.059 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4068, allocations: 0 / 1.059 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002359/0.4071, allocations: 32.06 kB / 1.059 GB, free: 1.02 MB / 0.8106 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.0001541/0.4072, allocations: 113.9 kB / 1.059 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002877/0.4075, allocations: 167.3 kB / 1.06 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4075, allocations: 0 / 1.06 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 7.259e-05/0.4076, allocations: 39.92 kB / 1.06 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/0.4079, allocations: 30.05 kB / 1.06 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005234/0.4085, allocations: 319.2 kB / 1.06 GB, free: 332 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002702/0.4087, allocations: 0.72 MB / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.394e-05/0.4088, allocations: 12.88 kB / 1.061 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.68e-05/0.4089, allocations: 15.44 kB / 1.061 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.4089, allocations: 0 / 1.061 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of Templates: time 0.004911/0.4138, allocations: 1.847 MB / 1.063 GB, free: 13.72 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