Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.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.Controls.Predictors.BaseClasses.Examples.SampleStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samSta.1.|samSta.2.|samSta.3.|samSta.4.|samSta.5.|samSta.6.|samSta.7.|samSta.8.|samSta.9.|samSta.10.|samSta.11.|samSta.12.|samSta.13.|samSta.14.|samSta.15.|samSta.16.|samSta.17.|samSta.18.|samSta.19.|samSta.20.|samSta.21.",fileNamePrefix="Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart") translateModel(Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samSta.1.|samSta.2.|samSta.3.|samSta.4.|samSta.5.|samSta.6.|samSta.7.|samSta.8.|samSta.9.|samSta.10.|samSta.11.|samSta.12.|samSta.13.|samSta.14.|samSta.15.|samSta.16.|samSta.17.|samSta.18.|samSta.19.|samSta.20.|samSta.21.",fileNamePrefix="Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009078/0.009078, allocations: 99.45 kB / 15.73 MB, free: 6.043 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.001524/0.001524, allocations: 185.6 kB / 16.67 MB, free: 5.977 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.526/1.526, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.056/3.056, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 67.89 kB / 1.054 GB, free: 7.188 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.497/0.4982, allocations: 157.4 MB / 1.208 GB, free: 9.684 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart): time 0.00261/0.5009, allocations: 1.204 MB / 1.209 GB, free: 8.465 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0003039/0.5012, allocations: 63.7 kB / 1.209 GB, free: 8.402 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.363e-05/0.5013, allocations: 0 / 1.209 GB, free: 8.402 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.358e-05/0.5013, allocations: 0 / 1.209 GB, free: 8.402 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001314/0.5015, allocations: 11.97 kB / 1.209 GB, free: 8.391 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001903/0.5017, allocations: 11.88 kB / 1.209 GB, free: 8.379 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.764e-05/0.5018, allocations: 19.98 kB / 1.209 GB, free: 8.359 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 6.333e-05/0.5019, allocations: 3.984 kB / 1.209 GB, free: 8.355 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.688e-05/0.5019, allocations: 7.938 kB / 1.209 GB, free: 8.348 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.397e-05/0.502, allocations: 8.734 kB / 1.209 GB, free: 8.336 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.858e-05/0.502, allocations: 0 / 1.209 GB, free: 8.336 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.459e-05/0.5021, allocations: 11.94 kB / 1.209 GB, free: 8.324 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.5022, allocations: 48.44 kB / 1.209 GB, free: 8.277 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.498e-05/0.5023, allocations: 47.67 kB / 1.209 GB, free: 8.23 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001399/0.5024, allocations: 63.66 kB / 1.209 GB, free: 8.168 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.5024, allocations: 4 kB / 1.209 GB, free: 8.164 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.134e-06/0.5024, allocations: 4 kB / 1.209 GB, free: 8.16 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.063e-06/0.5024, allocations: 0 / 1.209 GB, free: 8.16 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.000488/0.5029, allocations: 422.8 kB / 1.21 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.503, allocations: 8.625 kB / 1.21 GB, free: 7.691 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.514e-05/0.5031, allocations: 88.03 kB / 1.21 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000202/0.5033, allocations: 267.3 kB / 1.21 GB, free: 7.305 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.286e-05/0.5034, allocations: 158.7 kB / 1.21 GB, free: 7.148 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.621e-05/0.5034, allocations: 158.6 kB / 1.21 GB, free: 6.992 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.022e-05/0.5035, allocations: 104.9 kB / 1.21 GB, free: 6.883 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.719e-05/0.5036, allocations: 79.22 kB / 1.21 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.684e-05/0.5036, allocations: 150.6 kB / 1.211 GB, free: 6.656 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.317e-05/0.5037, allocations: 150.6 kB / 1.211 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.202e-05/0.5038, allocations: 154.6 kB / 1.211 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003644/0.5042, allocations: 497.8 kB / 1.211 GB, free: 5.82 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 8.522e-05/0.5042, allocations: 173 kB / 1.211 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.528e-05/0.5043, allocations: 80.14 kB / 1.212 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.952e-05/0.5043, allocations: 79.28 kB / 1.212 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.874e-05/0.5044, allocations: 109.8 kB / 1.212 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=0): time 7.01e-07/0.5044, allocations: 0 / 1.212 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of matching and sorting (n=0): time 9.089e-05/0.5045, allocations: 41.52 kB / 1.212 GB, free: 5.316 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.753e-05/0.5046, allocations: 126.7 kB / 1.212 GB, free: 5.18 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002418/0.5048, allocations: 230.9 kB / 1.212 GB, free: 4.945 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.5048, allocations: 25.7 kB / 1.212 GB, free: 4.914 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.389e-05/0.5049, allocations: 116 kB / 1.212 GB, free: 4.797 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.025e-06/0.5049, allocations: 0 / 1.212 GB, free: 4.797 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.619e-05/0.505, allocations: 37.69 kB / 1.212 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001412/0.5051, allocations: 330.8 kB / 1.213 GB, free: 4.422 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.5052, allocations: 59.89 kB / 1.213 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.246e-05/0.5053, allocations: 54.41 kB / 1.213 GB, free: 4.312 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001743/0.5055, allocations: 136.8 kB / 1.213 GB, free: 4.176 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.5055, allocations: 0 / 1.213 GB, free: 4.176 MB / 0.9669 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003336/0.5059, allocations: 187.4 kB / 1.213 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.5059, allocations: 4 kB / 1.213 GB, free: 3.984 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.5059, allocations: 0 / 1.213 GB, free: 3.984 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.5059, allocations: 4 kB / 1.213 GB, free: 3.98 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.222e-06/0.5059, allocations: 3.938 kB / 1.213 GB, free: 3.977 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.5059, allocations: 0 / 1.213 GB, free: 3.977 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.342e-05/0.506, allocations: 19.78 kB / 1.213 GB, free: 3.957 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.063e-05/0.506, allocations: 4 kB / 1.213 GB, free: 3.953 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 1 * Algorithm blocks: 0 * 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.0001333/0.5061, allocations: 205.1 kB / 1.213 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.266e-05/0.5062, allocations: 120.8 kB / 1.213 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.06e-05/0.5063, allocations: 117.5 kB / 1.213 GB, free: 3.5 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.659e-05/0.5064, allocations: 180.2 kB / 1.214 GB, free: 3.316 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.647e-05/0.5065, allocations: 176.3 kB / 1.214 GB, free: 3.137 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.245e-05/0.5065, allocations: 184.2 kB / 1.214 GB, free: 2.949 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002717/0.5068, allocations: 449.6 kB / 1.214 GB, free: 2.453 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-05/0.5069, allocations: 112.9 kB / 1.215 GB, free: 2.336 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.584e-05/0.5069, allocations: 101 kB / 1.215 GB, free: 2.23 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.058e-05/0.507, allocations: 176.3 kB / 1.215 GB, free: 2.051 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.994e-05/0.5071, allocations: 184.4 kB / 1.215 GB, free: 1.863 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.107e-05/0.5071, allocations: 180.3 kB / 1.215 GB, free: 1.68 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.308e-05/0.5072, allocations: 188.2 kB / 1.215 GB, free: 1.488 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001463/0.5073, allocations: 315.6 kB / 1.216 GB, free: 1.156 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 8.012e-05/0.5074, allocations: 189.9 kB / 1.216 GB, free: 0.9453 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.797e-05/0.5075, allocations: 180.3 kB / 1.216 GB, free: 0.7617 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.363e-05/0.5076, allocations: 108.9 kB / 1.216 GB, free: 0.6484 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.471e-05/0.5077, allocations: 180.3 kB / 1.216 GB, free: 476 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.67e-05/0.5077, allocations: 105 kB / 1.216 GB, free: 364 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001239/0.5079, allocations: 160.6 kB / 1.216 GB, free: 204 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.61e-07/0.5079, allocations: 0 / 1.216 GB, free: 204 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002537/0.5081, allocations: 20 kB / 1.217 GB, free: 184 kB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.00022/0.5084, allocations: 186.5 kB / 1.217 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001639/0.5085, allocations: 79.84 kB / 1.217 GB, free: 15.91 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.5085, allocations: 0 / 1.217 GB, free: 15.91 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.664e-06/0.5086, allocations: 0 / 1.217 GB, free: 15.91 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004091/0.509, allocations: 459.6 kB / 1.217 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005046/0.5095, allocations: 308.1 kB / 1.217 GB, free: 15.12 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003243/0.5098, allocations: 0.7119 MB / 1.218 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.344e-05/0.5098, allocations: 11.92 kB / 1.218 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.139e-05/0.5099, allocations: 11.44 kB / 1.218 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of SimCode: time 2.01e-07/0.5099, allocations: 0 / 1.218 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of Templates: time 0.003926/0.5138, allocations: 0.7578 MB / 1.219 GB, free: 13.61 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.makefile (rm -f Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.pipe ; mkfifo Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.pipe >> ../files/Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.sim & ./Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Predictors_BaseClasses_Examples_SampleStart.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches