Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_10_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.001312/0.001312, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001415/0.001415, allocations: 190.8 kB / 16.14 MB, free: 6.645 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.319/1.319, allocations: 222.9 MB / 239.8 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.49/2.49, allocations: 437 MB / 0.7099 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 63.89 kB / 0.8687 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6418/0.6432, allocations: 151.6 MB / 1.017 GB, free: 2.777 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.00285/0.6461, allocations: 1.593 MB / 1.018 GB, free: 1.176 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003493/0.6465, allocations: 112.5 kB / 1.018 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.984e-05/0.6466, allocations: 4 kB / 1.018 GB, free: 1.059 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.6467, allocations: 7.922 kB / 1.018 GB, free: 1.051 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.56e-05/0.6468, allocations: 7.938 kB / 1.018 GB, free: 1.043 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.647, allocations: 31.97 kB / 1.018 GB, free: 1.012 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.947e-05/0.6471, allocations: 51.78 kB / 1.018 GB, free: 0.9609 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.6472, allocations: 27.89 kB / 1.019 GB, free: 0.9336 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.236e-05/0.6473, allocations: 23.92 kB / 1.019 GB, free: 0.9102 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.895e-05/0.6474, allocations: 27.91 kB / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.652e-05/0.6474, allocations: 0 / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.403e-05/0.6475, allocations: 11.98 kB / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.242e-05/0.6475, allocations: 11.94 kB / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.262e-05/0.6476, allocations: 31.84 kB / 1.019 GB, free: 0.8281 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001231/0.6477, allocations: 43.81 kB / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.6477, allocations: 3.938 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.222e-06/0.6477, allocations: 0 / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.6477, allocations: 8 kB / 1.019 GB, free: 0.7734 MB / 0.7637 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.0005294/0.6483, allocations: 385.6 kB / 1.019 GB, free: 356 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.6483, allocations: 8.031 kB / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.679e-05/0.6484, allocations: 42.67 kB / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.144e-05/0.6484, allocations: 4.922 kB / 1.019 GB, free: 292 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001507/0.6485, allocations: 188.2 kB / 1.019 GB, free: 64 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.6486, allocations: 4.375 kB / 1.019 GB, free: 60 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.195e-05/0.6486, allocations: 384 / 1.019 GB, free: 60 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002786/0.6489, allocations: 90.27 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.6489, allocations: 3.938 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.6489, allocations: 3.938 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/0.6489, allocations: 0 / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002975/0.6492, allocations: 83.84 kB / 1.019 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000476/0.6497, allocations: 336.7 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001913/0.6499, allocations: 58.56 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001509/0.6501, allocations: 48.91 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.265e-05/0.6501, allocations: 0 / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.848e-05/0.6501, allocations: 30.56 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.6501, allocations: 0 / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0005211/0.6507, allocations: 141.5 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/0.6507, allocations: 55.41 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.725e-05/0.6508, allocations: 109.8 kB / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.338e-05/0.6508, allocations: 25.7 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.584e-05/0.6509, allocations: 96.12 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.946e-05/0.6509, allocations: 11.75 kB / 1.02 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.574e-05/0.6509, allocations: 17.72 kB / 1.02 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.248e-05/0.651, allocations: 326.7 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.6512, allocations: 31.97 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001342/0.6513, allocations: 35.95 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002597/0.6516, allocations: 76.72 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.6516, allocations: 0 / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003036/0.6519, allocations: 105.6 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.6519, allocations: 4 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.6519, allocations: 0 / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.628e-06/0.6519, allocations: 3.938 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.6521, allocations: 23.98 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.6521, allocations: 7.922 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.778e-05/0.6522, allocations: 15.97 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.6522, allocations: 0 / 1.021 GB, free: 14.21 MB / 0.7794 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.876e-05/0.6523, allocations: 118.3 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.887e-05/0.6523, allocations: 7.906 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003539/0.6527, allocations: 113.8 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.6527, allocations: 8.031 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.6527, allocations: 0 / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.6527, allocations: 0 / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001527/0.6528, allocations: 181.6 kB / 1.021 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.6529, allocations: 0 / 1.021 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.449e-05/0.653, allocations: 15.98 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.653, allocations: 0 / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.667e-06/0.653, allocations: 4 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.653, allocations: 3.938 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.653, allocations: 0 / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003474/0.6533, allocations: 203.3 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.004e-05/0.6534, allocations: 81.11 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.42e-05/0.6534, allocations: 4 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.6535, allocations: 15.97 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.284e-05/0.6536, allocations: 0 / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.6536, allocations: 0 / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.589e-05/0.6536, allocations: 95.27 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6536, allocations: 0 / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002242/0.6538, allocations: 19.84 kB / 1.022 GB, free: 13.25 MB / 0.7794 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.0005868/0.6544, allocations: 0.7358 MB / 1.022 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003139/0.6548, allocations: 79.91 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.6548, allocations: 0 / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001525/0.6549, allocations: 43.95 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002632/0.6552, allocations: 7.938 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00157/0.6568, allocations: 1.429 MB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001992/0.657, allocations: 0.6926 MB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.241e-05/0.657, allocations: 7.984 kB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.907e-05/0.6571, allocations: 19.38 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.6571, allocations: 0 / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01/0.6671, allocations: 1.547 MB / 1.026 GB, free: 8.641 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001597/0.6673, allocations: 188.1 kB / 1.026 GB, free: 8.387 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.649/2.317, allocations: 3.938 kB / 1.026 GB, free: 8.383 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches