Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_latest_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.00418/0.00418, allocations: 96.95 kB / 15.73 MB, free: 6.484 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.001188/0.001188, allocations: 189.7 kB / 16.67 MB, free: 6.391 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.714/2.714, allocations: 482.6 MB / 0.755 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 72.09 kB / 1.083 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3121, allocations: 162.3 MB / 1.242 GB, free: 9.891 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002745/0.3149, allocations: 1.545 MB / 1.243 GB, free: 8.332 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0003031/0.3152, allocations: 103.7 kB / 1.243 GB, free: 8.23 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.478e-05/0.3153, allocations: 11.88 kB / 1.243 GB, free: 8.219 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001118/0.3154, allocations: 11.92 kB / 1.243 GB, free: 8.207 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.415e-05/0.3155, allocations: 3.938 kB / 1.243 GB, free: 8.203 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001955/0.3157, allocations: 27.91 kB / 1.244 GB, free: 8.176 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 9.234e-05/0.3158, allocations: 59.83 kB / 1.244 GB, free: 8.117 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.3159, allocations: 23.98 kB / 1.244 GB, free: 8.094 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.962e-05/0.3159, allocations: 27.84 kB / 1.244 GB, free: 8.066 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.443e-05/0.316, allocations: 27.92 kB / 1.244 GB, free: 8.039 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.562e-05/0.316, allocations: 4 kB / 1.244 GB, free: 8.035 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.69e-05/0.3161, allocations: 15.98 kB / 1.244 GB, free: 8.02 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.888e-05/0.3161, allocations: 19.92 kB / 1.244 GB, free: 8 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.561e-05/0.3162, allocations: 19.88 kB / 1.244 GB, free: 7.98 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001259/0.3163, allocations: 63.72 kB / 1.244 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.3163, allocations: 0 / 1.244 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.233e-06/0.3163, allocations: 0 / 1.244 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.598e-06/0.3163, allocations: 4 kB / 1.244 GB, free: 7.914 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.0005143/0.3169, allocations: 379.2 kB / 1.244 GB, free: 7.492 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.3169, allocations: 16.02 kB / 1.244 GB, free: 7.477 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.519e-05/0.317, allocations: 34.75 kB / 1.244 GB, free: 7.434 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.496e-05/0.317, allocations: 4.891 kB / 1.244 GB, free: 7.43 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001666/0.3172, allocations: 184.2 kB / 1.244 GB, free: 7.211 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.928e-06/0.3172, allocations: 4.375 kB / 1.244 GB, free: 7.207 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.3172, allocations: 4.375 kB / 1.244 GB, free: 7.203 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002594/0.3175, allocations: 86.2 kB / 1.244 GB, free: 7.113 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.3175, allocations: 7.922 kB / 1.244 GB, free: 7.105 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.275e-06/0.3175, allocations: 4 kB / 1.244 GB, free: 7.102 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-06/0.3175, allocations: 0 / 1.244 GB, free: 7.102 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003026/0.3178, allocations: 83.86 kB / 1.245 GB, free: 7.02 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004956/0.3183, allocations: 324.7 kB / 1.245 GB, free: 6.652 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001987/0.3185, allocations: 66.56 kB / 1.245 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001504/0.3187, allocations: 36.91 kB / 1.245 GB, free: 6.539 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.3187, allocations: 7.984 kB / 1.245 GB, free: 6.531 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.516e-05/0.3187, allocations: 30.56 kB / 1.245 GB, free: 6.492 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.3188, allocations: 4 kB / 1.245 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0005333/0.3193, allocations: 137.5 kB / 1.245 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/0.3193, allocations: 55.41 kB / 1.245 GB, free: 6.281 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.29e-05/0.3194, allocations: 125.6 kB / 1.245 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/0.3195, allocations: 33.7 kB / 1.245 GB, free: 6.109 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.295e-05/0.3195, allocations: 96.03 kB / 1.245 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.574e-05/0.3195, allocations: 3.953 kB / 1.245 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.389e-05/0.3196, allocations: 21.7 kB / 1.245 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.3197, allocations: 322.7 kB / 1.246 GB, free: 5.656 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.3199, allocations: 35.95 kB / 1.246 GB, free: 5.621 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/0.32, allocations: 35.97 kB / 1.246 GB, free: 5.586 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002796/0.3203, allocations: 72.78 kB / 1.246 GB, free: 5.512 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.3203, allocations: 3.984 kB / 1.246 GB, free: 5.508 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003213/0.3206, allocations: 105.6 kB / 1.246 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.3207, allocations: 4 kB / 1.246 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.3207, allocations: 0 / 1.246 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.3207, allocations: 0 / 1.246 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.3208, allocations: 19.97 kB / 1.246 GB, free: 5.375 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.3208, allocations: 3.938 kB / 1.246 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.828e-05/0.3209, allocations: 11.98 kB / 1.246 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.3209, allocations: 0 / 1.246 GB, free: 5.359 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 9.091e-05/0.321, allocations: 121.8 kB / 1.246 GB, free: 5.23 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.603e-05/0.321, allocations: 7.953 kB / 1.246 GB, free: 5.223 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003635/0.3214, allocations: 109.5 kB / 1.246 GB, free: 5.105 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.3214, allocations: 4 kB / 1.246 GB, free: 5.102 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.3214, allocations: 0 / 1.246 GB, free: 5.102 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.3214, allocations: 0 / 1.246 GB, free: 5.102 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001792/0.3216, allocations: 185.6 kB / 1.246 GB, free: 4.871 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.3216, allocations: 4 kB / 1.246 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.19e-05/0.3217, allocations: 15.98 kB / 1.246 GB, free: 4.852 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.3217, allocations: 0 / 1.246 GB, free: 4.852 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.3218, allocations: 3.984 kB / 1.246 GB, free: 4.848 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3218, allocations: 3.938 kB / 1.246 GB, free: 4.844 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3218, allocations: 0 / 1.246 GB, free: 4.844 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003693/0.3221, allocations: 199.4 kB / 1.247 GB, free: 4.633 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.095e-05/0.3222, allocations: 89.05 kB / 1.247 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.31e-05/0.3222, allocations: 4.359 kB / 1.247 GB, free: 4.523 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.958e-05/0.3223, allocations: 7.984 kB / 1.247 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.499e-05/0.3224, allocations: 8 kB / 1.247 GB, free: 4.508 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-06/0.3224, allocations: 0 / 1.247 GB, free: 4.508 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.365e-05/0.3224, allocations: 95.27 kB / 1.247 GB, free: 4.414 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3224, allocations: 4 kB / 1.247 GB, free: 4.41 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002137/0.3227, allocations: 15.88 kB / 1.247 GB, free: 4.395 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.0006807/0.3233, allocations: 0.7479 MB / 1.248 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000337/0.3237, allocations: 75.92 kB / 1.248 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3237, allocations: 0 / 1.248 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001557/0.3239, allocations: 43.89 kB / 1.248 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.3241, allocations: 8 kB / 1.248 GB, free: 3.496 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.3259, allocations: 1.42 MB / 1.249 GB, free: 2 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/0.3262, allocations: 0.6924 MB / 1.25 GB, free: 1.281 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.222e-05/0.3263, allocations: 7.984 kB / 1.25 GB, free: 1.273 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.09e-05/0.3263, allocations: 19.44 kB / 1.25 GB, free: 1.254 MB / 0.9981 GB Notification: Performance of SimCode: time 3.01e-07/0.3263, allocations: 0 / 1.25 GB, free: 1.254 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7311/1.057, allocations: 1.818 MB / 1.252 GB, free: 14.68 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.999/9.057, allocations: 7.969 kB / 1.252 GB, free: 14.68 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches