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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0007182/0.0007183, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 184 kB / 16.92 MB, free: 6.684 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.343/1.343, allocations: 223.3 MB / 241 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.813/2.813, allocations: 462.7 MB / 0.7371 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003877/0.0003876, allocations: 9.5 kB / 0.9034 GB, free: 36.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3427, allocations: 159.6 MB / 1.059 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.0018/0.3445, allocations: 1.257 MB / 1.061 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003962/0.3449, allocations: 107.7 kB / 1.061 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.22e-05/0.345, allocations: 0 / 1.061 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001254/0.3451, allocations: 11.92 kB / 1.061 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.019e-05/0.3452, allocations: 11.94 kB / 1.061 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002252/0.3454, allocations: 23.98 kB / 1.061 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.478e-05/0.3455, allocations: 51.78 kB / 1.061 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.3456, allocations: 27.88 kB / 1.061 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.302e-05/0.3457, allocations: 19.92 kB / 1.061 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.794e-05/0.3458, allocations: 27.91 kB / 1.061 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.849e-05/0.3458, allocations: 4 kB / 1.061 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.235e-05/0.3459, allocations: 8 kB / 1.061 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.338e-05/0.3459, allocations: 11.92 kB / 1.061 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.438e-05/0.346, allocations: 49.56 kB / 1.061 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001001/0.3461, allocations: 35.92 kB / 1.061 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3461, allocations: 0 / 1.061 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.596e-06/0.3461, allocations: 0 / 1.061 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.529e-06/0.3461, allocations: 7.938 kB / 1.061 GB, free: 3.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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005427/0.3467, allocations: 383.6 kB / 1.061 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.3467, allocations: 11.97 kB / 1.061 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.898e-05/0.3468, allocations: 8.844 kB / 1.061 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.347, allocations: 180.2 kB / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.347, allocations: 8.375 kB / 1.061 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/0.347, allocations: 384 / 1.061 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003128/0.3473, allocations: 98.2 kB / 1.062 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.3473, allocations: 192 / 1.062 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/0.3474, allocations: 11.88 kB / 1.062 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.3474, allocations: 3.938 kB / 1.062 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003481/0.3477, allocations: 103.9 kB / 1.062 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005602/0.3483, allocations: 332.8 kB / 1.062 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002292/0.3485, allocations: 78.47 kB / 1.062 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001762/0.3487, allocations: 52.91 kB / 1.062 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.137e-05/0.3488, allocations: 4 kB / 1.062 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.57e-05/0.3488, allocations: 34.56 kB / 1.062 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.362e-06/0.3488, allocations: 0 / 1.062 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0006159/0.3494, allocations: 169.5 kB / 1.062 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.128e-05/0.3495, allocations: 55.41 kB / 1.062 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.049e-05/0.3496, allocations: 126 kB / 1.063 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.3496, allocations: 25.7 kB / 1.063 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.168e-05/0.3497, allocations: 95.98 kB / 1.063 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.899e-05/0.3497, allocations: 3.906 kB / 1.063 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.892e-05/0.3497, allocations: 13.72 kB / 1.063 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001028/0.3498, allocations: 322.8 kB / 1.063 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001915/0.35, allocations: 43.97 kB / 1.063 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.3502, allocations: 47.95 kB / 1.063 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003076/0.3505, allocations: 97.06 kB / 1.063 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3505, allocations: 0 / 1.063 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003683/0.3509, allocations: 137.4 kB / 1.063 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.3509, allocations: 5.719 kB / 1.063 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.3509, allocations: 0 / 1.063 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.3509, allocations: 0 / 1.063 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.3511, allocations: 19.98 kB / 1.063 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.3511, allocations: 0 / 1.063 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.074e-05/0.3512, allocations: 23.97 kB / 1.063 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.242e-05/0.3512, allocations: 4 kB / 1.063 GB, free: 0.6094 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.022e-05/0.3513, allocations: 117.8 kB / 1.063 GB, free: 496 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.773e-05/0.3514, allocations: 3.906 kB / 1.063 GB, free: 492 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004318/0.3518, allocations: 141.4 kB / 1.064 GB, free: 340 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.3518, allocations: 0 / 1.064 GB, free: 340 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3518, allocations: 0 / 1.064 GB, free: 340 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.3518, allocations: 8 kB / 1.064 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001714/0.352, allocations: 185.6 kB / 1.064 GB, free: 96 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.352, allocations: 0 / 1.064 GB, free: 96 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001055/0.3521, allocations: 19.98 kB / 1.064 GB, free: 76 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.3521, allocations: 0 / 1.064 GB, free: 76 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.3522, allocations: 4 kB / 1.064 GB, free: 72 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.3522, allocations: 0 / 1.064 GB, free: 72 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3522, allocations: 3.938 kB / 1.064 GB, free: 68 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004311/0.3526, allocations: 227.4 kB / 1.064 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.985e-05/0.3527, allocations: 84.95 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.384e-05/0.3527, allocations: 0 / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.3528, allocations: 19.97 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.052e-05/0.3529, allocations: 8 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.916e-06/0.3529, allocations: 0 / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.436e-05/0.3529, allocations: 103.2 kB / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3529, allocations: 0 / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002414/0.3532, allocations: 15.94 kB / 1.064 GB, free: 15.58 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 (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.0001608/0.3533, allocations: 103.2 kB / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003889/0.3537, allocations: 95.92 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3538, allocations: 0 / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001755/0.3539, allocations: 55.95 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.3543, allocations: 4 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003754/0.3546, allocations: 194.6 kB / 1.065 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.3549, allocations: 0.6926 MB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.546e-05/0.355, allocations: 11.44 kB / 1.065 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.355, allocations: 0 / 1.065 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of Templates: time 0.002425/0.3574, allocations: 0.9192 MB / 1.066 GB, free: 13.45 MB / 0.8262 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches