Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_10_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.00134/0.00134, allocations: 112.6 kB / 16.37 MB, free: 6 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.001438/0.001438, allocations: 196 kB / 17.31 MB, free: 5.613 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.189/1.189, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.187/2.187, allocations: 437.1 MB / 0.7112 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 64.88 kB / 0.8707 GB, free: 1.453 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.254, allocations: 151.6 MB / 1.019 GB, free: 9.871 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002275/0.2563, allocations: 1.538 MB / 1.02 GB, free: 8.316 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0002727/0.2566, allocations: 116.5 kB / 1.02 GB, free: 8.199 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.166e-05/0.2567, allocations: 3.938 kB / 1.02 GB, free: 8.195 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001121/0.2568, allocations: 7.875 kB / 1.02 GB, free: 8.188 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 2.451e-05/0.2568, allocations: 11.92 kB / 1.02 GB, free: 8.176 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002148/0.2571, allocations: 23.97 kB / 1.02 GB, free: 8.152 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 9.432e-05/0.2572, allocations: 59.83 kB / 1.02 GB, free: 8.094 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.2573, allocations: 23.89 kB / 1.021 GB, free: 8.07 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 5.191e-05/0.2573, allocations: 23.92 kB / 1.021 GB, free: 8.047 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.759e-05/0.2574, allocations: 31.84 kB / 1.021 GB, free: 8.016 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.583e-05/0.2574, allocations: 4 kB / 1.021 GB, free: 8.012 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 5.723e-05/0.2575, allocations: 16 kB / 1.021 GB, free: 7.996 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.775e-05/0.2575, allocations: 11.98 kB / 1.021 GB, free: 7.984 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.266e-05/0.2576, allocations: 35.78 kB / 1.021 GB, free: 7.949 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001186/0.2577, allocations: 59.75 kB / 1.021 GB, free: 7.891 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.2577, allocations: 0 / 1.021 GB, free: 7.891 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2577, allocations: 0 / 1.021 GB, free: 7.891 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.2577, allocations: 0 / 1.021 GB, free: 7.891 MB / 0.795 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.0004366/0.2582, allocations: 379.2 kB / 1.021 GB, free: 7.469 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 2.811e-05/0.2582, allocations: 16.92 kB / 1.021 GB, free: 7.453 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.455e-05/0.2582, allocations: 0.9375 kB / 1.021 GB, free: 7.453 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001366/0.2584, allocations: 184.2 kB / 1.021 GB, free: 7.234 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.003e-06/0.2584, allocations: 4.375 kB / 1.021 GB, free: 7.23 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.222e-05/0.2584, allocations: 384 / 1.021 GB, free: 7.23 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002361/0.2586, allocations: 94.12 kB / 1.021 GB, free: 7.133 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.061e-06/0.2586, allocations: 192 / 1.021 GB, free: 7.133 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.2587, allocations: 7.938 kB / 1.021 GB, free: 7.125 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.2587, allocations: 7.938 kB / 1.021 GB, free: 7.117 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002549/0.2589, allocations: 75.92 kB / 1.021 GB, free: 7.043 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004464/0.2594, allocations: 332.6 kB / 1.022 GB, free: 6.668 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001686/0.2596, allocations: 62.53 kB / 1.022 GB, free: 6.598 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001297/0.2597, allocations: 36.92 kB / 1.022 GB, free: 6.559 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.687e-05/0.2597, allocations: 4 kB / 1.022 GB, free: 6.555 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.668e-05/0.2598, allocations: 30.56 kB / 1.022 GB, free: 6.516 MB / 0.795 GB Notification: Performance of pre-optimization done (n=3): time 2.475e-06/0.2598, allocations: 4 kB / 1.022 GB, free: 6.512 MB / 0.795 GB Notification: Performance of matching and sorting (n=3): time 0.0004665/0.2602, allocations: 141.5 kB / 1.022 GB, free: 6.367 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.816e-05/0.2603, allocations: 59.41 kB / 1.022 GB, free: 6.297 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.424e-05/0.2604, allocations: 113.8 kB / 1.022 GB, free: 6.176 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.208e-05/0.2604, allocations: 25.7 kB / 1.022 GB, free: 6.145 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 3.749e-05/0.2604, allocations: 100.1 kB / 1.022 GB, free: 6.043 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.817e-05/0.2604, allocations: 13.33 kB / 1.022 GB, free: 6.031 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.337e-05/0.2605, allocations: 13.72 kB / 1.022 GB, free: 6.012 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 8.435e-05/0.2606, allocations: 318.8 kB / 1.023 GB, free: 5.691 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.2607, allocations: 35.95 kB / 1.023 GB, free: 5.656 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.2608, allocations: 39.95 kB / 1.023 GB, free: 5.617 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002335/0.2611, allocations: 68.78 kB / 1.023 GB, free: 5.547 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2611, allocations: 3.938 kB / 1.023 GB, free: 5.543 MB / 0.795 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002674/0.2613, allocations: 102 kB / 1.023 GB, free: 5.438 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/0.2614, allocations: 8 kB / 1.023 GB, free: 5.43 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.2614, allocations: 3.984 kB / 1.023 GB, free: 5.426 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.2614, allocations: 0 / 1.023 GB, free: 5.426 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.2615, allocations: 19.97 kB / 1.023 GB, free: 5.406 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.2615, allocations: 0 / 1.023 GB, free: 5.406 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.575e-05/0.2616, allocations: 11.98 kB / 1.023 GB, free: 5.395 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.2616, allocations: 3.938 kB / 1.023 GB, free: 5.391 MB / 0.795 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 6.823e-05/0.2617, allocations: 125.8 kB / 1.023 GB, free: 5.258 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.549e-05/0.2617, allocations: 7.906 kB / 1.023 GB, free: 5.25 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003055/0.262, allocations: 109.5 kB / 1.023 GB, free: 5.133 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.262, allocations: 4 kB / 1.023 GB, free: 5.129 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.262, allocations: 3.938 kB / 1.023 GB, free: 5.125 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.262, allocations: 0 / 1.023 GB, free: 5.125 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001475/0.2622, allocations: 181.6 kB / 1.023 GB, free: 4.898 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.2622, allocations: 8 kB / 1.023 GB, free: 4.891 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.852e-05/0.2623, allocations: 19.97 kB / 1.023 GB, free: 4.871 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.2623, allocations: 0 / 1.023 GB, free: 4.871 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.2623, allocations: 0 / 1.023 GB, free: 4.871 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.2623, allocations: 0 / 1.023 GB, free: 4.871 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2623, allocations: 0 / 1.023 GB, free: 4.871 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003075/0.2626, allocations: 211.2 kB / 1.024 GB, free: 4.648 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.395e-05/0.2627, allocations: 81.11 kB / 1.024 GB, free: 4.551 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.239e-05/0.2627, allocations: 0 / 1.024 GB, free: 4.551 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.451e-05/0.2628, allocations: 7.984 kB / 1.024 GB, free: 4.543 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.193e-05/0.2628, allocations: 7.984 kB / 1.024 GB, free: 4.535 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.66e-06/0.2628, allocations: 0 / 1.024 GB, free: 4.535 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.145e-05/0.2629, allocations: 95.27 kB / 1.024 GB, free: 4.441 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2629, allocations: 8 kB / 1.024 GB, free: 4.434 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002081/0.2631, allocations: 15.84 kB / 1.024 GB, free: 4.418 MB / 0.795 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.0001068/0.2632, allocations: 99.19 kB / 1.024 GB, free: 4.309 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002927/0.2635, allocations: 71.92 kB / 1.024 GB, free: 4.238 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2635, allocations: 0 / 1.024 GB, free: 4.238 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001331/0.2637, allocations: 51.89 kB / 1.024 GB, free: 4.188 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002198/0.2639, allocations: 4 kB / 1.024 GB, free: 4.184 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002564/0.2641, allocations: 145.6 kB / 1.024 GB, free: 4.016 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001942/0.2643, allocations: 0.6846 MB / 1.025 GB, free: 3.305 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.556e-05/0.2644, allocations: 11.98 kB / 1.025 GB, free: 3.293 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.535e-05/0.2644, allocations: 15.44 kB / 1.025 GB, free: 3.277 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.2644, allocations: 0 / 1.025 GB, free: 3.277 MB / 0.795 GB Notification: Performance of Templates: time 0.002433/0.2669, allocations: 0.7663 MB / 1.026 GB, free: 2.52 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches