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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 108.2 kB / 17.54 MB, free: 4.766 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 182.7 kB / 20.71 MB, free: 1.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 225.6 MB / 249.3 MB, free: 3.215 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.48/2.48, allocations: 476.7 MB / 0.7628 GB, free: 15.18 MB / 0.6075 GB " [Timeout remaining time 177] 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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001757/0.001757, allocations: 71.88 kB / 1.107 GB, free: 5.188 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7374/0.7391, allocations: 168.7 MB / 1.271 GB, free: 7.719 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002403/0.7415, allocations: 1.576 MB / 1.273 GB, free: 6.652 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0002795/0.7418, allocations: 109 kB / 1.273 GB, free: 6.582 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.599e-05/0.7419, allocations: 2.406 kB / 1.273 GB, free: 6.582 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001156/0.742, allocations: 7.391 kB / 1.273 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.175e-05/0.742, allocations: 14.17 kB / 1.273 GB, free: 6.566 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001965/0.7422, allocations: 24.39 kB / 1.273 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 9.975e-05/0.7423, allocations: 59.05 kB / 1.273 GB, free: 6.531 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.429e-05/0.7424, allocations: 14.27 kB / 1.273 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.159e-05/0.7424, allocations: 30.77 kB / 1.273 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.587e-05/0.7425, allocations: 29.22 kB / 1.273 GB, free: 6.5 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.694e-05/0.7425, allocations: 4.25 kB / 1.273 GB, free: 6.5 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.858e-05/0.7426, allocations: 14.03 kB / 1.273 GB, free: 6.496 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.098e-05/0.7426, allocations: 16.19 kB / 1.273 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.177e-05/0.7427, allocations: 24.09 kB / 1.273 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001227/0.7428, allocations: 63.05 kB / 1.273 GB, free: 6.445 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.7428, allocations: 0 / 1.273 GB, free: 6.445 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.563e-06/0.7428, allocations: 0.7812 kB / 1.273 GB, free: 6.445 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.977e-06/0.7428, allocations: 3.938 kB / 1.273 GB, free: 6.441 MB / 0.9981 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.0004258/0.7432, allocations: 380.1 kB / 1.274 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.7433, allocations: 9.031 kB / 1.274 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.914e-05/0.7433, allocations: 38.17 kB / 1.274 GB, free: 6.02 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.609e-05/0.7433, allocations: 8.203 kB / 1.274 GB, free: 6.016 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.7434, allocations: 187.8 kB / 1.274 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.7434, allocations: 2.734 kB / 1.274 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.157e-05/0.7434, allocations: 3.844 kB / 1.274 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000251/0.7437, allocations: 94.03 kB / 1.274 GB, free: 5.754 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.7437, allocations: 3.938 kB / 1.274 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.7437, allocations: 0.625 kB / 1.274 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.7437, allocations: 1.531 kB / 1.274 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003036/0.744, allocations: 83.62 kB / 1.274 GB, free: 5.734 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004334/0.7445, allocations: 324.1 kB / 1.274 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001908/0.7446, allocations: 62.09 kB / 1.274 GB, free: 5.406 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001479/0.7448, allocations: 40.3 kB / 1.275 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.374e-05/0.7448, allocations: 6.188 kB / 1.275 GB, free: 5.391 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.458e-05/0.7448, allocations: 35.69 kB / 1.275 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.7448, allocations: 0 / 1.275 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0005286/0.7454, allocations: 129.3 kB / 1.275 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.141e-05/0.7454, allocations: 64.09 kB / 1.275 GB, free: 5.23 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.191e-05/0.7455, allocations: 116.2 kB / 1.275 GB, free: 5.125 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.825e-06/0.7455, allocations: 26.61 kB / 1.275 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.857e-05/0.7455, allocations: 98.33 kB / 1.275 GB, free: 5 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.617e-05/0.7455, allocations: 8.969 kB / 1.275 GB, free: 4.992 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.958e-05/0.7455, allocations: 17.64 kB / 1.275 GB, free: 4.973 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.998e-05/0.7456, allocations: 318.9 kB / 1.275 GB, free: 4.656 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.7457, allocations: 40.72 kB / 1.275 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.7459, allocations: 33.02 kB / 1.275 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002713/0.7461, allocations: 70.2 kB / 1.275 GB, free: 4.625 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.7461, allocations: 1 kB / 1.275 GB, free: 4.625 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003063/0.7464, allocations: 103.2 kB / 1.276 GB, free: 4.582 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.7464, allocations: 9.594 kB / 1.276 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.7464, allocations: 3.984 kB / 1.276 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.7465, allocations: 0.9688 kB / 1.276 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.7466, allocations: 17.67 kB / 1.276 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.7466, allocations: 0 / 1.276 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.746e-05/0.7467, allocations: 19.16 kB / 1.276 GB, free: 4.566 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.7467, allocations: 1.75 kB / 1.276 GB, free: 4.566 MB / 0.9981 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.598e-05/0.7467, allocations: 114.8 kB / 1.276 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.681e-05/0.7468, allocations: 10.48 kB / 1.276 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000352/0.7471, allocations: 114.3 kB / 1.276 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.7471, allocations: 4.812 kB / 1.276 GB, free: 4.379 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.7471, allocations: 0 / 1.276 GB, free: 4.379 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.7471, allocations: 1.594 kB / 1.276 GB, free: 4.379 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001243/0.7472, allocations: 178.7 kB / 1.276 GB, free: 4.18 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.7472, allocations: 3.938 kB / 1.276 GB, free: 4.176 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.509e-05/0.7473, allocations: 15.81 kB / 1.276 GB, free: 4.176 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.7473, allocations: 4.812 kB / 1.276 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.214e-06/0.7473, allocations: 0 / 1.276 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.7473, allocations: 1.094 kB / 1.276 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.7473, allocations: 2.062 kB / 1.276 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003244/0.7477, allocations: 208.8 kB / 1.276 GB, free: 4.016 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.679e-05/0.7477, allocations: 83.5 kB / 1.276 GB, free: 3.918 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.339e-05/0.7477, allocations: 1.422 kB / 1.276 GB, free: 3.918 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.7478, allocations: 15.17 kB / 1.276 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.754e-05/0.7478, allocations: 8.844 kB / 1.276 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.184e-06/0.7478, allocations: 1.906 kB / 1.276 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 2.995e-05/0.7479, allocations: 89.89 kB / 1.276 GB, free: 3.832 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.7479, allocations: 0 / 1.276 GB, free: 3.832 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002161/0.7481, allocations: 19.33 kB / 1.276 GB, free: 3.824 MB / 0.9981 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.0004959/0.7486, allocations: 0.7375 MB / 1.277 GB, free: 3.148 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003346/0.7489, allocations: 78.7 kB / 1.277 GB, free: 3.137 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.7489, allocations: 0 / 1.277 GB, free: 3.137 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.7491, allocations: 44.44 kB / 1.277 GB, free: 3.125 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002459/0.7493, allocations: 9.484 kB / 1.277 GB, free: 3.121 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001507/0.7508, allocations: 1.422 MB / 1.279 GB, free: 17.89 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.7511, allocations: 0.6882 MB / 1.279 GB, free: 17.2 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.701e-05/0.7511, allocations: 7.203 kB / 1.279 GB, free: 17.2 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.584e-05/0.7512, allocations: 20.52 kB / 1.279 GB, free: 17.18 MB / 1.014 GB Notification: Performance of SimCode: time 3.7e-07/0.7512, allocations: 0 / 1.279 GB, free: 17.18 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02299/0.7742, allocations: 1.822 MB / 1.281 GB, free: 16.78 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.008/7.782, allocations: 5.984 kB / 1.281 GB, free: 16.78 MB / 1.014 GB " [Timeout remaining time 292] (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) [Timeout 420.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 13.04178470900115]