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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006678/0.006679, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001244/0.001244, allocations: 194.4 kB / 16.67 MB, free: 5.977 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.45/2.45, allocations: 390.2 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002217/0.002217, allocations: 71.39 kB / 0.9504 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2907, allocations: 140.4 MB / 1.087 GB, free: 1.984 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002553/0.2933, allocations: 1.525 MB / 1.089 GB, free: 456 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003288/0.2936, allocations: 112.5 kB / 1.089 GB, free: 340 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.443e-05/0.2937, allocations: 4 kB / 1.089 GB, free: 336 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001186/0.2938, allocations: 15.86 kB / 1.089 GB, free: 320 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 2.856e-05/0.2939, allocations: 3.938 kB / 1.089 GB, free: 316 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002434/0.2941, allocations: 31.95 kB / 1.089 GB, free: 284 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001123/0.2943, allocations: 55.78 kB / 1.089 GB, free: 228 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.2944, allocations: 27.97 kB / 1.089 GB, free: 200 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.823e-05/0.2945, allocations: 19.92 kB / 1.089 GB, free: 180 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.105e-05/0.2946, allocations: 31.84 kB / 1.089 GB, free: 148 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.637e-05/0.2946, allocations: 12 kB / 1.089 GB, free: 136 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 5.972e-05/0.2947, allocations: 15.98 kB / 1.089 GB, free: 120 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.92e-05/0.2947, allocations: 11.98 kB / 1.089 GB, free: 108 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.204e-05/0.2948, allocations: 23.86 kB / 1.089 GB, free: 84 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001447/0.2949, allocations: 59.97 kB / 1.089 GB, free: 24 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.2949, allocations: 3.938 kB / 1.089 GB, free: 20 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.433e-06/0.2949, allocations: 0 / 1.089 GB, free: 20 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.01e-06/0.2949, allocations: 0 / 1.089 GB, free: 20 kB / 0.8419 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.0005748/0.2955, allocations: 387.2 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.2956, allocations: 8.031 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.712e-05/0.2956, allocations: 34.73 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.109e-05/0.2957, allocations: 12.89 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001572/0.2958, allocations: 180.3 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.2958, allocations: 8.359 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.131e-05/0.2959, allocations: 4.375 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002946/0.2962, allocations: 94.08 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.2962, allocations: 3.938 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.2962, allocations: 4 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.2962, allocations: 0 / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003253/0.2965, allocations: 83.91 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00052/0.2971, allocations: 328.6 kB / 1.09 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002074/0.2973, allocations: 58.53 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.2974, allocations: 40.91 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.978e-05/0.2975, allocations: 4 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.619e-05/0.2975, allocations: 38.5 kB / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.233e-06/0.2975, allocations: 0 / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005758/0.2981, allocations: 141.6 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.2982, allocations: 51.41 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.496e-05/0.2983, allocations: 117.8 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.2983, allocations: 29.7 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.019e-05/0.2983, allocations: 92.12 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.603e-05/0.2984, allocations: 7.906 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.856e-05/0.2984, allocations: 17.72 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001104/0.2985, allocations: 318.8 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001586/0.2987, allocations: 35.95 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.2989, allocations: 35.97 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002961/0.2992, allocations: 72.78 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2992, allocations: 0 / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003684/0.2995, allocations: 109.5 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.2996, allocations: 4 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.2996, allocations: 0 / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.2996, allocations: 0 / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.2997, allocations: 15.98 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.2998, allocations: 0 / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.048e-05/0.2998, allocations: 27.86 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.2999, allocations: 4 kB / 1.092 GB, free: 13.46 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.138e-05/0.3, allocations: 117.8 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.967e-05/0.3, allocations: 4 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003885/0.3004, allocations: 117.8 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3004, allocations: 0 / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3004, allocations: 4 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.3004, allocations: 48 / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001811/0.3006, allocations: 185.6 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.3006, allocations: 0 / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.3007, allocations: 19.92 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.3007, allocations: 0 / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.154e-06/0.3008, allocations: 3.938 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.3008, allocations: 0 / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3008, allocations: 0 / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003699/0.3011, allocations: 211.3 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.821e-05/0.3012, allocations: 81.06 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.67e-05/0.3012, allocations: 7.984 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.3013, allocations: 7.984 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.81e-05/0.3014, allocations: 8 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-06/0.3014, allocations: 0 / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.992e-05/0.3014, allocations: 95.27 kB / 1.092 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3015, allocations: 0 / 1.092 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002422/0.3017, allocations: 15.94 kB / 1.092 GB, free: 12.49 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.0006631/0.3024, allocations: 0.7281 MB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003545/0.3027, allocations: 87.84 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.3027, allocations: 0 / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001577/0.3029, allocations: 39.95 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003294/0.3033, allocations: 13.41 kB / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001809/0.3051, allocations: 1.422 MB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002345/0.3053, allocations: 0.6931 MB / 1.095 GB, free: 9.387 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.648e-05/0.3054, allocations: 4 kB / 1.095 GB, free: 9.383 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.643e-05/0.3054, allocations: 23.42 kB / 1.095 GB, free: 9.363 MB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.3054, allocations: 0 / 1.095 GB, free: 9.363 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01624/0.3217, allocations: 1.816 MB / 1.097 GB, free: 7.617 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.453/7.775, allocations: 2.25 kB / 1.097 GB, free: 7.617 MB / 0.8575 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Examples.Average_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Average_res.csv","/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