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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 107 kB / 16.36 MB, free: 6.336 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.001656/0.001656, allocations: 195.3 kB / 17.29 MB, free: 5.883 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.344/1.344, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.443/2.443, allocations: 442.6 MB / 0.7165 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 75.61 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2831, allocations: 153 MB / 1.027 GB, free: 2.09 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002934/0.286, allocations: 1.55 MB / 1.028 GB, free: 0.5352 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0003638/0.2864, allocations: 112.5 kB / 1.028 GB, free: 432 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.391e-05/0.2865, allocations: 4 kB / 1.028 GB, free: 428 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001275/0.2866, allocations: 11.92 kB / 1.028 GB, free: 416 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 2.767e-05/0.2867, allocations: 7.875 kB / 1.028 GB, free: 408 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002374/0.2869, allocations: 23.97 kB / 1.028 GB, free: 384 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 9.189e-05/0.287, allocations: 59.77 kB / 1.028 GB, free: 324 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001256/0.2872, allocations: 27.98 kB / 1.028 GB, free: 296 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 5.664e-05/0.2872, allocations: 19.92 kB / 1.028 GB, free: 276 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.278e-05/0.2873, allocations: 31.84 kB / 1.029 GB, free: 244 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.52e-05/0.2873, allocations: 8 kB / 1.029 GB, free: 236 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 5.619e-05/0.2874, allocations: 11.98 kB / 1.029 GB, free: 224 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.858e-05/0.2874, allocations: 16 kB / 1.029 GB, free: 208 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.948e-05/0.2875, allocations: 23.86 kB / 1.029 GB, free: 184 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001256/0.2876, allocations: 59.8 kB / 1.029 GB, free: 124 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2876, allocations: 0 / 1.029 GB, free: 124 kB / 0.795 GB Notification: Performance of FrontEnd: time 1.282e-06/0.2876, allocations: 3.938 kB / 1.029 GB, free: 120 kB / 0.795 GB Notification: Performance of Transformations before backend: time 8.195e-06/0.2876, allocations: 0 / 1.029 GB, free: 120 kB / 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.0005295/0.2882, allocations: 379.3 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.2882, allocations: 8.75 kB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.648e-05/0.2883, allocations: 12.84 kB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001645/0.2884, allocations: 188.2 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.328e-06/0.2885, allocations: 384 / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.581e-05/0.2885, allocations: 4.375 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002698/0.2888, allocations: 86.14 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.2888, allocations: 192 / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.2888, allocations: 7.938 kB / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.2888, allocations: 0 / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003018/0.2891, allocations: 91.83 kB / 1.029 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005341/0.2896, allocations: 328.7 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002146/0.2899, allocations: 66.56 kB / 1.03 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.29, allocations: 40.92 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.966e-05/0.2901, allocations: 3.984 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.2901, allocations: 34.56 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.2901, allocations: 0 / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0005276/0.2906, allocations: 137.5 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.2907, allocations: 55.34 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.202e-05/0.2908, allocations: 117.7 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.4e-05/0.2908, allocations: 25.7 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.614e-05/0.2908, allocations: 99.97 kB / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.253e-05/0.2909, allocations: 15.91 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.272e-05/0.2909, allocations: 13.66 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001043/0.291, allocations: 326.8 kB / 1.031 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001379/0.2912, allocations: 27.97 kB / 1.031 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.2913, allocations: 35.95 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000263/0.2916, allocations: 72.78 kB / 1.031 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2916, allocations: 4 kB / 1.031 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003064/0.2919, allocations: 101.6 kB / 1.031 GB, free: 13.65 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.2919, allocations: 8 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.2919, allocations: 4 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.2919, allocations: 0 / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.2921, allocations: 15.92 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.692e-06/0.2921, allocations: 4 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.452e-05/0.2922, allocations: 11.89 kB / 1.031 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.093e-05/0.2922, allocations: 4 kB / 1.031 GB, free: 13.61 MB / 0.8106 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 7.536e-05/0.2923, allocations: 125.7 kB / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.542e-05/0.2923, allocations: 0 / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003492/0.2927, allocations: 113.5 kB / 1.031 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.2927, allocations: 0 / 1.031 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.2927, allocations: 3.984 kB / 1.031 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.2927, allocations: 0 / 1.031 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001758/0.2929, allocations: 177.6 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.2929, allocations: 0 / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.392e-05/0.293, allocations: 19.98 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.64e-06/0.293, allocations: 3.938 kB / 1.031 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.017e-05/0.293, allocations: 7.938 kB / 1.031 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.085e-06/0.293, allocations: 4 kB / 1.031 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.293, allocations: 0 / 1.031 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003412/0.2934, allocations: 211.6 kB / 1.031 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.849e-05/0.2934, allocations: 81.11 kB / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.2934, allocations: 0 / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.2936, allocations: 15.98 kB / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.186e-05/0.2936, allocations: 3.984 kB / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-06/0.2936, allocations: 4 kB / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.451e-05/0.2937, allocations: 91.27 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2937, allocations: 0 / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002352/0.2939, allocations: 15.84 kB / 1.032 GB, free: 12.64 MB / 0.8106 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.0001315/0.2941, allocations: 110.2 kB / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003246/0.2944, allocations: 79.84 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2944, allocations: 4 kB / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001448/0.2946, allocations: 35.97 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002482/0.2948, allocations: 11.98 kB / 1.032 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003502/0.2952, allocations: 142.4 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002454/0.2954, allocations: 0.6885 MB / 1.033 GB, free: 11.51 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.978e-05/0.2955, allocations: 8 kB / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.645e-05/0.2955, allocations: 7.438 kB / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of SimCode: time 4.31e-07/0.2955, allocations: 4 kB / 1.033 GB, free: 11.49 MB / 0.8106 GB Notification: Performance of Templates: time 0.003006/0.2985, allocations: 0.7765 MB / 1.034 GB, free: 10.72 MB / 0.8106 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 -s gbode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches