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.001227/0.001227, 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.001495/0.001495, allocations: 195.1 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.378/1.378, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.929/2.929, allocations: 461.9 MB / 0.7342 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 67.2 kB / 0.8984 GB, free: 37.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.495/0.4964, allocations: 157.4 MB / 1.052 GB, free: 8.887 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart): time 0.003766/0.5002, allocations: 1.282 MB / 1.053 GB, free: 7.59 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004716/0.5008, allocations: 59.75 kB / 1.053 GB, free: 7.531 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.685e-05/0.5008, allocations: 0 / 1.053 GB, free: 7.531 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.763e-05/0.5009, allocations: 0 / 1.053 GB, free: 7.531 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002765/0.5012, allocations: 11.94 kB / 1.053 GB, free: 7.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002243/0.5015, allocations: 7.969 kB / 1.053 GB, free: 7.512 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000113/0.5016, allocations: 35.91 kB / 1.053 GB, free: 7.477 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.741e-05/0.5017, allocations: 0 / 1.053 GB, free: 7.477 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.053e-05/0.5017, allocations: 8 kB / 1.053 GB, free: 7.469 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001169/0.5018, allocations: 21.47 kB / 1.053 GB, free: 7.445 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.177e-05/0.5019, allocations: 3.938 kB / 1.053 GB, free: 7.441 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001029/0.502, allocations: 8 kB / 1.053 GB, free: 7.434 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001355/0.5021, allocations: 48.44 kB / 1.054 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.347e-05/0.5022, allocations: 39.69 kB / 1.054 GB, free: 7.348 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002176/0.5024, allocations: 63.94 kB / 1.054 GB, free: 7.285 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.5025, allocations: 0 / 1.054 GB, free: 7.285 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.495e-06/0.5025, allocations: 0 / 1.054 GB, free: 7.285 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.017e-06/0.5025, allocations: 0 / 1.054 GB, free: 7.285 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0007885/0.5033, allocations: 434.8 kB / 1.054 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 7.142e-05/0.5034, allocations: 8.031 kB / 1.054 GB, free: 6.805 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001323/0.5035, allocations: 84.12 kB / 1.054 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.5038, allocations: 274.7 kB / 1.054 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001025/0.5039, allocations: 150.6 kB / 1.055 GB, free: 6.266 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001166/0.504, allocations: 154.5 kB / 1.055 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001147/0.5042, allocations: 108.9 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.393e-05/0.5042, allocations: 83.28 kB / 1.055 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.293e-05/0.5043, allocations: 150.6 kB / 1.055 GB, free: 5.77 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.988e-05/0.5044, allocations: 150.6 kB / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.048e-05/0.5045, allocations: 154.6 kB / 1.055 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005718/0.5051, allocations: 0.4899 MB / 1.056 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001534/0.5052, allocations: 177.1 kB / 1.056 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.559e-05/0.5053, allocations: 80.14 kB / 1.056 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.651e-05/0.5054, allocations: 75.28 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.101e-05/0.5054, allocations: 105.8 kB / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=0): time 1.914e-06/0.5055, allocations: 3.938 kB / 1.056 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of matching and sorting (n=0): time 0.0001787/0.5056, allocations: 45.45 kB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.023e-05/0.5057, allocations: 130.7 kB / 1.056 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003466/0.5061, allocations: 227 kB / 1.057 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.953e-05/0.5061, allocations: 25.7 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.5062, allocations: 108.1 kB / 1.057 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.849e-06/0.5063, allocations: 0 / 1.057 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.847e-05/0.5063, allocations: 41.69 kB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001757/0.5065, allocations: 330.8 kB / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.5067, allocations: 51.97 kB / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.887e-05/0.5068, allocations: 59.95 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002195/0.507, allocations: 130.3 kB / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.507, allocations: 4 kB / 1.057 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005661/0.5076, allocations: 187.2 kB / 1.057 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.5076, allocations: 4 kB / 1.057 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.5076, allocations: 0 / 1.057 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.5076, allocations: 0 / 1.057 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.205e-06/0.5076, allocations: 0 / 1.057 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.5077, allocations: 4.062 kB / 1.058 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.925e-05/0.5077, allocations: 19.69 kB / 1.058 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.875e-05/0.5078, allocations: 7.938 kB / 1.058 GB, free: 3.066 MB / 0.8106 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.000193/0.508, allocations: 202.6 kB / 1.058 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.76e-05/0.5081, allocations: 112.8 kB / 1.058 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.521e-05/0.5082, allocations: 121.5 kB / 1.058 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.717e-05/0.5083, allocations: 188.3 kB / 1.058 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-05/0.5084, allocations: 180.2 kB / 1.058 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.57e-05/0.5085, allocations: 180.2 kB / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000328/0.5088, allocations: 441.1 kB / 1.059 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.482e-05/0.5088, allocations: 104.9 kB / 1.059 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.759e-05/0.5089, allocations: 101 kB / 1.059 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.298e-05/0.509, allocations: 188.4 kB / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.379e-05/0.5091, allocations: 188.3 kB / 1.059 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.894e-05/0.5092, allocations: 176.3 kB / 1.06 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.264e-05/0.5093, allocations: 188.2 kB / 1.06 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000203/0.5095, allocations: 319.6 kB / 1.06 GB, free: 272 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/0.5096, allocations: 189.9 kB / 1.06 GB, free: 56 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/0.5098, allocations: 180.2 kB / 1.06 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.5099, allocations: 108.9 kB / 1.061 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.51, allocations: 176.3 kB / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.172e-05/0.5101, allocations: 104.9 kB / 1.061 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001885/0.5103, allocations: 172.5 kB / 1.061 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.5103, allocations: 0 / 1.061 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003234/0.5106, allocations: 23.94 kB / 1.061 GB, free: 15.28 MB / 0.8262 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.00024/0.5108, allocations: 174.5 kB / 1.061 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001704/0.511, allocations: 75.95 kB / 1.061 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.511, allocations: 0 / 1.061 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.595e-06/0.511, allocations: 0 / 1.061 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005241/0.5116, allocations: 0.5302 MB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006179/0.5122, allocations: 323.8 kB / 1.062 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003855/0.5126, allocations: 0.7082 MB / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.105e-05/0.5126, allocations: 11.98 kB / 1.063 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.158e-05/0.5127, allocations: 7.438 kB / 1.063 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of SimCode: time 3.91e-07/0.5127, allocations: 4 kB / 1.063 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of Templates: time 0.003994/0.5167, allocations: 0.715 MB / 1.063 GB, free: 12.67 MB / 0.8262 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