Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_11_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.001276/0.001276, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.345/1.345, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.597/2.597, allocations: 469.8 MB / 0.7424 GB, free: 7.484 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001758/0.001758, allocations: 69.75 kB / 0.9087 GB, free: 34.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2586, allocations: 159.2 MB / 1.064 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002439/0.2611, allocations: 1.54 MB / 1.066 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002736/0.2613, allocations: 113.5 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.721e-05/0.2614, allocations: 0 / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.17e-05/0.2615, allocations: 3.938 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.261e-05/0.2615, allocations: 11.88 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001901/0.2617, allocations: 27.95 kB / 1.066 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.273e-05/0.2618, allocations: 59.78 kB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.921e-05/0.2619, allocations: 23.98 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.177e-05/0.262, allocations: 31.89 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.589e-05/0.262, allocations: 23.86 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.813e-05/0.2621, allocations: 8 kB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.339e-05/0.2621, allocations: 15.98 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.671e-05/0.2622, allocations: 11.98 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.459e-05/0.2622, allocations: 19.88 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001097/0.2623, allocations: 63.8 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2623, allocations: 3.984 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.343e-06/0.2623, allocations: 0 / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.948e-06/0.2623, allocations: 0 / 1.066 GB, free: 12.29 MB / 0.8262 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.0004824/0.2628, allocations: 375.5 kB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.2629, allocations: 12.03 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.919e-05/0.2629, allocations: 38.73 kB / 1.066 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.517e-05/0.2629, allocations: 8.844 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001631/0.2631, allocations: 196.1 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.414e-06/0.2631, allocations: 384 / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.026e-05/0.2631, allocations: 4.375 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002539/0.2634, allocations: 86.2 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.2634, allocations: 3.938 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.2634, allocations: 3.938 kB / 1.067 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.2634, allocations: 3.984 kB / 1.067 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003017/0.2637, allocations: 87.86 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004767/0.2642, allocations: 316.8 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001987/0.2644, allocations: 66.56 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001538/0.2646, allocations: 40.91 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.81e-05/0.2646, allocations: 8 kB / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/0.2647, allocations: 30.56 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.113e-06/0.2647, allocations: 4 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0005177/0.2652, allocations: 133.5 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.2652, allocations: 55.34 kB / 1.067 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.747e-05/0.2653, allocations: 121.8 kB / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.2654, allocations: 25.7 kB / 1.068 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.579e-05/0.2654, allocations: 99.98 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.703e-05/0.2654, allocations: 11.84 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.624e-05/0.2655, allocations: 17.7 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.2656, allocations: 318.8 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.2657, allocations: 35.95 kB / 1.068 GB, free: 10 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001361/0.2659, allocations: 31.97 kB / 1.068 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002699/0.2662, allocations: 72.78 kB / 1.068 GB, free: 9.895 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.2662, allocations: 0 / 1.068 GB, free: 9.895 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003204/0.2665, allocations: 105.5 kB / 1.068 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.2665, allocations: 8 kB / 1.068 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-06/0.2665, allocations: 3.938 kB / 1.068 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.478e-06/0.2665, allocations: 0 / 1.068 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.2667, allocations: 23.97 kB / 1.068 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.2667, allocations: 3.984 kB / 1.068 GB, free: 9.746 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.332e-05/0.2668, allocations: 11.98 kB / 1.068 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.2668, allocations: 0 / 1.068 GB, free: 9.734 MB / 0.8262 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.882e-05/0.2669, allocations: 121.8 kB / 1.068 GB, free: 9.605 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.528e-05/0.2669, allocations: 4.328 kB / 1.068 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003577/0.2672, allocations: 113.5 kB / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.2673, allocations: 0 / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.2673, allocations: 0 / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2673, allocations: 4 kB / 1.068 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001816/0.2675, allocations: 181.6 kB / 1.069 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.2675, allocations: 4 kB / 1.069 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.961e-05/0.2676, allocations: 15.92 kB / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.2676, allocations: 4 kB / 1.069 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.752e-06/0.2676, allocations: 0 / 1.069 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.2676, allocations: 3.984 kB / 1.069 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.2676, allocations: 3.938 kB / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000366/0.268, allocations: 203.3 kB / 1.069 GB, free: 9.004 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.345e-05/0.268, allocations: 85 kB / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/0.268, allocations: 12 kB / 1.069 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.9e-05/0.2681, allocations: 7.984 kB / 1.069 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.94e-05/0.2682, allocations: 4 kB / 1.069 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.2682, allocations: 0 / 1.069 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.701e-05/0.2683, allocations: 95.2 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2683, allocations: 4 kB / 1.069 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002176/0.2685, allocations: 19.88 kB / 1.069 GB, free: 8.762 MB / 0.8262 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.0006589/0.2691, allocations: 0.7397 MB / 1.07 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003223/0.2695, allocations: 71.92 kB / 1.07 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.2695, allocations: 0 / 1.07 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001523/0.2696, allocations: 43.89 kB / 1.07 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002391/0.2699, allocations: 12 kB / 1.07 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001692/0.2716, allocations: 1.426 MB / 1.071 GB, free: 6.367 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002797/0.2719, allocations: 0.6884 MB / 1.072 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.702e-05/0.2719, allocations: 7.984 kB / 1.072 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.544e-05/0.272, allocations: 23.42 kB / 1.072 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.272, allocations: 0 / 1.072 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.35/1.622, allocations: 1.781 MB / 1.074 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/13.37, allocations: 4 kB / 1.074 GB, free: 3.895 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches