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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.47/2.47, allocations: 390.3 MB / 402.8 MB, free: 6.691 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 172.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.842/1.842, allocations: 221.3 MB / 0.7915 GB, free: 5.473 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008833/0.0008833, allocations: 94.53 kB / 0.9317 GB, free: 5.797 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.127e-05/3.128e-05, allocations: 4 kB / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.3508, allocations: 143 MB / 1.219 GB, free: 13.54 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.055/1.406, allocations: 150.2 MB / 1.365 GB, free: 3.816 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002942/1.406, allocations: 73.86 kB / 1.366 GB, free: 3.777 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003637/1.41, allocations: 1.127 MB / 1.367 GB, free: 2.75 MB / 0.823 GB Notification: Performance of FrontEnd: time 3.216e-06/1.41, allocations: 0 / 1.367 GB, free: 2.75 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.449e-05/1.41, allocations: 9.906 kB / 1.367 GB, free: 2.742 MB / 0.823 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.0004865/1.41, allocations: 373 kB / 1.367 GB, free: 2.34 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/1.411, allocations: 12.03 kB / 1.367 GB, free: 2.328 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.691e-05/1.411, allocations: 3.375 kB / 1.367 GB, free: 2.328 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002085/1.411, allocations: 190.9 kB / 1.367 GB, free: 2.105 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/1.411, allocations: 0 / 1.367 GB, free: 2.105 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.614e-05/1.411, allocations: 7.438 kB / 1.367 GB, free: 2.102 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001579/1.411, allocations: 63.17 kB / 1.367 GB, free: 2.043 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/1.411, allocations: 0 / 1.367 GB, free: 2.043 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/1.411, allocations: 0 / 1.367 GB, free: 2.043 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/1.411, allocations: 7.938 kB / 1.367 GB, free: 2.035 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.113e-05/1.411, allocations: 35.05 kB / 1.367 GB, free: 2.012 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006128/1.412, allocations: 337.5 kB / 1.368 GB, free: 1.652 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 8.125e-05/1.412, allocations: 33.33 kB / 1.368 GB, free: 1.617 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.869e-05/1.412, allocations: 27.92 kB / 1.368 GB, free: 1.594 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.675e-05/1.412, allocations: 7.984 kB / 1.368 GB, free: 1.586 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/1.412, allocations: 30.56 kB / 1.368 GB, free: 1.547 MB / 0.823 GB Notification: Performance of pre-optimization done (n=3): time 1.282e-06/1.412, allocations: 0 / 1.368 GB, free: 1.547 MB / 0.823 GB Notification: Performance of matching and sorting (n=3): time 0.0001852/1.412, allocations: 63.67 kB / 1.368 GB, free: 1.488 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.337e-05/1.412, allocations: 55.41 kB / 1.368 GB, free: 1.422 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.865e-05/1.412, allocations: 106 kB / 1.368 GB, free: 1.316 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/1.412, allocations: 29.7 kB / 1.368 GB, free: 1.281 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 4.44e-05/1.412, allocations: 91.36 kB / 1.368 GB, free: 1.195 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.134e-05/1.412, allocations: 11.84 kB / 1.368 GB, free: 1.184 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.848e-06/1.412, allocations: 3.938 kB / 1.368 GB, free: 1.18 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001055/1.413, allocations: 317.6 kB / 1.368 GB, free: 0.8633 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.821e-05/1.413, allocations: 11.06 kB / 1.368 GB, free: 0.8555 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.137e-05/1.413, allocations: 7.75 kB / 1.368 GB, free: 0.8516 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.944e-05/1.413, allocations: 19.3 kB / 1.368 GB, free: 0.8359 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/1.413, allocations: 0 / 1.368 GB, free: 0.8359 MB / 0.823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001039/1.413, allocations: 63.41 kB / 1.368 GB, free: 0.7773 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/1.413, allocations: 5.406 kB / 1.368 GB, free: 0.7734 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/1.413, allocations: 0 / 1.368 GB, free: 0.7734 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/1.413, allocations: 3.938 kB / 1.368 GB, free: 0.7695 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001457/1.413, allocations: 23.94 kB / 1.368 GB, free: 0.7461 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.064e-06/1.413, allocations: 4 kB / 1.368 GB, free: 0.7422 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.493e-05/1.413, allocations: 19.97 kB / 1.368 GB, free: 0.7227 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.97e-05/1.413, allocations: 0 / 1.368 GB, free: 0.7227 MB / 0.823 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.304e-05/1.413, allocations: 108.5 kB / 1.369 GB, free: 0.6133 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.419e-05/1.413, allocations: 3.906 kB / 1.369 GB, free: 0.6094 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001514/1.413, allocations: 66.89 kB / 1.369 GB, free: 0.5469 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/1.413, allocations: 0 / 1.369 GB, free: 0.5469 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/1.413, allocations: 11.89 kB / 1.369 GB, free: 0.5352 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/1.413, allocations: 0 / 1.369 GB, free: 0.5352 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001611/1.414, allocations: 175.1 kB / 1.369 GB, free: 332 kB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/1.414, allocations: 0 / 1.369 GB, free: 332 kB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/1.414, allocations: 23.92 kB / 1.369 GB, free: 308 kB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/1.414, allocations: 3.984 kB / 1.369 GB, free: 304 kB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/1.414, allocations: 7.875 kB / 1.369 GB, free: 300 kB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/1.414, allocations: 0 / 1.369 GB, free: 300 kB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/1.414, allocations: 4 kB / 1.369 GB, free: 296 kB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001305/1.414, allocations: 152.4 kB / 1.369 GB, free: 136 kB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.19e-05/1.414, allocations: 81.02 kB / 1.369 GB, free: 36 kB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.415e-05/1.414, allocations: 0 / 1.369 GB, free: 36 kB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/1.414, allocations: 15.98 kB / 1.369 GB, free: 20 kB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.018e-05/1.414, allocations: 18.77 kB / 1.369 GB, free: 4 kB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.011e-06/1.414, allocations: 0 / 1.369 GB, free: 4 kB / 0.823 GB Notification: Performance of sorting global known variables: time 5.903e-05/1.414, allocations: 90.58 kB / 1.369 GB, free: 15.92 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.51e-07/1.414, allocations: 0 / 1.369 GB, free: 15.92 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000206/1.414, allocations: 19.77 kB / 1.369 GB, free: 15.9 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001649/1.415, allocations: 107.1 kB / 1.369 GB, free: 15.79 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001025/1.415, allocations: 30.84 kB / 1.369 GB, free: 15.76 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/1.415, allocations: 4 kB / 1.369 GB, free: 15.76 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.419e-05/1.415, allocations: 15.5 kB / 1.369 GB, free: 15.75 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001587/1.415, allocations: 13.61 kB / 1.369 GB, free: 15.74 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002511/1.415, allocations: 95.78 kB / 1.369 GB, free: 15.62 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002691/1.415, allocations: 0.6965 MB / 1.37 GB, free: 14.9 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.364e-05/1.415, allocations: 4 kB / 1.37 GB, free: 14.9 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.528e-05/1.415, allocations: 7.438 kB / 1.37 GB, free: 14.89 MB / 0.8386 GB Notification: Performance of SimCode: time 4.41e-07/1.415, allocations: 7.938 kB / 1.37 GB, free: 14.88 MB / 0.8386 GB Notification: Performance of Templates: time 0.002584/1.418, allocations: 0.6042 MB / 1.371 GB, free: 14.29 MB / 0.8386 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","../files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches