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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001256/0.001256, 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.001421/0.001421, allocations: 193.6 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.322/1.322, allocations: 222.9 MB / 239.8 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.298/2.298, allocations: 390.2 MB / 0.6643 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 60.05 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5476/0.549, allocations: 140.4 MB / 0.949 GB, free: 9.242 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002177/0.5512, allocations: 1.588 MB / 0.9506 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002702/0.5515, allocations: 113 kB / 0.9507 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.504e-05/0.5515, allocations: 0 / 0.9507 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001021/0.5516, allocations: 9.312 kB / 0.9507 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.403e-05/0.5516, allocations: 5.312 kB / 0.9507 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001578/0.5518, allocations: 24.22 kB / 0.9507 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.637e-05/0.5519, allocations: 49.84 kB / 0.9508 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.239e-05/0.552, allocations: 36.27 kB / 0.9508 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.595e-05/0.552, allocations: 21.55 kB / 0.9508 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.145e-05/0.5521, allocations: 28.16 kB / 0.9509 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.52e-05/0.5521, allocations: 2.75 kB / 0.9509 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.981e-05/0.5522, allocations: 6.875 kB / 0.9509 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.584e-05/0.5522, allocations: 17.52 kB / 0.9509 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.119e-05/0.5522, allocations: 29.36 kB / 0.9509 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.175e-05/0.5523, allocations: 54.92 kB / 0.951 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.5524, allocations: 4 kB / 0.951 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.11e-07/0.5524, allocations: 0 / 0.951 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.036e-06/0.5524, allocations: 0 / 0.951 GB, free: 7.719 MB / 0.7169 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.000389/0.5528, allocations: 383.7 kB / 0.9514 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.5528, allocations: 8.25 kB / 0.9514 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.357e-05/0.5528, allocations: 33.5 kB / 0.9514 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.509e-05/0.5529, allocations: 11.59 kB / 0.9514 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.882e-05/0.553, allocations: 183.1 kB / 0.9516 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.197e-06/0.553, allocations: 5.75 kB / 0.9516 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/0.553, allocations: 11.06 kB / 0.9516 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002486/0.5532, allocations: 93.69 kB / 0.9517 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.5533, allocations: 3.938 kB / 0.9517 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.397e-06/0.5533, allocations: 4 kB / 0.9517 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-06/0.5533, allocations: 1.375 kB / 0.9517 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00028/0.5536, allocations: 77.3 kB / 0.9518 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004089/0.554, allocations: 332.5 kB / 0.9521 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001752/0.5542, allocations: 62.64 kB / 0.9521 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001373/0.5543, allocations: 43.77 kB / 0.9522 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.948e-05/0.5544, allocations: 2.5 kB / 0.9522 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.268e-05/0.5544, allocations: 31.84 kB / 0.9522 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.5544, allocations: 4 kB / 0.9522 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.000505/0.5549, allocations: 139 kB / 0.9524 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.955e-05/0.5549, allocations: 55.41 kB / 0.9524 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.531e-05/0.555, allocations: 110.6 kB / 0.9525 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.464e-06/0.555, allocations: 31.2 kB / 0.9525 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.542e-05/0.555, allocations: 95.14 kB / 0.9526 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.753e-05/0.555, allocations: 17.2 kB / 0.9526 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.948e-05/0.5551, allocations: 12.03 kB / 0.9527 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.535e-05/0.5551, allocations: 320.2 kB / 0.953 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/0.5553, allocations: 34.17 kB / 0.953 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001309/0.5554, allocations: 40.11 kB / 0.953 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002548/0.5557, allocations: 69.53 kB / 0.9531 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.5557, allocations: 0 / 0.9531 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002977/0.556, allocations: 108.8 kB / 0.9532 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.556, allocations: 5 kB / 0.9532 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.556, allocations: 0 / 0.9532 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.556, allocations: 1.25 kB / 0.9532 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.5561, allocations: 18.53 kB / 0.9532 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.5562, allocations: 0 / 0.9532 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.39e-05/0.5562, allocations: 11.67 kB / 0.9532 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.5563, allocations: 1.312 kB / 0.9532 GB, free: 5.613 MB / 0.7169 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 4.938e-05/0.5563, allocations: 129.7 kB / 0.9534 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.678e-05/0.5563, allocations: 5.25 kB / 0.9534 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003435/0.5567, allocations: 112 kB / 0.9535 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.5567, allocations: 1.062 kB / 0.9535 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.5567, allocations: 0 / 0.9535 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.5567, allocations: 1 kB / 0.9535 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001225/0.5568, allocations: 190 kB / 0.9537 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.5568, allocations: 3.938 kB / 0.9537 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.277e-05/0.5569, allocations: 19.44 kB / 0.9537 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.557, allocations: 0 / 0.9537 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.557, allocations: 1.312 kB / 0.9537 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.557, allocations: 4 kB / 0.9537 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.557, allocations: 0 / 0.9537 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000308/0.5573, allocations: 204.5 kB / 0.9539 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.573e-05/0.5573, allocations: 82.25 kB / 0.954 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.453e-05/0.5573, allocations: 5.516 kB / 0.954 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.5574, allocations: 13.67 kB / 0.954 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.218e-05/0.5575, allocations: 6.891 kB / 0.954 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/0.5575, allocations: 1.375 kB / 0.954 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.966e-05/0.5575, allocations: 94.95 kB / 0.9541 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5575, allocations: 0 / 0.9541 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002245/0.5578, allocations: 17.91 kB / 0.9541 GB, free: 4.777 MB / 0.7169 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.0004544/0.5582, allocations: 0.7326 MB / 0.9548 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003074/0.5585, allocations: 74.98 kB / 0.9549 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.5585, allocations: 0 / 0.9549 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000142/0.5587, allocations: 43.67 kB / 0.9549 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.559, allocations: 6.875 kB / 0.9549 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001397/0.5604, allocations: 1.441 MB / 0.9563 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.245e-05/0.5605, allocations: 0.6894 MB / 0.957 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.252e-05/0.5605, allocations: 8.047 kB / 0.957 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.768e-05/0.5606, allocations: 17.62 kB / 0.957 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of SimCode: time 2.01e-07/0.5606, allocations: 0 / 0.957 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1803/0.7409, allocations: 1.55 MB / 0.9585 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001646/0.7411, allocations: 192.1 kB / 0.9587 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.96/2.701, allocations: 0 / 0.9587 GB, free: 0.918 MB / 0.7169 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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