Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.OBC.CDL.Reals.Validation.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|avg1.u1|avg1.u2|avg1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|avg1.u1|avg1.u2|avg1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006715/0.006715, allocations: 100 kB / 15.73 MB, free: 6.02 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.001521/0.001521, allocations: 187.4 kB / 16.67 MB, free: 5.934 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.484/1.484, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.582/2.582, allocations: 437 MB / 0.7105 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 63.91 kB / 1.019 GB, free: 9.336 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.072/1.073, allocations: 151.6 MB / 1.167 GB, free: 3.789 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Average): time 0.002678/1.076, allocations: 0.6978 MB / 1.167 GB, free: 3.098 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001347/1.077, allocations: 0.8079 MB / 1.168 GB, free: 2.277 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.084e-05/1.077, allocations: 0 / 1.168 GB, free: 2.277 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.585e-05/1.077, allocations: 3.938 kB / 1.168 GB, free: 2.273 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.788e-05/1.077, allocations: 3.938 kB / 1.168 GB, free: 2.27 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 8.052e-05/1.078, allocations: 11.98 kB / 1.168 GB, free: 2.258 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001011/1.078, allocations: 51.83 kB / 1.168 GB, free: 2.207 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/1.078, allocations: 8 kB / 1.168 GB, free: 2.199 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 9.961e-05/1.078, allocations: 19.92 kB / 1.168 GB, free: 2.18 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.48e-05/1.078, allocations: 19.92 kB / 1.168 GB, free: 2.16 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.786e-05/1.078, allocations: 4 kB / 1.168 GB, free: 2.156 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.175e-05/1.078, allocations: 4 kB / 1.168 GB, free: 2.152 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.567e-05/1.078, allocations: 11.92 kB / 1.168 GB, free: 2.141 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.952e-05/1.078, allocations: 19.92 kB / 1.168 GB, free: 2.121 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001283/1.078, allocations: 43.8 kB / 1.168 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/1.078, allocations: 0 / 1.168 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.304e-06/1.078, allocations: 0 / 1.168 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.177e-05/1.078, allocations: 0 / 1.168 GB, free: 2.078 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0006573/1.079, allocations: 371.8 kB / 1.169 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/1.079, allocations: 12.62 kB / 1.169 GB, free: 1.656 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.156e-05/1.079, allocations: 8.891 kB / 1.169 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/1.079, allocations: 168.4 kB / 1.169 GB, free: 1.445 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/1.079, allocations: 384 / 1.169 GB, free: 1.445 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.388e-05/1.079, allocations: 384 / 1.169 GB, free: 1.445 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002809/1.08, allocations: 74.16 kB / 1.169 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/1.08, allocations: 192 / 1.169 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.721e-05/1.08, allocations: 11.92 kB / 1.169 GB, free: 1.355 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/1.08, allocations: 0 / 1.169 GB, free: 1.355 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002697/1.08, allocations: 67.92 kB / 1.169 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004566/1.08, allocations: 268.9 kB / 1.169 GB, free: 0.9766 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002063/1.081, allocations: 58.42 kB / 1.169 GB, free: 0.9102 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001447/1.081, allocations: 43.34 kB / 1.169 GB, free: 0.8672 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.36e-05/1.081, allocations: 0 / 1.169 GB, free: 0.8672 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/1.081, allocations: 34.56 kB / 1.169 GB, free: 0.8242 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/1.081, allocations: 0 / 1.169 GB, free: 0.8242 MB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0005531/1.081, allocations: 133.5 kB / 1.17 GB, free: 0.6875 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/1.081, allocations: 51.41 kB / 1.17 GB, free: 0.625 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.956e-05/1.081, allocations: 110.1 kB / 1.17 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.459e-05/1.081, allocations: 25.7 kB / 1.17 GB, free: 488 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 5.015e-05/1.082, allocations: 88.14 kB / 1.17 GB, free: 396 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.681e-05/1.082, allocations: 15.84 kB / 1.17 GB, free: 380 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.974e-05/1.082, allocations: 17.66 kB / 1.17 GB, free: 356 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.000138/1.082, allocations: 318.8 kB / 1.17 GB, free: 28 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/1.082, allocations: 27.97 kB / 1.17 GB, free: 0 / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000145/1.082, allocations: 31.95 kB / 1.17 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002401/1.082, allocations: 68.8 kB / 1.17 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/1.082, allocations: 3.938 kB / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003041/1.083, allocations: 101.5 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/1.083, allocations: 6.5 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/1.083, allocations: 4 kB / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/1.083, allocations: 4 kB / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/1.083, allocations: 15.92 kB / 1.17 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.797e-06/1.083, allocations: 4.062 kB / 1.17 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.908e-05/1.083, allocations: 15.98 kB / 1.17 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.573e-06/1.083, allocations: 0 / 1.17 GB, free: 15.74 MB / 0.9044 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 (3): * Single equations (assignments): 3 * 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 prepare postOptimizeDAE: time 8.05e-05/1.083, allocations: 113.8 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.801e-05/1.083, allocations: 11.94 kB / 1.171 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.176e-05/1.083, allocations: 11.91 kB / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/1.083, allocations: 0 / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/1.083, allocations: 0 / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/1.083, allocations: 0 / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001755/1.083, allocations: 169.6 kB / 1.171 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/1.083, allocations: 0 / 1.171 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.765e-05/1.083, allocations: 15.97 kB / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/1.083, allocations: 4 kB / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/1.083, allocations: 0 / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/1.083, allocations: 4 kB / 1.171 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/1.083, allocations: 0 / 1.171 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003829/1.084, allocations: 199.7 kB / 1.171 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.823e-05/1.084, allocations: 81.06 kB / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.776e-05/1.084, allocations: 7.984 kB / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.912e-05/1.084, allocations: 11.98 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.027e-05/1.084, allocations: 4 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-06/1.084, allocations: 4 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.914e-05/1.084, allocations: 91.27 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.11e-07/1.084, allocations: 0 / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002171/1.084, allocations: 4 kB / 1.171 GB, free: 14.92 MB / 0.9044 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 (3): * Single equations (assignments): 3 * 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.0001519/1.085, allocations: 103.2 kB / 1.171 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003189/1.085, allocations: 71.92 kB / 1.171 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/1.085, allocations: 0 / 1.171 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001602/1.085, allocations: 43.89 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/1.085, allocations: 7.938 kB / 1.171 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003572/1.086, allocations: 125.4 kB / 1.171 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002843/1.086, allocations: 0.6846 MB / 1.172 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.372e-05/1.086, allocations: 0 / 1.172 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.161e-05/1.086, allocations: 11.44 kB / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of SimCode: time 7.12e-07/1.086, allocations: 0 / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of Templates: time 0.003239/1.089, allocations: 0.6858 MB / 1.173 GB, free: 13.14 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches