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.536/1.536, allocations: 249.5 MB / 257 MB, free: 6.945 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.0009966/0.0009967, allocations: 180.8 kB / 316.3 MB, free: 3.219 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.428/1.428, allocations: 205.3 MB / 0.5671 GB, free: 15.86 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.000845/0.0008452, allocations: 94.47 kB / 0.6714 GB, free: 4.965 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.524e-05/2.526e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.266/0.2661, allocations: 106.3 MB / 0.8853 GB, free: 12.13 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8802/1.146, allocations: 132.1 MB / 1.014 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002715/1.147, allocations: 70.58 kB / 1.014 GB, free: 5.145 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003394/1.15, allocations: 1.113 MB / 1.015 GB, free: 4.145 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.654e-06/1.15, allocations: 4 kB / 1.015 GB, free: 4.141 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.209e-05/1.15, allocations: 7.391 kB / 1.015 GB, free: 4.137 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.0004927/1.151, allocations: 365.5 kB / 1.016 GB, free: 3.738 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.004e-05/1.151, allocations: 12.03 kB / 1.016 GB, free: 3.727 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.804e-05/1.151, allocations: 7.906 kB / 1.016 GB, free: 3.719 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002023/1.151, allocations: 196.5 kB / 1.016 GB, free: 3.492 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.456e-06/1.151, allocations: 0 / 1.016 GB, free: 3.492 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.069e-05/1.151, allocations: 4 kB / 1.016 GB, free: 3.488 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001703/1.151, allocations: 37.86 kB / 1.016 GB, free: 3.461 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001284/1.151, allocations: 56.23 kB / 1.016 GB, free: 3.406 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/1.151, allocations: 3.938 kB / 1.016 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/1.151, allocations: 0 / 1.016 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/1.151, allocations: 0 / 1.016 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005358/1.152, allocations: 312.8 kB / 1.016 GB, free: 3.078 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.248e-05/1.152, allocations: 28.2 kB / 1.016 GB, free: 3.047 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.692e-05/1.152, allocations: 27.45 kB / 1.017 GB, free: 3.023 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 4.115e-05/1.152, allocations: 8.078 kB / 1.017 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/1.152, allocations: 30.56 kB / 1.017 GB, free: 2.977 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.143e-06/1.152, allocations: 0 / 1.017 GB, free: 2.977 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002332/1.152, allocations: 52.19 kB / 1.017 GB, free: 2.926 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.294e-05/1.152, allocations: 51.41 kB / 1.017 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.143e-05/1.153, allocations: 115.5 kB / 1.017 GB, free: 2.75 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/1.153, allocations: 29.7 kB / 1.017 GB, free: 2.715 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.551e-05/1.153, allocations: 93.17 kB / 1.017 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.057e-05/1.153, allocations: 7.844 kB / 1.017 GB, free: 2.617 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.919e-06/1.153, allocations: 0 / 1.017 GB, free: 2.617 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001221/1.153, allocations: 322.6 kB / 1.017 GB, free: 2.297 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.492e-05/1.153, allocations: 7.438 kB / 1.017 GB, free: 2.293 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.222e-05/1.153, allocations: 11.75 kB / 1.017 GB, free: 2.285 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.305e-05/1.153, allocations: 11.3 kB / 1.017 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/1.153, allocations: 3.938 kB / 1.017 GB, free: 2.273 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001088/1.153, allocations: 64.78 kB / 1.017 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/1.153, allocations: 4 kB / 1.017 GB, free: 2.207 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/1.153, allocations: 0 / 1.017 GB, free: 2.207 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/1.153, allocations: 4 kB / 1.017 GB, free: 2.203 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/1.153, allocations: 19.97 kB / 1.017 GB, free: 2.184 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/1.153, allocations: 4 kB / 1.017 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.556e-05/1.153, allocations: 15.98 kB / 1.017 GB, free: 2.164 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/1.153, allocations: 7.953 kB / 1.017 GB, free: 2.156 MB / 0.6355 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 6.997e-05/1.154, allocations: 101 kB / 1.017 GB, free: 2.051 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001217/1.154, allocations: 72.72 kB / 1.017 GB, free: 1.984 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.028e-05/1.154, allocations: 48 / 1.017 GB, free: 1.984 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001673/1.154, allocations: 73.67 kB / 1.018 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/1.154, allocations: 0 / 1.018 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/1.154, allocations: 7.953 kB / 1.018 GB, free: 1.898 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/1.154, allocations: 0 / 1.018 GB, free: 1.898 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001598/1.154, allocations: 160 kB / 1.018 GB, free: 1.715 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/1.154, allocations: 3.984 kB / 1.018 GB, free: 1.711 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/1.154, allocations: 19.98 kB / 1.018 GB, free: 1.691 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/1.154, allocations: 0 / 1.018 GB, free: 1.691 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.205e-06/1.154, allocations: 0 / 1.018 GB, free: 1.691 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/1.154, allocations: 0 / 1.018 GB, free: 1.691 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/1.154, allocations: 0 / 1.018 GB, free: 1.691 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001713/1.154, allocations: 168.3 kB / 1.018 GB, free: 1.52 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.764e-05/1.154, allocations: 77.11 kB / 1.018 GB, free: 1.426 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/1.154, allocations: 4 kB / 1.018 GB, free: 1.422 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001163/1.155, allocations: 15.98 kB / 1.018 GB, free: 1.406 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.246e-05/1.155, allocations: 3.984 kB / 1.018 GB, free: 1.402 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.581e-06/1.155, allocations: 0 / 1.018 GB, free: 1.402 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.59e-05/1.155, allocations: 93.28 kB / 1.018 GB, free: 1.316 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.4e-07/1.155, allocations: 0 / 1.018 GB, free: 1.316 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002176/1.155, allocations: 15.91 kB / 1.018 GB, free: 1.301 MB / 0.6355 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.0005435/1.156, allocations: 0.6903 MB / 1.019 GB, free: 0.5977 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001036/1.156, allocations: 35.36 kB / 1.019 GB, free: 0.5703 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/1.156, allocations: 4 kB / 1.019 GB, free: 0.5664 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 3.183e-05/1.156, allocations: 15.25 kB / 1.019 GB, free: 0.5547 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001789/1.156, allocations: 2.812 kB / 1.019 GB, free: 0.5547 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004092/1.156, allocations: 132.5 kB / 1.019 GB, free: 400 kB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/1.157, allocations: 0.6924 MB / 1.02 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.628e-05/1.157, allocations: 8 kB / 1.02 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.907e-05/1.157, allocations: 17.67 kB / 1.02 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of SimCode: time 2.71e-07/1.157, allocations: 4 kB / 1.02 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02007/1.177, allocations: 1.138 MB / 1.021 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002013/1.177, allocations: 137.3 kB / 1.021 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.61/2.787, allocations: 0 / 1.021 GB, free: 14.34 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)