Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.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 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.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001264/0.001264, allocations: 198.1 kB / 16.14 MB, free: 6.719 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.407/1.407, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.012/3.012, allocations: 461.9 MB / 0.7342 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 69.22 kB / 0.8984 GB, free: 37.22 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3404/0.3416, allocations: 157.4 MB / 1.052 GB, free: 8.895 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002893/0.3446, allocations: 1.592 MB / 1.054 GB, free: 7.285 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003362/0.3449, allocations: 115.7 kB / 1.054 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.877e-05/0.345, allocations: 0 / 1.054 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001141/0.3451, allocations: 7.922 kB / 1.054 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.753e-05/0.3451, allocations: 11.88 kB / 1.054 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001727/0.3453, allocations: 27.92 kB / 1.054 GB, free: 7.125 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.585e-05/0.3454, allocations: 47.84 kB / 1.054 GB, free: 7.078 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.3455, allocations: 31.89 kB / 1.054 GB, free: 7.047 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.028e-05/0.3456, allocations: 27.91 kB / 1.054 GB, free: 7.02 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.48e-05/0.3457, allocations: 27.84 kB / 1.054 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.575e-05/0.3457, allocations: 0 / 1.054 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.392e-05/0.3457, allocations: 12 kB / 1.054 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.052e-05/0.3458, allocations: 11.98 kB / 1.054 GB, free: 6.969 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.774e-05/0.3458, allocations: 31.8 kB / 1.054 GB, free: 6.938 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001025/0.3459, allocations: 47.86 kB / 1.054 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.346, allocations: 0 / 1.054 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.92e-07/0.346, allocations: 0 / 1.054 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.346, allocations: 4 kB / 1.054 GB, free: 6.887 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005443/0.3465, allocations: 383.5 kB / 1.054 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.3466, allocations: 8.031 kB / 1.054 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.056e-05/0.3466, allocations: 8.875 kB / 1.054 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/0.3468, allocations: 192.2 kB / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.3468, allocations: 384 / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.547e-05/0.3469, allocations: 4.375 kB / 1.055 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003057/0.3472, allocations: 86.2 kB / 1.055 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.3472, allocations: 192 / 1.055 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.3472, allocations: 3.938 kB / 1.055 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.3472, allocations: 0 / 1.055 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003335/0.3476, allocations: 87.84 kB / 1.055 GB, free: 6.035 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005803/0.3481, allocations: 320.7 kB / 1.055 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002268/0.3484, allocations: 66.56 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.3485, allocations: 44.92 kB / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.364e-05/0.3486, allocations: 4 kB / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.453e-05/0.3486, allocations: 34.55 kB / 1.055 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.3486, allocations: 0 / 1.055 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.000585/0.3492, allocations: 141.4 kB / 1.055 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.3493, allocations: 51.41 kB / 1.055 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.3494, allocations: 125.6 kB / 1.056 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.643e-05/0.3494, allocations: 25.7 kB / 1.056 GB, free: 5.133 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.494e-05/0.3495, allocations: 96.06 kB / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.448e-05/0.3495, allocations: 15.81 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.658e-05/0.3496, allocations: 17.66 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001648/0.3497, allocations: 322.8 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.3499, allocations: 31.97 kB / 1.056 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.35, allocations: 31.95 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002745/0.3503, allocations: 77.06 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.3503, allocations: 0 / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003431/0.3507, allocations: 105.5 kB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.3507, allocations: 13.08 kB / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.3507, allocations: 4 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.3508, allocations: 0 / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.3509, allocations: 15.98 kB / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.3509, allocations: 0 / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.8e-05/0.351, allocations: 7.984 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.05e-05/0.351, allocations: 4 kB / 1.056 GB, free: 4.379 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 (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 9.298e-05/0.3511, allocations: 121.8 kB / 1.056 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.678e-05/0.3511, allocations: 7.906 kB / 1.056 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003729/0.3515, allocations: 109.5 kB / 1.056 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.3515, allocations: 0 / 1.056 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.3515, allocations: 3.938 kB / 1.056 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.3515, allocations: 3.984 kB / 1.056 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001756/0.3517, allocations: 181.6 kB / 1.057 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3517, allocations: 0 / 1.057 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.489e-05/0.3518, allocations: 23.97 kB / 1.057 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3518, allocations: 0 / 1.057 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.3519, allocations: 4 kB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.3519, allocations: 0 / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3519, allocations: 0 / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003603/0.3522, allocations: 207.3 kB / 1.057 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.598e-05/0.3523, allocations: 77.11 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/0.3523, allocations: 3.938 kB / 1.057 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.3524, allocations: 11.98 kB / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.272e-05/0.3525, allocations: 11.98 kB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.3525, allocations: 0 / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.51e-05/0.3525, allocations: 91.27 kB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3525, allocations: 3.938 kB / 1.057 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002252/0.3528, allocations: 19.84 kB / 1.057 GB, free: 3.41 MB / 0.8106 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.000121/0.3529, allocations: 107.2 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003704/0.3533, allocations: 75.91 kB / 1.057 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3533, allocations: 0 / 1.057 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.00016/0.3535, allocations: 39.97 kB / 1.057 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003606/0.3538, allocations: 7.938 kB / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003886/0.3542, allocations: 171.2 kB / 1.057 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002946/0.3545, allocations: 0.6926 MB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.334e-05/0.3546, allocations: 4 kB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.295e-05/0.3546, allocations: 11.42 kB / 1.058 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of SimCode: time 3.31e-07/0.3546, allocations: 7.938 kB / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of Templates: time 0.002749/0.3574, allocations: 0.6388 MB / 1.059 GB, free: 1.605 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches