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.007489/0.007489, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001847/0.001847, allocations: 190.6 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.417/2.417, allocations: 390.2 MB / 0.6648 GB, free: 136 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 66.75 kB / 0.9504 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2326, 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.002564/0.2352, allocations: 1.529 MB / 1.089 GB, free: 452 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003492/0.2355, allocations: 108.5 kB / 1.089 GB, free: 340 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.801e-05/0.2356, allocations: 0 / 1.089 GB, free: 340 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001168/0.2357, allocations: 11.92 kB / 1.089 GB, free: 328 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 3.354e-05/0.2358, allocations: 15.86 kB / 1.089 GB, free: 312 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002182/0.236, allocations: 23.97 kB / 1.089 GB, free: 288 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 8.906e-05/0.2361, allocations: 55.78 kB / 1.089 GB, free: 232 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.2362, allocations: 27.97 kB / 1.089 GB, free: 204 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 5.809e-05/0.2363, allocations: 27.91 kB / 1.089 GB, free: 176 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.205e-05/0.2364, allocations: 31.84 kB / 1.089 GB, free: 144 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.713e-05/0.2364, allocations: 7.938 kB / 1.089 GB, free: 136 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 5.583e-05/0.2365, allocations: 15.98 kB / 1.089 GB, free: 120 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.983e-05/0.2365, allocations: 15.98 kB / 1.089 GB, free: 104 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.715e-05/0.2366, allocations: 23.88 kB / 1.089 GB, free: 80 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001373/0.2367, allocations: 59.8 kB / 1.089 GB, free: 20 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 1.171e-05/0.2367, allocations: 3.984 kB / 1.089 GB, free: 16 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.423e-06/0.2367, allocations: 3.938 kB / 1.089 GB, free: 12 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.815e-06/0.2367, allocations: 0 / 1.089 GB, free: 12 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.0005424/0.2373, allocations: 378.9 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.2373, allocations: 16.03 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.601e-05/0.2374, allocations: 34.73 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.253e-05/0.2374, allocations: 8.844 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000167/0.2376, allocations: 180.3 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.2376, allocations: 8.375 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.457e-05/0.2376, allocations: 8.359 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.2379, allocations: 86.14 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.2379, allocations: 3.938 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.238, allocations: 4 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.238, allocations: 7.984 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000309/0.2383, allocations: 75.92 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005262/0.2388, allocations: 320.7 kB / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002092/0.239, allocations: 62.53 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.2392, allocations: 40.91 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.312e-05/0.2392, allocations: 0 / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.2393, allocations: 34.56 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 2.264e-06/0.2393, allocations: 4 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005783/0.2399, allocations: 145.5 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.2399, allocations: 51.41 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.571e-05/0.24, allocations: 117.8 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.302e-05/0.24, allocations: 25.7 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.611e-05/0.2401, allocations: 99.98 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.051e-05/0.2401, allocations: 7.906 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.557e-05/0.2401, allocations: 17.7 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.519e-05/0.2402, allocations: 318.8 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001556/0.2404, allocations: 31.95 kB / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.2406, allocations: 35.97 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002932/0.2409, allocations: 76.72 kB / 1.091 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.2409, allocations: 4 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003355/0.2412, allocations: 109.5 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.2412, allocations: 8 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2412, allocations: 0 / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.2413, allocations: 0 / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.2414, allocations: 15.97 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.044e-06/0.2414, allocations: 4 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.851e-05/0.2415, allocations: 7.984 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/0.2415, allocations: 4 kB / 1.092 GB, free: 13.47 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 7.507e-05/0.2416, allocations: 121.8 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.516e-05/0.2416, allocations: 0 / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003782/0.242, allocations: 117.4 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.242, allocations: 384 / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.242, allocations: 0 / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.736e-06/0.242, allocations: 0 / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001704/0.2422, allocations: 185.5 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.2422, allocations: 7.984 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.2423, allocations: 15.98 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.2423, allocations: 0 / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.2424, allocations: 0 / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/0.2424, allocations: 7.984 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2424, allocations: 7.938 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003817/0.2428, allocations: 203.3 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.038e-05/0.2428, allocations: 81.09 kB / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.2428, allocations: 0 / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/0.2429, allocations: 11.98 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.586e-05/0.243, allocations: 7.938 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-06/0.243, allocations: 4 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.095e-05/0.2431, allocations: 95.64 kB / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2431, allocations: 4 kB / 1.092 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002378/0.2433, allocations: 15.84 kB / 1.092 GB, free: 12.5 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.0006513/0.244, allocations: 0.7359 MB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003604/0.2443, allocations: 79.86 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.2444, allocations: 0 / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001596/0.2445, allocations: 39.95 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003236/0.2449, allocations: 13.72 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001781/0.2466, allocations: 1.423 MB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002208/0.2469, allocations: 0.6924 MB / 1.095 GB, free: 9.387 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.455e-05/0.2469, allocations: 11.89 kB / 1.095 GB, free: 9.375 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.854e-05/0.247, allocations: 19.44 kB / 1.095 GB, free: 9.359 MB / 0.8575 GB Notification: Performance of SimCode: time 4.1e-07/0.247, allocations: 0 / 1.095 GB, free: 9.359 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01686/0.2639, allocations: 1.813 MB / 1.097 GB, free: 7.617 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.28/7.544, allocations: 6.094 kB / 1.097 GB, free: 7.613 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