Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.911/1.911, allocations: 292.6 MB / 307.5 MB, free: 5.223 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.001095/0.001095, allocations: 189 kB / 377.1 MB, free: 1.543 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.875/1.875, allocations: 205.4 MB / 0.6366 GB, free: 8.562 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.0009425/0.0009422, allocations: 96.98 kB / 0.7509 GB, free: 63.05 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004/0.0004001, allocations: 15.97 kB / 0.8749 GB, free: 11.13 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3123, allocations: 116.3 MB / 0.9884 GB, free: 6.672 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8114/1.124, allocations: 139.2 MB / 1.124 GB, free: 35.46 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/1.124, allocations: 76.58 kB / 1.124 GB, free: 35.39 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.003495/1.128, allocations: 1.123 MB / 1.125 GB, free: 34.54 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.112e-06/1.128, allocations: 0 / 1.125 GB, free: 34.54 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 9.287e-06/1.128, allocations: 5.422 kB / 1.125 GB, free: 34.54 MB / 0.7292 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.0004761/1.128, allocations: 388.7 kB / 1.126 GB, free: 34.13 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 6.608e-05/1.128, allocations: 12.02 kB / 1.126 GB, free: 34.12 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.857e-05/1.128, allocations: 34.56 kB / 1.126 GB, free: 34.07 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.241e-05/1.128, allocations: 6.812 kB / 1.126 GB, free: 34.07 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000173/1.128, allocations: 187.8 kB / 1.126 GB, free: 33.86 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.466e-06/1.128, allocations: 7.938 kB / 1.126 GB, free: 33.85 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.719e-05/1.129, allocations: 8.281 kB / 1.126 GB, free: 33.84 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000286/1.129, allocations: 95.61 kB / 1.126 GB, free: 33.76 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/1.129, allocations: 0 / 1.126 GB, free: 33.76 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/1.129, allocations: 4 kB / 1.126 GB, free: 33.76 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/1.129, allocations: 0.6562 kB / 1.126 GB, free: 33.76 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003511/1.129, allocations: 97.42 kB / 1.126 GB, free: 33.68 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005502/1.13, allocations: 343.6 kB / 1.127 GB, free: 33.34 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002139/1.13, allocations: 73.08 kB / 1.127 GB, free: 33.27 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 4.05e-05/1.13, allocations: 0 / 1.127 GB, free: 33.27 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/1.13, allocations: 38.59 kB / 1.127 GB, free: 33.22 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/1.13, allocations: 0.8438 kB / 1.127 GB, free: 33.22 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0005761/1.131, allocations: 173.5 kB / 1.127 GB, free: 33.08 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.513e-05/1.131, allocations: 55.91 kB / 1.127 GB, free: 33.01 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.907e-05/1.131, allocations: 108.5 kB / 1.127 GB, free: 32.9 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.124e-05/1.131, allocations: 29.64 kB / 1.127 GB, free: 32.87 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 4.524e-05/1.131, allocations: 103.3 kB / 1.127 GB, free: 32.77 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.268e-05/1.131, allocations: 3.906 kB / 1.127 GB, free: 32.76 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.988e-06/1.131, allocations: 4 kB / 1.127 GB, free: 32.76 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 6.711e-05/1.131, allocations: 318.8 kB / 1.127 GB, free: 32.44 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/1.131, allocations: 42.97 kB / 1.128 GB, free: 32.41 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/1.131, allocations: 46.45 kB / 1.128 GB, free: 32.37 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001421/1.131, allocations: 47.23 kB / 1.128 GB, free: 32.34 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/1.131, allocations: 4 kB / 1.128 GB, free: 32.33 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003176/1.132, allocations: 134.5 kB / 1.128 GB, free: 32.22 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/1.132, allocations: 4.781 kB / 1.128 GB, free: 32.21 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/1.132, allocations: 0.5625 kB / 1.128 GB, free: 32.21 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/1.132, allocations: 0 / 1.128 GB, free: 32.21 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001565/1.132, allocations: 19.56 kB / 1.128 GB, free: 32.2 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/1.132, allocations: 0.5 kB / 1.128 GB, free: 32.2 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.068e-05/1.132, allocations: 27.73 kB / 1.128 GB, free: 32.18 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.579e-05/1.132, allocations: 4 kB / 1.128 GB, free: 32.18 MB / 0.7292 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.124e-05/1.132, allocations: 110.9 kB / 1.128 GB, free: 32.06 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.612e-05/1.132, allocations: 7.906 kB / 1.128 GB, free: 32.05 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003926/1.133, allocations: 141.8 kB / 1.128 GB, free: 31.93 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/1.133, allocations: 0 / 1.128 GB, free: 31.93 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/1.133, allocations: 0 / 1.128 GB, free: 31.93 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/1.133, allocations: 1.25 kB / 1.128 GB, free: 31.93 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001804/1.133, allocations: 179.6 kB / 1.128 GB, free: 31.72 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/1.133, allocations: 4 kB / 1.128 GB, free: 31.72 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001858/1.133, allocations: 24.02 kB / 1.128 GB, free: 31.7 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/1.133, allocations: 0 / 1.128 GB, free: 31.7 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.135e-05/1.133, allocations: 0 / 1.128 GB, free: 31.7 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.379e-06/1.133, allocations: 6.062 kB / 1.128 GB, free: 31.7 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/1.133, allocations: 0 / 1.128 GB, free: 31.7 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003731/1.134, allocations: 227.7 kB / 1.128 GB, free: 31.48 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 3.587e-05/1.134, allocations: 85.02 kB / 1.129 GB, free: 31.38 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.01e-05/1.134, allocations: 3.281 kB / 1.129 GB, free: 31.38 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/1.134, allocations: 15.42 kB / 1.129 GB, free: 31.37 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.598e-05/1.134, allocations: 3.469 kB / 1.129 GB, free: 31.37 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/1.134, allocations: 7.938 kB / 1.129 GB, free: 31.36 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 3.584e-05/1.134, allocations: 91.95 kB / 1.129 GB, free: 31.27 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.2e-07/1.134, allocations: 4 kB / 1.129 GB, free: 31.27 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002186/1.134, allocations: 16.88 kB / 1.129 GB, free: 31.25 MB / 0.7292 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.0005798/1.135, allocations: 0.7589 MB / 1.129 GB, free: 30.5 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003421/1.135, allocations: 100.4 kB / 1.13 GB, free: 30.42 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/1.135, allocations: 0 / 1.13 GB, free: 30.42 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001489/1.135, allocations: 54.02 kB / 1.13 GB, free: 30.38 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001876/1.135, allocations: 9.219 kB / 1.13 GB, free: 30.37 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/1.136, allocations: 0.5601 MB / 1.13 GB, free: 29.82 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000236/1.137, allocations: 0.6952 MB / 1.131 GB, free: 29.11 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 5.057e-05/1.137, allocations: 16.09 kB / 1.131 GB, free: 29.1 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.419e-05/1.137, allocations: 15.44 kB / 1.131 GB, free: 29.09 MB / 0.7292 GB Notification: Performance of SimCode: time 5.73e-06/1.137, allocations: 0 / 1.131 GB, free: 29.09 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01369/1.151, allocations: 1.446 MB / 1.132 GB, free: 28.32 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001529/1.151, allocations: 169.3 kB / 1.132 GB, free: 28.08 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.762/2.913, allocations: 0 / 1.132 GB, free: 28.08 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe 2>&1)