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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001555/0.001555, allocations: 110.9 kB / 16.37 MB, free: 6.469 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.001833/0.001832, allocations: 189.9 kB / 17.3 MB, free: 5.828 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.403/1.403, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.241/2.241, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 66.67 kB / 0.814 GB, free: 32.71 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2556, allocations: 140.4 MB / 0.9511 GB, free: 8.066 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002663/0.2583, allocations: 1.532 MB / 0.9526 GB, free: 6.527 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0002812/0.2586, allocations: 112.5 kB / 0.9527 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.073e-05/0.2586, allocations: 0 / 0.9527 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.000105/0.2588, allocations: 15.86 kB / 0.9527 GB, free: 6.398 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 2.418e-05/0.2588, allocations: 11.94 kB / 0.9528 GB, free: 6.387 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000227/0.259, allocations: 35.89 kB / 0.9528 GB, free: 6.352 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.376e-05/0.2591, allocations: 47.84 kB / 0.9528 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.2592, allocations: 27.98 kB / 0.9529 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 5.242e-05/0.2593, allocations: 23.92 kB / 0.9529 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.06e-05/0.2594, allocations: 27.91 kB / 0.9529 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.733e-05/0.2594, allocations: 7.938 kB / 0.9529 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 5.294e-05/0.2595, allocations: 12 kB / 0.9529 GB, free: 6.207 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.216e-05/0.2595, allocations: 15.97 kB / 0.9529 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.829e-05/0.2595, allocations: 31.8 kB / 0.953 GB, free: 6.16 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001193/0.2597, allocations: 55.81 kB / 0.953 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.2597, allocations: 0 / 0.953 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.534e-06/0.2597, allocations: 0 / 0.953 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.034e-06/0.2597, allocations: 3.938 kB / 0.953 GB, free: 6.102 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.0004857/0.2602, allocations: 383.2 kB / 0.9534 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.2602, allocations: 12.03 kB / 0.9534 GB, free: 5.664 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.881e-05/0.2603, allocations: 4.938 kB / 0.9534 GB, free: 5.66 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001546/0.2604, allocations: 188.2 kB / 0.9536 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.327e-06/0.2604, allocations: 4.375 kB / 0.9536 GB, free: 5.434 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.035e-05/0.2605, allocations: 384 / 0.9536 GB, free: 5.434 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002627/0.2607, allocations: 94.14 kB / 0.9537 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.2607, allocations: 192 / 0.9537 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.2608, allocations: 7.875 kB / 0.9537 GB, free: 5.328 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.2608, allocations: 4 kB / 0.9537 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002868/0.2611, allocations: 83.89 kB / 0.9538 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005259/0.2616, allocations: 328.6 kB / 0.9541 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001877/0.2618, allocations: 58.53 kB / 0.9541 GB, free: 4.805 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001403/0.2619, allocations: 40.92 kB / 0.9542 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.436e-05/0.262, allocations: 0 / 0.9542 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.262, allocations: 38.64 kB / 0.9542 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 8.61e-07/0.262, allocations: 3.938 kB / 0.9542 GB, free: 4.711 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0005016/0.2625, allocations: 137.5 kB / 0.9544 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.547e-05/0.2626, allocations: 51.41 kB / 0.9544 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.003e-05/0.2627, allocations: 122.1 kB / 0.9545 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.2627, allocations: 25.7 kB / 0.9545 GB, free: 4.348 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.237e-05/0.2628, allocations: 96.06 kB / 0.9546 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.957e-05/0.2628, allocations: 11.81 kB / 0.9546 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.398e-05/0.2628, allocations: 13.72 kB / 0.9547 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001063/0.2629, allocations: 318.8 kB / 0.955 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/0.2631, allocations: 39.95 kB / 0.955 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.2632, allocations: 35.95 kB / 0.955 GB, free: 3.824 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002564/0.2635, allocations: 72.72 kB / 0.9551 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2635, allocations: 0 / 0.9551 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003012/0.2638, allocations: 105.6 kB / 0.9552 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.2638, allocations: 4 kB / 0.9552 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.2638, allocations: 7.984 kB / 0.9552 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.2639, allocations: 4 kB / 0.9552 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.264, allocations: 11.98 kB / 0.9552 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.264, allocations: 0 / 0.9552 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.204e-05/0.2641, allocations: 11.98 kB / 0.9552 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.2641, allocations: 4 kB / 0.9552 GB, free: 3.598 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 8.26e-05/0.2642, allocations: 121.8 kB / 0.9554 GB, free: 3.469 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.935e-05/0.2642, allocations: 7.906 kB / 0.9554 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003412/0.2646, allocations: 113.5 kB / 0.9555 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.2646, allocations: 0 / 0.9555 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.2646, allocations: 4 kB / 0.9555 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.2646, allocations: 0 / 0.9555 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000178/0.2648, allocations: 177.6 kB / 0.9557 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.2648, allocations: 0 / 0.9557 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.223e-05/0.2649, allocations: 19.97 kB / 0.9557 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.2649, allocations: 0 / 0.9557 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.2649, allocations: 4 kB / 0.9557 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.2649, allocations: 0 / 0.9557 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.2649, allocations: 3.938 kB / 0.9557 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003425/0.2653, allocations: 207.6 kB / 0.9559 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.407e-05/0.2653, allocations: 93.08 kB / 0.956 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.323e-05/0.2653, allocations: 0 / 0.956 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.2654, allocations: 11.98 kB / 0.956 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.984e-05/0.2655, allocations: 3.984 kB / 0.956 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.2655, allocations: 4 kB / 0.956 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.366e-05/0.2656, allocations: 99.31 kB / 0.9561 GB, free: 2.637 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2656, allocations: 0 / 0.9561 GB, free: 2.637 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002331/0.2658, allocations: 11.94 kB / 0.9561 GB, free: 2.625 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.0001233/0.2659, allocations: 103.2 kB / 0.9562 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003193/0.2663, allocations: 75.92 kB / 0.9563 GB, free: 2.441 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.2663, allocations: 0 / 0.9563 GB, free: 2.441 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000144/0.2664, allocations: 43.89 kB / 0.9563 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002489/0.2667, allocations: 8 kB / 0.9563 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003126/0.267, allocations: 153.5 kB / 0.9565 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002558/0.2673, allocations: 0.6961 MB / 0.9571 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.732e-05/0.2673, allocations: 4 kB / 0.9571 GB, free: 1.488 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.748e-05/0.2673, allocations: 11.44 kB / 0.9572 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.2673, allocations: 0 / 0.9572 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of Templates: time 0.002879/0.2702, allocations: 0.7787 MB / 0.9579 GB, free: 0.707 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 -s gbode -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