Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_9_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.001196/0.001196, allocations: 104.9 kB / 16.27 MB, free: 6.402 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.001332/0.001332, allocations: 191.5 kB / 17.2 MB, free: 5.969 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.325/1.325, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.282/2.282, allocations: 390.3 MB / 0.6653 GB, free: 0.7773 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 67.12 kB / 0.8132 GB, free: 33.12 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3315, allocations: 140.4 MB / 0.9503 GB, free: 8.934 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.004121/0.3357, allocations: 1.54 MB / 0.9518 GB, free: 7.379 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0004118/0.3362, allocations: 108.5 kB / 0.9519 GB, free: 7.27 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.033e-05/0.3363, allocations: 4 kB / 0.9519 GB, free: 7.266 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001473/0.3364, allocations: 7.938 kB / 0.9519 GB, free: 7.258 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.727e-05/0.3365, allocations: 11.86 kB / 0.9519 GB, free: 7.246 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003078/0.3368, allocations: 27.97 kB / 0.9519 GB, free: 7.219 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001303/0.3369, allocations: 59.77 kB / 0.952 GB, free: 7.16 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001608/0.3371, allocations: 27.97 kB / 0.952 GB, free: 7.133 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.87e-05/0.3372, allocations: 23.92 kB / 0.952 GB, free: 7.109 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.776e-05/0.3373, allocations: 27.91 kB / 0.9521 GB, free: 7.082 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.305e-05/0.3373, allocations: 8 kB / 0.9521 GB, free: 7.074 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.682e-05/0.3374, allocations: 12 kB / 0.9521 GB, free: 7.062 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.519e-05/0.3375, allocations: 15.92 kB / 0.9521 GB, free: 7.047 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.932e-05/0.3375, allocations: 23.86 kB / 0.9521 GB, free: 7.023 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001651/0.3377, allocations: 59.8 kB / 0.9522 GB, free: 6.965 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.3377, allocations: 0 / 0.9522 GB, free: 6.965 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.803e-06/0.3377, allocations: 4 kB / 0.9522 GB, free: 6.961 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.644e-06/0.3377, allocations: 0 / 0.9522 GB, free: 6.961 MB / 0.7325 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.0006891/0.3384, allocations: 383.5 kB / 0.9525 GB, free: 6.535 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.3385, allocations: 8.031 kB / 0.9525 GB, free: 6.527 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.824e-05/0.3385, allocations: 8.875 kB / 0.9526 GB, free: 6.52 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002108/0.3388, allocations: 188.2 kB / 0.9527 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.3388, allocations: 384 / 0.9527 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.864e-05/0.3388, allocations: 8.312 kB / 0.9527 GB, free: 6.289 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003684/0.3392, allocations: 86.2 kB / 0.9528 GB, free: 6.199 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.3392, allocations: 192 / 0.9528 GB, free: 6.199 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.3392, allocations: 7.938 kB / 0.9528 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.3393, allocations: 0 / 0.9528 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003703/0.3396, allocations: 83.91 kB / 0.9529 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005602/0.3402, allocations: 328.6 kB / 0.9532 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002157/0.3404, allocations: 58.53 kB / 0.9533 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.3406, allocations: 44.91 kB / 0.9533 GB, free: 5.625 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.957e-05/0.3407, allocations: 4 kB / 0.9533 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.3407, allocations: 38.59 kB / 0.9534 GB, free: 5.574 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.3407, allocations: 0 / 0.9534 GB, free: 5.574 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0005621/0.3413, allocations: 133.5 kB / 0.9535 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.3413, allocations: 51.41 kB / 0.9535 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.736e-05/0.3414, allocations: 125.8 kB / 0.9537 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/0.3414, allocations: 25.7 kB / 0.9537 GB, free: 5.211 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.547e-05/0.3415, allocations: 96.06 kB / 0.9538 GB, free: 5.113 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.3415, allocations: 11.81 kB / 0.9538 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.95e-05/0.3416, allocations: 17.7 kB / 0.9538 GB, free: 5.078 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.3417, allocations: 318.8 kB / 0.9541 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001542/0.3419, allocations: 39.95 kB / 0.9541 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/0.342, allocations: 32.09 kB / 0.9542 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002778/0.3423, allocations: 76.86 kB / 0.9543 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3423, allocations: 0 / 0.9543 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003513/0.3427, allocations: 109.6 kB / 0.9544 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.3427, allocations: 4 kB / 0.9544 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.3427, allocations: 0 / 0.9544 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.3427, allocations: 0 / 0.9544 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.3428, allocations: 15.98 kB / 0.9544 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.3429, allocations: 0 / 0.9544 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.124e-05/0.3429, allocations: 19.91 kB / 0.9544 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.488e-05/0.343, allocations: 4 kB / 0.9544 GB, free: 4.453 MB / 0.7325 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 0.00012/0.3431, allocations: 121.7 kB / 0.9545 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.911e-05/0.3431, allocations: 11.84 kB / 0.9545 GB, free: 4.312 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003877/0.3435, allocations: 109.5 kB / 0.9546 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.3435, allocations: 0 / 0.9546 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.3436, allocations: 4 kB / 0.9546 GB, free: 4.188 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.3436, allocations: 4 kB / 0.9546 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001864/0.3438, allocations: 181.6 kB / 0.9548 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3438, allocations: 0 / 0.9548 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.377e-05/0.3439, allocations: 15.98 kB / 0.9548 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.3439, allocations: 4 kB / 0.9548 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.217e-06/0.3439, allocations: 0 / 0.9548 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3439, allocations: 0 / 0.9548 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3439, allocations: 0 / 0.9548 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003878/0.3443, allocations: 211.2 kB / 0.955 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.056e-05/0.3444, allocations: 77.11 kB / 0.9551 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.799e-05/0.3444, allocations: 7.984 kB / 0.9551 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.3445, allocations: 7.984 kB / 0.9551 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.982e-05/0.3445, allocations: 4 kB / 0.9551 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.101e-06/0.3445, allocations: 4 kB / 0.9551 GB, free: 3.598 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.958e-05/0.3446, allocations: 91.27 kB / 0.9552 GB, free: 3.508 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3446, allocations: 0 / 0.9552 GB, free: 3.508 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002275/0.3449, allocations: 19.94 kB / 0.9552 GB, free: 3.488 MB / 0.7325 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.0001502/0.345, allocations: 103.2 kB / 0.9553 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003513/0.3454, allocations: 79.86 kB / 0.9554 GB, free: 3.301 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3454, allocations: 0 / 0.9554 GB, free: 3.301 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001528/0.3455, allocations: 39.95 kB / 0.9554 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003047/0.3459, allocations: 10.03 kB / 0.9555 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003802/0.3462, allocations: 175.2 kB / 0.9556 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.3466, allocations: 0.6961 MB / 0.9563 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.245e-05/0.3466, allocations: 15.38 kB / 0.9563 GB, free: 2.312 MB / 0.7325 GB Notification: Performance of SimCode: time 3.01e-07/0.3466, allocations: 0 / 0.9563 GB, free: 2.312 MB / 0.7325 GB Notification: Performance of Templates: time 0.003124/0.3497, allocations: 0.9383 MB / 0.9572 GB, free: 1.379 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches