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.008267/0.008267, allocations: 99.38 kB / 15.73 MB, free: 6.023 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.00144/0.00144, allocations: 187.6 kB / 16.67 MB, free: 5.961 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.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.435/2.435, allocations: 390.2 MB / 0.6648 GB, free: 148 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 63.5 kB / 0.9508 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3285, allocations: 140.4 MB / 1.088 GB, free: 1.508 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002856/0.3314, allocations: 1.529 MB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0003411/0.3317, allocations: 108.5 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.184e-05/0.3318, allocations: 8 kB / 1.09 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001238/0.3319, allocations: 11.86 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.457e-05/0.332, allocations: 7.922 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002441/0.3322, allocations: 31.84 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001057/0.3323, allocations: 59.83 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.3325, allocations: 23.98 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.043e-05/0.3325, allocations: 31.89 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.969e-05/0.3326, allocations: 23.86 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.829e-05/0.3326, allocations: 8 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.769e-05/0.3327, allocations: 19.92 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.413e-05/0.3328, allocations: 11.98 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.736e-05/0.3328, allocations: 19.88 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001324/0.333, allocations: 63.78 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.333, allocations: 0 / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.242e-06/0.333, allocations: 3.938 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.333, allocations: 4 kB / 1.09 GB, free: 15.53 MB / 0.8575 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.0005574/0.3336, allocations: 375.3 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.3336, allocations: 12.02 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.359e-05/0.3336, allocations: 8.844 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001767/0.3338, allocations: 180.3 kB / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.3338, allocations: 384 / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.493e-05/0.3339, allocations: 8.375 kB / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002797/0.3342, allocations: 86.14 kB / 1.09 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.3342, allocations: 4.172 kB / 1.09 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.3342, allocations: 11.94 kB / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.3342, allocations: 0 / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000306/0.3345, allocations: 75.91 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005526/0.3351, allocations: 332.6 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002018/0.3353, allocations: 58.53 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001564/0.3355, allocations: 40.91 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.401e-05/0.3355, allocations: 4 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/0.3355, allocations: 38.59 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.253e-06/0.3355, allocations: 0 / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005163/0.3361, allocations: 137.5 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.3361, allocations: 59.34 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.014e-05/0.3362, allocations: 113.8 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.495e-05/0.3362, allocations: 25.7 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.317e-05/0.3363, allocations: 104 kB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.076e-05/0.3363, allocations: 7.906 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.293e-05/0.3363, allocations: 13.66 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.3365, allocations: 326.8 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.3366, allocations: 31.97 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001237/0.3367, allocations: 35.95 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002495/0.337, allocations: 76.72 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.337, allocations: 4 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002948/0.3373, allocations: 101.6 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.3373, allocations: 8 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.3373, allocations: 0 / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.3373, allocations: 0 / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.3375, allocations: 11.98 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.3375, allocations: 7.984 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.528e-05/0.3376, allocations: 19.88 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.24e-05/0.3376, allocations: 4 kB / 1.092 GB, free: 13.03 MB / 0.8575 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.278e-05/0.3377, allocations: 117.8 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.453e-05/0.3377, allocations: 3.938 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003504/0.3381, allocations: 113.5 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.3381, allocations: 4 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.3381, allocations: 4 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3381, allocations: 0 / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001745/0.3383, allocations: 185.9 kB / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.3383, allocations: 4 kB / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.763e-05/0.3384, allocations: 11.98 kB / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.3384, allocations: 0 / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.3384, allocations: 0 / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.3384, allocations: 4 kB / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.3384, allocations: 0 / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003398/0.3388, allocations: 219.2 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.719e-05/0.3388, allocations: 81.05 kB / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.475e-05/0.3388, allocations: 0 / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.3389, allocations: 15.97 kB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.372e-05/0.339, allocations: 4 kB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.339, allocations: 8 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.953e-05/0.3391, allocations: 91.27 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.3391, allocations: 0 / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002217/0.3393, allocations: 11.91 kB / 1.093 GB, free: 12.06 MB / 0.8575 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.0001567/0.3395, allocations: 103.2 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000339/0.3398, allocations: 83.84 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3398, allocations: 0 / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001405/0.34, allocations: 39.95 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002934/0.3403, allocations: 10.61 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003512/0.3406, allocations: 150.8 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000257/0.3409, allocations: 0.7002 MB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.957e-05/0.3409, allocations: 7.984 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.526e-05/0.341, allocations: 7.438 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.341, allocations: 0 / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of Templates: time 0.003317/0.3443, allocations: 0.777 MB / 1.095 GB, free: 10.14 MB / 0.8575 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches