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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.004653/0.004653, allocations: 104.9 kB / 15.74 MB, free: 6.059 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.001202/0.001202, allocations: 199.8 kB / 16.68 MB, free: 5.969 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.341/1.341, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.481/2.481, allocations: 437 MB / 0.7105 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 67.83 kB / 1.018 GB, free: 9.887 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8233/0.8247, allocations: 151.6 MB / 1.166 GB, free: 3.793 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002587/0.8273, allocations: 1.54 MB / 1.168 GB, free: 2.242 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0003125/0.8276, allocations: 120.5 kB / 1.168 GB, free: 2.121 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.752e-05/0.8277, allocations: 0 / 1.168 GB, free: 2.121 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001238/0.8278, allocations: 11.92 kB / 1.168 GB, free: 2.109 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 2.492e-05/0.8279, allocations: 7.875 kB / 1.168 GB, free: 2.102 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002194/0.8281, allocations: 23.97 kB / 1.168 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.117e-05/0.8282, allocations: 59.78 kB / 1.168 GB, free: 2.02 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.8283, allocations: 27.97 kB / 1.168 GB, free: 1.992 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 6.192e-05/0.8284, allocations: 23.92 kB / 1.168 GB, free: 1.969 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.113e-05/0.8285, allocations: 23.91 kB / 1.168 GB, free: 1.945 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.01e-05/0.8285, allocations: 4 kB / 1.168 GB, free: 1.941 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.584e-05/0.8286, allocations: 19.98 kB / 1.168 GB, free: 1.922 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 4.464e-05/0.8286, allocations: 15.94 kB / 1.168 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.917e-05/0.8287, allocations: 23.86 kB / 1.168 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001343/0.8288, allocations: 59.8 kB / 1.168 GB, free: 1.824 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.8288, allocations: 0 / 1.168 GB, free: 1.824 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.583e-06/0.8288, allocations: 0 / 1.168 GB, free: 1.824 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.8288, allocations: 0 / 1.168 GB, free: 1.824 MB / 0.8887 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.0005412/0.8294, allocations: 381.5 kB / 1.168 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.8294, allocations: 16.92 kB / 1.168 GB, free: 1.387 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.994e-05/0.8295, allocations: 42.67 kB / 1.168 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.335e-05/0.8295, allocations: 8.844 kB / 1.168 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001726/0.8297, allocations: 184.2 kB / 1.169 GB, free: 1.109 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.816e-06/0.8297, allocations: 384 / 1.169 GB, free: 1.109 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.399e-05/0.8297, allocations: 4.375 kB / 1.169 GB, free: 1.105 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002669/0.83, allocations: 86.2 kB / 1.169 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.83, allocations: 7.875 kB / 1.169 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.83, allocations: 4 kB / 1.169 GB, free: 1.004 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.8301, allocations: 3.938 kB / 1.169 GB, free: 1 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002813/0.8303, allocations: 83.91 kB / 1.169 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005287/0.8309, allocations: 324.8 kB / 1.169 GB, free: 0.5508 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001871/0.8311, allocations: 62.47 kB / 1.169 GB, free: 492 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001434/0.8312, allocations: 44.91 kB / 1.169 GB, free: 444 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 4.385e-05/0.8313, allocations: 8 kB / 1.169 GB, free: 436 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/0.8313, allocations: 34.56 kB / 1.169 GB, free: 392 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.8313, allocations: 0 / 1.169 GB, free: 392 kB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0005177/0.8318, allocations: 133.5 kB / 1.169 GB, free: 252 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.8319, allocations: 51.41 kB / 1.169 GB, free: 188 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.101e-05/0.832, allocations: 121.8 kB / 1.17 GB, free: 56 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.832, allocations: 29.7 kB / 1.17 GB, free: 20 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 6.889e-05/0.8321, allocations: 92.03 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.146e-05/0.8321, allocations: 15.84 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-05/0.8322, allocations: 13.72 kB / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.8323, allocations: 322.8 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.8324, allocations: 35.95 kB / 1.17 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000121/0.8325, allocations: 31.97 kB / 1.17 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002531/0.8328, allocations: 77.05 kB / 1.17 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.8328, allocations: 0 / 1.17 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003023/0.8331, allocations: 113.5 kB / 1.17 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.8331, allocations: 4 kB / 1.17 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.8331, allocations: 0 / 1.17 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.8332, allocations: 0 / 1.17 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.8333, allocations: 19.98 kB / 1.17 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/0.8333, allocations: 0 / 1.17 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.418e-05/0.8334, allocations: 15.97 kB / 1.17 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.8334, allocations: 0 / 1.17 GB, free: 15.27 MB / 0.9044 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.205e-05/0.8335, allocations: 121.8 kB / 1.17 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.422e-05/0.8335, allocations: 0 / 1.17 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003518/0.8339, allocations: 117.4 kB / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-06/0.8339, allocations: 0 / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.8339, allocations: 0 / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.8339, allocations: 0 / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001798/0.8341, allocations: 185.5 kB / 1.171 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.8341, allocations: 4 kB / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.978e-05/0.8342, allocations: 11.98 kB / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.8342, allocations: 4 kB / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.636e-06/0.8342, allocations: 0 / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.8342, allocations: 3.938 kB / 1.171 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.8342, allocations: 0 / 1.171 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003582/0.8346, allocations: 203.4 kB / 1.171 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.378e-05/0.8347, allocations: 81.02 kB / 1.171 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.637e-05/0.8347, allocations: 7.984 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.8348, allocations: 11.98 kB / 1.171 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.22e-05/0.8348, allocations: 11.94 kB / 1.171 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.407e-06/0.8348, allocations: 0 / 1.171 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.376e-05/0.8349, allocations: 99.58 kB / 1.171 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8349, allocations: 4 kB / 1.171 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002397/0.8352, allocations: 15.94 kB / 1.171 GB, free: 14.29 MB / 0.9044 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.0006608/0.8358, allocations: 0.732 MB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003349/0.8362, allocations: 75.91 kB / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.8362, allocations: 3.938 kB / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001578/0.8364, allocations: 39.95 kB / 1.172 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003135/0.8367, allocations: 8 kB / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001654/0.8383, allocations: 1.429 MB / 1.173 GB, free: 11.9 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002398/0.8386, allocations: 0.6963 MB / 1.174 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.046e-05/0.8387, allocations: 4 kB / 1.174 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.196e-05/0.8387, allocations: 15.42 kB / 1.174 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of SimCode: time 2.51e-07/0.8387, allocations: 0 / 1.174 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01567/0.8544, allocations: 1.817 MB / 1.176 GB, free: 9.418 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.881/8.736, allocations: 4.484 kB / 1.176 GB, free: 9.414 MB / 0.9044 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