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.001226/0.001226, allocations: 114.5 kB / 16.37 MB, free: 6.012 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.001144/0.001144, allocations: 193.4 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.198/1.198, 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.015/2.015, allocations: 390.3 MB / 0.6655 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001156, allocations: 69.09 kB / 0.814 GB, free: 32.58 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2197/0.2208, allocations: 140.4 MB / 0.9511 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.00234/0.2232, allocations: 1.539 MB / 0.9526 GB, free: 6.5 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0002516/0.2235, allocations: 112.5 kB / 0.9527 GB, free: 6.387 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.741e-05/0.2235, allocations: 0 / 0.9527 GB, free: 6.387 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 9.992e-05/0.2236, allocations: 7.875 kB / 0.9527 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 2.239e-05/0.2236, allocations: 7.938 kB / 0.9527 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001968/0.2239, allocations: 35.89 kB / 0.9528 GB, free: 6.336 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.316e-05/0.2239, allocations: 59.83 kB / 0.9528 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.884e-05/0.2241, allocations: 23.98 kB / 0.9529 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.575e-05/0.2241, allocations: 23.92 kB / 0.9529 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.625e-05/0.2242, allocations: 27.91 kB / 0.9529 GB, free: 6.203 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.571e-05/0.2242, allocations: 4 kB / 0.9529 GB, free: 6.199 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 4.696e-05/0.2242, allocations: 19.88 kB / 0.9529 GB, free: 6.18 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.434e-05/0.2243, allocations: 15.98 kB / 0.9529 GB, free: 6.164 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.253e-05/0.2243, allocations: 31.84 kB / 0.953 GB, free: 6.133 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 9.89e-05/0.2244, allocations: 51.81 kB / 0.953 GB, free: 6.082 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.289e-06/0.2244, allocations: 4 kB / 0.953 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.343e-06/0.2244, allocations: 0 / 0.953 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.206e-06/0.2245, allocations: 0 / 0.953 GB, free: 6.078 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.000447/0.2249, allocations: 384.2 kB / 0.9534 GB, free: 5.652 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 2.764e-05/0.2249, allocations: 16.03 kB / 0.9534 GB, free: 5.637 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.881e-05/0.225, allocations: 4.938 kB / 0.9534 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001458/0.2251, allocations: 180.2 kB / 0.9536 GB, free: 5.418 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.758e-06/0.2251, allocations: 8.375 kB / 0.9536 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.107e-06/0.2252, allocations: 384 / 0.9536 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002266/0.2254, allocations: 94.12 kB / 0.9537 GB, free: 5.312 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.881e-06/0.2254, allocations: 192 / 0.9537 GB, free: 5.312 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.377e-06/0.2254, allocations: 3.938 kB / 0.9537 GB, free: 5.309 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.2254, allocations: 8 kB / 0.9537 GB, free: 5.301 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002624/0.2257, allocations: 79.86 kB / 0.9538 GB, free: 5.223 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004759/0.2262, allocations: 328.6 kB / 0.9541 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001679/0.2264, allocations: 62.53 kB / 0.9541 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001337/0.2265, allocations: 40.91 kB / 0.9542 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.443e-05/0.2265, allocations: 0 / 0.9542 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.825e-05/0.2266, allocations: 34.59 kB / 0.9542 GB, free: 4.695 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 8.12e-07/0.2266, allocations: 0 / 0.9542 GB, free: 4.695 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0004538/0.227, allocations: 145.5 kB / 0.9544 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.172e-05/0.2271, allocations: 51.41 kB / 0.9544 GB, free: 4.484 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.136e-05/0.2271, allocations: 121.8 kB / 0.9545 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.2272, allocations: 25.7 kB / 0.9545 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.36e-05/0.2272, allocations: 96.08 kB / 0.9546 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.449e-05/0.2272, allocations: 7.812 kB / 0.9546 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.297e-05/0.2273, allocations: 21.7 kB / 0.9547 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.941e-05/0.2274, allocations: 318.8 kB / 0.955 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001258/0.2275, allocations: 31.95 kB / 0.955 GB, free: 3.84 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.2276, allocations: 35.97 kB / 0.955 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002375/0.2279, allocations: 84.97 kB / 0.9551 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2279, allocations: 0 / 0.9551 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002673/0.2281, allocations: 97.62 kB / 0.9552 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.2282, allocations: 8 kB / 0.9552 GB, free: 3.609 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-06/0.2282, allocations: 0 / 0.9552 GB, free: 3.609 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.2282, allocations: 4 kB / 0.9552 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.2283, allocations: 15.97 kB / 0.9552 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.038e-06/0.2283, allocations: 0 / 0.9552 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.859e-05/0.2284, allocations: 15.98 kB / 0.9553 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.2284, allocations: 0 / 0.9553 GB, free: 3.574 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 6.978e-05/0.2285, allocations: 113.8 kB / 0.9554 GB, free: 3.453 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.675e-05/0.2285, allocations: 11.91 kB / 0.9554 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003209/0.2288, allocations: 125.4 kB / 0.9555 GB, free: 3.305 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.2288, allocations: 0 / 0.9555 GB, free: 3.305 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-06/0.2288, allocations: 0 / 0.9555 GB, free: 3.305 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-06/0.2288, allocations: 0 / 0.9555 GB, free: 3.305 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000154/0.229, allocations: 177.6 kB / 0.9557 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.229, allocations: 0 / 0.9557 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.405e-05/0.2291, allocations: 19.98 kB / 0.9557 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.2291, allocations: 0 / 0.9557 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.2291, allocations: 3.984 kB / 0.9557 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.2291, allocations: 3.984 kB / 0.9557 GB, free: 3.055 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2291, allocations: 0 / 0.9557 GB, free: 3.055 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003158/0.2295, allocations: 207.3 kB / 0.9559 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.187e-05/0.2295, allocations: 89.03 kB / 0.956 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.231e-05/0.2295, allocations: 3.938 kB / 0.956 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.743e-05/0.2296, allocations: 11.98 kB / 0.956 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.487e-05/0.2297, allocations: 4 kB / 0.956 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-06/0.2297, allocations: 7.984 kB / 0.956 GB, free: 2.703 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.609e-05/0.2297, allocations: 87.28 kB / 0.9561 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2297, allocations: 0 / 0.9561 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002099/0.23, allocations: 15.94 kB / 0.9561 GB, free: 2.602 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.0001063/0.2301, allocations: 103.2 kB / 0.9562 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002943/0.2304, allocations: 79.86 kB / 0.9563 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.2304, allocations: 0 / 0.9563 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001378/0.2305, allocations: 43.95 kB / 0.9563 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002368/0.2308, allocations: 8 kB / 0.9563 GB, free: 2.363 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002673/0.231, allocations: 149.5 kB / 0.9565 GB, free: 2.191 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002312/0.2313, allocations: 0.6922 MB / 0.9571 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.893e-05/0.2313, allocations: 7.984 kB / 0.9571 GB, free: 1.465 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.282e-05/0.2313, allocations: 15.44 kB / 0.9572 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of SimCode: time 2.1e-07/0.2314, allocations: 0 / 0.9572 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of Templates: time 0.002433/0.2338, allocations: 0.7662 MB / 0.9579 GB, free: 0.6914 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 cvode -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