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.585/1.585, allocations: 249.3 MB / 261.8 MB, free: 5.902 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001062/0.001063, allocations: 186.6 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.715/1.715, allocations: 205.2 MB / 0.572 GB, free: 10.61 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.0009585/0.0009587, allocations: 86.52 kB / 0.6764 GB, free: 15.58 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.871e-05/3.891e-05, allocations: 4 kB / 0.788 GB, free: 96.99 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2392, allocations: 106.3 MB / 0.8919 GB, free: 6.555 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8471/1.086, allocations: 131.8 MB / 1.021 GB, free: 2.879 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/1.087, allocations: 72.08 kB / 1.021 GB, free: 2.84 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003408/1.09, allocations: 1.118 MB / 1.022 GB, free: 1.824 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.362e-06/1.09, allocations: 0 / 1.022 GB, free: 1.824 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.29e-05/1.09, allocations: 6.734 kB / 1.022 GB, free: 1.82 MB / 0.6355 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.0004738/1.091, allocations: 369.8 kB / 1.022 GB, free: 1.418 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/1.091, allocations: 12.03 kB / 1.022 GB, free: 1.406 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.388e-05/1.091, allocations: 34 kB / 1.022 GB, free: 1.367 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.066e-05/1.091, allocations: 11.89 kB / 1.022 GB, free: 1.355 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002148/1.091, allocations: 190.4 kB / 1.022 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/1.091, allocations: 4 kB / 1.022 GB, free: 1.129 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.661e-05/1.091, allocations: 11.3 kB / 1.022 GB, free: 1.121 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001645/1.091, allocations: 68.3 kB / 1.022 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/1.091, allocations: 0 / 1.022 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/1.091, allocations: 0 / 1.022 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/1.091, allocations: 0 / 1.022 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.666e-05/1.091, allocations: 30.31 kB / 1.022 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005645/1.092, allocations: 344.9 kB / 1.023 GB, free: 0.6719 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.633e-05/1.092, allocations: 33.58 kB / 1.023 GB, free: 0.6367 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.035e-05/1.092, allocations: 26.27 kB / 1.023 GB, free: 0.6172 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.085e-05/1.092, allocations: 0 / 1.023 GB, free: 0.6172 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/1.092, allocations: 38.73 kB / 1.023 GB, free: 0.5703 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/1.092, allocations: 3.938 kB / 1.023 GB, free: 0.5664 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0001683/1.092, allocations: 59.77 kB / 1.023 GB, free: 0.5117 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.341e-05/1.092, allocations: 51.41 kB / 1.023 GB, free: 460 kB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.819e-05/1.092, allocations: 104.2 kB / 1.023 GB, free: 352 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/1.092, allocations: 25.7 kB / 1.023 GB, free: 320 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.331e-05/1.093, allocations: 102 kB / 1.023 GB, free: 220 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.836e-05/1.093, allocations: 11.83 kB / 1.023 GB, free: 208 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.19e-06/1.093, allocations: 3.875 kB / 1.023 GB, free: 208 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001372/1.093, allocations: 314.8 kB / 1.024 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.834e-05/1.093, allocations: 11.86 kB / 1.024 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.44e-05/1.093, allocations: 11.06 kB / 1.024 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.807e-05/1.093, allocations: 7.875 kB / 1.024 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/1.093, allocations: 4 kB / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.731e-05/1.093, allocations: 65.09 kB / 1.024 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/1.093, allocations: 11.98 kB / 1.024 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/1.093, allocations: 0 / 1.024 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.345e-05/1.093, allocations: 4 kB / 1.024 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/1.093, allocations: 15.98 kB / 1.024 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/1.093, allocations: 7.953 kB / 1.024 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.091e-05/1.093, allocations: 23.05 kB / 1.024 GB, free: 15.74 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.946e-05/1.093, allocations: 0 / 1.024 GB, free: 15.74 MB / 0.6511 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 () * 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 7.246e-05/1.093, allocations: 104.9 kB / 1.024 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.679e-05/1.093, allocations: 7.906 kB / 1.024 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001513/1.094, allocations: 72.56 kB / 1.024 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/1.094, allocations: 0 / 1.024 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/1.094, allocations: 4 kB / 1.024 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/1.094, allocations: 4.188 kB / 1.024 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000177/1.094, allocations: 176.8 kB / 1.024 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/1.094, allocations: 4 kB / 1.024 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001106/1.094, allocations: 19.98 kB / 1.024 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/1.094, allocations: 3.984 kB / 1.024 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/1.094, allocations: 0 / 1.024 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/1.094, allocations: 0 / 1.024 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/1.094, allocations: 0 / 1.024 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001649/1.094, allocations: 161.3 kB / 1.024 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.741e-05/1.094, allocations: 81.02 kB / 1.024 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/1.094, allocations: 11.81 kB / 1.024 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001179/1.094, allocations: 19.92 kB / 1.024 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.404e-05/1.094, allocations: 3.984 kB / 1.024 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.141e-06/1.094, allocations: 0 / 1.024 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.345e-05/1.094, allocations: 92.08 kB / 1.024 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.2e-07/1.094, allocations: 4 kB / 1.024 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002074/1.095, allocations: 8 kB / 1.024 GB, free: 14.92 MB / 0.6511 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 () * 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.0004592/1.095, allocations: 0.6971 MB / 1.025 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001005/1.095, allocations: 34.23 kB / 1.025 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/1.095, allocations: 0 / 1.025 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 3.591e-05/1.095, allocations: 22.94 kB / 1.025 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001537/1.095, allocations: 336 / 1.025 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003686/1.096, allocations: 137.7 kB / 1.025 GB, free: 14 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002531/1.096, allocations: 0.6926 MB / 1.026 GB, free: 13.28 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.133e-05/1.096, allocations: 4 kB / 1.026 GB, free: 13.28 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.555e-05/1.096, allocations: 22.05 kB / 1.026 GB, free: 13.26 MB / 0.6511 GB Notification: Performance of SimCode: time 6.92e-07/1.096, allocations: 4 kB / 1.026 GB, free: 13.26 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01583/1.112, allocations: 1.465 MB / 1.027 GB, free: 11.89 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002483/1.112, allocations: 150.1 kB / 1.028 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.619/2.731, allocations: 0 / 1.028 GB, free: 11.68 MB / 0.6511 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)