Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_maint_8_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 8.0.1-maint.8.0.x/package.mo): time 1.691/1.691, allocations: 285.6 MB / 293.1 MB, free: 10.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001048/0.001048, allocations: 188.2 kB / 361.4 MB, free: 6.832 MB / 298.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.62 GB, free: 11.64 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008531/0.0008529, allocations: 103.2 kB / 0.733 GB, free: 44.16 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.906e-05/3.93e-05, allocations: 8 kB / 0.8518 GB, free: 2.645 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7608/0.7609, allocations: 115.3 MB / 0.9644 GB, free: 78.81 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2013/0.9622, allocations: 137.4 MB / 1.099 GB, free: 2.301 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/0.9625, allocations: 73.69 kB / 1.099 GB, free: 2.23 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.00341/0.966, allocations: 1.119 MB / 1.1 GB, free: 1.141 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.487e-06/0.966, allocations: 0.6562 kB / 1.1 GB, free: 1.141 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.021e-05/0.966, allocations: 4.812 kB / 1.1 GB, free: 1.137 MB / 0.698 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.0004718/0.9665, allocations: 374.4 kB / 1.1 GB, free: 0.7305 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.9666, allocations: 8.031 kB / 1.1 GB, free: 0.7227 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.938e-05/0.9666, allocations: 9.656 kB / 1.1 GB, free: 0.7148 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001938/0.9668, allocations: 186.8 kB / 1.1 GB, free: 0.4961 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.9668, allocations: 4.625 kB / 1.1 GB, free: 0.4922 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.817e-05/0.9668, allocations: 6 kB / 1.1 GB, free: 500 kB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000102/0.967, allocations: 26.44 kB / 1.1 GB, free: 476 kB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001153/0.9671, allocations: 62.39 kB / 1.1 GB, free: 408 kB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.9671, allocations: 0 / 1.1 GB, free: 408 kB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.9671, allocations: 4.531 kB / 1.1 GB, free: 404 kB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.9671, allocations: 0.6875 kB / 1.1 GB, free: 404 kB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005706/0.9677, allocations: 312.8 kB / 1.101 GB, free: 56 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 8.06e-05/0.9678, allocations: 40.98 kB / 1.101 GB, free: 8 kB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.88e-05/0.9679, allocations: 17 kB / 1.101 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 4.189e-05/0.9679, allocations: 3.938 kB / 1.101 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.968, allocations: 33.19 kB / 1.101 GB, free: 15.95 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.323e-06/0.968, allocations: 0 / 1.101 GB, free: 15.95 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0002655/0.9682, allocations: 62.16 kB / 1.101 GB, free: 15.88 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.419e-05/0.9683, allocations: 51.41 kB / 1.101 GB, free: 15.82 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.606e-05/0.9684, allocations: 105 kB / 1.101 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.9684, allocations: 25.7 kB / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.173e-05/0.9685, allocations: 92.08 kB / 1.101 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.9685, allocations: 15.75 kB / 1.101 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-06/0.9685, allocations: 0 / 1.101 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.9686, allocations: 318.8 kB / 1.102 GB, free: 15.25 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.022e-05/0.9687, allocations: 15.94 kB / 1.102 GB, free: 15.23 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.218e-05/0.9687, allocations: 8 kB / 1.102 GB, free: 15.23 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.278e-05/0.9688, allocations: 16.92 kB / 1.102 GB, free: 15.21 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.9688, allocations: 5.531 kB / 1.102 GB, free: 15.21 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001574/0.969, allocations: 57.69 kB / 1.102 GB, free: 15.14 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.969, allocations: 8.781 kB / 1.102 GB, free: 15.14 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.483e-06/0.969, allocations: 0 / 1.102 GB, free: 15.14 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.969, allocations: 0 / 1.102 GB, free: 15.14 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001451/0.9692, allocations: 23.97 kB / 1.102 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.9692, allocations: 0 / 1.102 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.993e-05/0.9693, allocations: 23.3 kB / 1.102 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.9693, allocations: 0 / 1.102 GB, free: 15.09 MB / 0.7136 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 8.714e-05/0.9694, allocations: 108.9 kB / 1.102 GB, free: 14.98 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001326/0.9695, allocations: 62.05 kB / 1.102 GB, free: 14.91 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.467e-05/0.9696, allocations: 7.984 kB / 1.102 GB, free: 14.91 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001678/0.9698, allocations: 68.22 kB / 1.102 GB, free: 14.83 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.9698, allocations: 0 / 1.102 GB, free: 14.83 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.9698, allocations: 4 kB / 1.102 GB, free: 14.82 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.9698, allocations: 3.953 kB / 1.102 GB, free: 14.82 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001724/0.97, allocations: 158.1 kB / 1.102 GB, free: 14.63 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.97, allocations: 1.312 kB / 1.102 GB, free: 14.63 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.9701, allocations: 19.98 kB / 1.102 GB, free: 14.61 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.9701, allocations: 0 / 1.102 GB, free: 14.61 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.9701, allocations: 4 kB / 1.102 GB, free: 14.61 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.9701, allocations: 3.938 kB / 1.102 GB, free: 14.6 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.9701, allocations: 0 / 1.102 GB, free: 14.6 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001613/0.9703, allocations: 159.5 kB / 1.102 GB, free: 14.43 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.715e-05/0.9704, allocations: 81.02 kB / 1.102 GB, free: 14.33 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.744e-05/0.9704, allocations: 0 / 1.102 GB, free: 14.33 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.9705, allocations: 15.98 kB / 1.102 GB, free: 14.32 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.538e-05/0.9706, allocations: 11.98 kB / 1.102 GB, free: 14.3 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.9706, allocations: 0 / 1.102 GB, free: 14.3 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.417e-05/0.9706, allocations: 93.36 kB / 1.102 GB, free: 14.21 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.1e-07/0.9707, allocations: 0 / 1.102 GB, free: 14.21 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002318/0.9709, allocations: 11.38 kB / 1.102 GB, free: 14.21 MB / 0.7136 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.0004497/0.9713, allocations: 0.7129 MB / 1.103 GB, free: 13.47 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001021/0.9715, allocations: 27.98 kB / 1.103 GB, free: 13.45 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.9715, allocations: 4 kB / 1.103 GB, free: 13.44 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.147e-05/0.9715, allocations: 16 kB / 1.103 GB, free: 13.43 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001857/0.9717, allocations: 8 kB / 1.103 GB, free: 13.42 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003967/0.9721, allocations: 120.1 kB / 1.103 GB, free: 13.26 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002571/0.9724, allocations: 0.6963 MB / 1.104 GB, free: 12.54 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 4.593e-05/0.9724, allocations: 15.44 kB / 1.104 GB, free: 12.53 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.921e-05/0.9725, allocations: 19.42 kB / 1.104 GB, free: 12.51 MB / 0.7136 GB Notification: Performance of SimCode: time 2.6e-07/0.9725, allocations: 0 / 1.104 GB, free: 12.51 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02031/0.9928, allocations: 1.128 MB / 1.105 GB, free: 11.43 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002657/0.9931, allocations: 142.9 kB / 1.105 GB, free: 11.23 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.491/2.484, allocations: 2.406 kB / 1.105 GB, free: 11.23 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average.pipe 2>&1)