Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.492/1.492, allocations: 251.9 MB / 266.8 MB, free: 11 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00123/0.00123, allocations: 183.9 kB / 326.5 MB, free: 2.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.106/2.106, allocations: 205.4 MB / 0.5775 GB, free: 20.49 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009488/0.0009488, allocations: 92.5 kB / 0.6821 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003694/0.0003692, allocations: 9.531 kB / 0.7963 GB, free: 134.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2422, allocations: 106.4 MB / 0.9002 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1708/0.4131, allocations: 131.9 MB / 1.029 GB, free: 12.14 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002004/0.4133, allocations: 75.94 kB / 1.029 GB, free: 12.06 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00318/0.4165, allocations: 1.125 MB / 1.03 GB, free: 10.93 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.382e-06/0.4165, allocations: 0 / 1.03 GB, free: 10.93 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.011e-05/0.4166, allocations: 4 kB / 1.03 GB, free: 10.93 MB / 0.6823 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.0004582/0.417, allocations: 379.2 kB / 1.03 GB, free: 10.51 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.4171, allocations: 8.031 kB / 1.031 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.847e-05/0.4171, allocations: 38.56 kB / 1.031 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.057e-05/0.4172, allocations: 7.906 kB / 1.031 GB, free: 10.45 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001643/0.4173, allocations: 198.7 kB / 1.031 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.4174, allocations: 4 kB / 1.031 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.708e-05/0.4174, allocations: 4 kB / 1.031 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002689/0.4177, allocations: 93.64 kB / 1.031 GB, free: 10.11 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.4177, allocations: 0 / 1.031 GB, free: 10.11 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.4177, allocations: 4 kB / 1.031 GB, free: 10.11 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.4177, allocations: 4 kB / 1.031 GB, free: 10.1 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003112/0.418, allocations: 103.8 kB / 1.031 GB, free: 10 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005165/0.4185, allocations: 328.8 kB / 1.031 GB, free: 9.629 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002024/0.4188, allocations: 78.56 kB / 1.031 GB, free: 9.543 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.093e-05/0.4188, allocations: 0 / 1.031 GB, free: 9.543 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.4188, allocations: 30.56 kB / 1.031 GB, free: 9.504 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 8.82e-07/0.4188, allocations: 0 / 1.031 GB, free: 9.504 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0005527/0.4194, allocations: 181.5 kB / 1.032 GB, free: 9.32 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.54e-05/0.4194, allocations: 55.39 kB / 1.032 GB, free: 9.254 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.234e-05/0.4195, allocations: 108.8 kB / 1.032 GB, free: 9.141 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.4196, allocations: 25.7 kB / 1.032 GB, free: 9.109 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.915e-05/0.4196, allocations: 95.98 kB / 1.032 GB, free: 9.012 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.119e-05/0.4196, allocations: 7.906 kB / 1.032 GB, free: 9.004 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.398e-06/0.4196, allocations: 3.938 kB / 1.032 GB, free: 9 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.4198, allocations: 314.8 kB / 1.032 GB, free: 8.684 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.4199, allocations: 47.97 kB / 1.032 GB, free: 8.637 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001413/0.4201, allocations: 51.95 kB / 1.032 GB, free: 8.586 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001653/0.4202, allocations: 48.17 kB / 1.032 GB, free: 8.539 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.4202, allocations: 0 / 1.032 GB, free: 8.539 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003143/0.4206, allocations: 129.5 kB / 1.032 GB, free: 8.406 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.4206, allocations: 8 kB / 1.032 GB, free: 8.398 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.4206, allocations: 4 kB / 1.032 GB, free: 8.395 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.4206, allocations: 0 / 1.032 GB, free: 8.395 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.4208, allocations: 23.97 kB / 1.032 GB, free: 8.371 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.4208, allocations: 3.953 kB / 1.032 GB, free: 8.367 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.511e-05/0.4209, allocations: 15.98 kB / 1.032 GB, free: 8.352 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.925e-05/0.4209, allocations: 4 kB / 1.032 GB, free: 8.348 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.485e-05/0.421, allocations: 117.8 kB / 1.033 GB, free: 8.223 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.596e-05/0.421, allocations: 7.984 kB / 1.033 GB, free: 8.215 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000376/0.4214, allocations: 133.5 kB / 1.033 GB, free: 8.07 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.4214, allocations: 0 / 1.033 GB, free: 8.07 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.4214, allocations: 4 kB / 1.033 GB, free: 8.066 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.4214, allocations: 3.953 kB / 1.033 GB, free: 8.062 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001687/0.4216, allocations: 177.6 kB / 1.033 GB, free: 7.84 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.4216, allocations: 0 / 1.033 GB, free: 7.84 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001013/0.4217, allocations: 27.97 kB / 1.033 GB, free: 7.812 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.4217, allocations: 0 / 1.033 GB, free: 7.812 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/0.4217, allocations: 0 / 1.033 GB, free: 7.812 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.4217, allocations: 0 / 1.033 GB, free: 7.812 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.4218, allocations: 0 / 1.033 GB, free: 7.812 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003633/0.4221, allocations: 235.3 kB / 1.033 GB, free: 7.566 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.794e-05/0.4222, allocations: 88.95 kB / 1.033 GB, free: 7.461 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.38e-05/0.4222, allocations: 0 / 1.033 GB, free: 7.461 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.4223, allocations: 23.98 kB / 1.033 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.663e-05/0.4224, allocations: 3.984 kB / 1.033 GB, free: 7.434 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.142e-06/0.4224, allocations: 0 / 1.033 GB, free: 7.434 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.973e-05/0.4224, allocations: 95.27 kB / 1.033 GB, free: 7.34 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4224, allocations: 0 / 1.033 GB, free: 7.34 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.000209/0.4226, allocations: 8 kB / 1.033 GB, free: 7.332 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006402/0.4233, allocations: 0.7638 MB / 1.034 GB, free: 6.543 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003194/0.4236, allocations: 99.92 kB / 1.034 GB, free: 6.445 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.4236, allocations: 0 / 1.034 GB, free: 6.445 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001471/0.4238, allocations: 51.95 kB / 1.034 GB, free: 6.395 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001632/0.4239, allocations: 4 kB / 1.034 GB, free: 6.391 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00113/0.4251, allocations: 0.5764 MB / 1.035 GB, free: 5.762 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.4254, allocations: 0.6926 MB / 1.035 GB, free: 5.043 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.428e-05/0.4254, allocations: 7.938 kB / 1.035 GB, free: 5.035 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.817e-05/0.4255, allocations: 23.42 kB / 1.035 GB, free: 5.012 MB / 0.6823 GB Notification: Performance of SimCode: time 2.61e-07/0.4255, allocations: 0 / 1.035 GB, free: 5.012 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01396/0.4395, allocations: 1.455 MB / 1.037 GB, free: 3.68 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000209/0.4397, allocations: 172.3 kB / 1.037 GB, free: 3.445 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.541/1.981, allocations: 0 / 1.037 GB, free: 3.445 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.pipe 2>&1)