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.819/1.819, allocations: 289.7 MB / 302.2 MB, free: 2.172 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.0009828/0.0009828, allocations: 181.5 kB / 371.6 MB, free: 3.34 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.595/1.595, allocations: 205.1 MB / 0.6309 GB, free: 11.78 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.0009972/0.0009971, allocations: 89.95 kB / 0.745 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.75e-05/4.758e-05, allocations: 4 kB / 0.8663 GB, free: 14.99 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3402, allocations: 116.3 MB / 0.9799 GB, free: 10.53 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.148/1.488, allocations: 139.1 MB / 1.116 GB, free: 44.52 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003455/1.489, allocations: 69.78 kB / 1.116 GB, free: 44.49 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.004017/1.493, allocations: 1.125 MB / 1.117 GB, free: 43.74 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.794e-06/1.493, allocations: 0 / 1.117 GB, free: 43.74 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.171e-05/1.493, allocations: 3.5 kB / 1.117 GB, free: 43.74 MB / 0.7448 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.0005344/1.494, allocations: 375.7 kB / 1.117 GB, free: 43.35 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 6.014e-05/1.494, allocations: 12.03 kB / 1.117 GB, free: 43.34 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.682e-05/1.494, allocations: 34.38 kB / 1.117 GB, free: 43.3 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.583e-05/1.494, allocations: 10 kB / 1.117 GB, free: 43.3 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002687/1.494, allocations: 185.7 kB / 1.117 GB, free: 43.09 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/1.494, allocations: 3.266 kB / 1.117 GB, free: 43.09 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.825e-05/1.494, allocations: 8.5 kB / 1.117 GB, free: 43.08 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001749/1.494, allocations: 63.84 kB / 1.118 GB, free: 43.03 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/1.494, allocations: 4.516 kB / 1.118 GB, free: 43.02 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/1.494, allocations: 0 / 1.118 GB, free: 43.02 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/1.494, allocations: 0 / 1.118 GB, free: 43.02 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.46e-05/1.494, allocations: 34.81 kB / 1.118 GB, free: 43 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006075/1.495, allocations: 343.8 kB / 1.118 GB, free: 42.67 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 9.903e-05/1.495, allocations: 35.39 kB / 1.118 GB, free: 42.64 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.796e-05/1.495, allocations: 23.39 kB / 1.118 GB, free: 42.62 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.774e-05/1.495, allocations: 2.953 kB / 1.118 GB, free: 42.62 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/1.495, allocations: 34.56 kB / 1.118 GB, free: 42.58 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 1.733e-06/1.495, allocations: 0 / 1.118 GB, free: 42.58 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0002238/1.496, allocations: 60.92 kB / 1.118 GB, free: 42.52 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.837e-05/1.496, allocations: 55.36 kB / 1.118 GB, free: 42.46 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/1.496, allocations: 106.8 kB / 1.118 GB, free: 42.36 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/1.496, allocations: 25.7 kB / 1.118 GB, free: 42.32 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.506e-05/1.496, allocations: 99.09 kB / 1.118 GB, free: 42.23 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.017e-05/1.496, allocations: 7.844 kB / 1.118 GB, free: 42.23 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.121e-06/1.496, allocations: 4 kB / 1.118 GB, free: 42.22 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 8.034e-05/1.496, allocations: 322.2 kB / 1.119 GB, free: 41.91 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.842e-05/1.496, allocations: 7.375 kB / 1.119 GB, free: 41.9 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.49e-05/1.496, allocations: 11.94 kB / 1.119 GB, free: 41.89 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.308e-05/1.496, allocations: 12.67 kB / 1.119 GB, free: 41.89 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/1.496, allocations: 0 / 1.119 GB, free: 41.89 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001167/1.496, allocations: 65.11 kB / 1.119 GB, free: 41.83 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/1.496, allocations: 4 kB / 1.119 GB, free: 41.83 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/1.496, allocations: 0 / 1.119 GB, free: 41.83 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/1.496, allocations: 4 kB / 1.119 GB, free: 41.82 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001671/1.496, allocations: 23.7 kB / 1.119 GB, free: 41.81 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/1.496, allocations: 0 / 1.119 GB, free: 41.81 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.933e-05/1.497, allocations: 20.08 kB / 1.119 GB, free: 41.79 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/1.497, allocations: 4 kB / 1.119 GB, free: 41.79 MB / 0.7448 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.466e-05/1.497, allocations: 112.8 kB / 1.119 GB, free: 41.68 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.974e-05/1.497, allocations: 7.906 kB / 1.119 GB, free: 41.67 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001932/1.497, allocations: 73.5 kB / 1.119 GB, free: 41.61 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/1.497, allocations: 0 / 1.119 GB, free: 41.61 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/1.497, allocations: 0 / 1.119 GB, free: 41.61 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/1.497, allocations: 0 / 1.119 GB, free: 41.61 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001602/1.497, allocations: 180.3 kB / 1.119 GB, free: 41.41 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/1.497, allocations: 0.6875 kB / 1.119 GB, free: 41.41 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/1.497, allocations: 26.89 kB / 1.119 GB, free: 41.39 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.646e-06/1.497, allocations: 0 / 1.119 GB, free: 41.39 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/1.497, allocations: 0 / 1.119 GB, free: 41.39 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/1.497, allocations: 0.5625 kB / 1.119 GB, free: 41.39 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/1.497, allocations: 0 / 1.119 GB, free: 41.39 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001367/1.497, allocations: 156 kB / 1.119 GB, free: 41.23 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 3.693e-05/1.497, allocations: 84.91 kB / 1.119 GB, free: 41.14 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.703e-05/1.498, allocations: 8 kB / 1.119 GB, free: 41.13 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/1.498, allocations: 11.89 kB / 1.119 GB, free: 41.12 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.678e-05/1.498, allocations: 11.36 kB / 1.119 GB, free: 41.12 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.186e-06/1.498, allocations: 0 / 1.119 GB, free: 41.12 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.126e-05/1.498, allocations: 99.23 kB / 1.12 GB, free: 41.03 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.51e-07/1.498, allocations: 0 / 1.12 GB, free: 41.03 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002059/1.498, allocations: 8 kB / 1.12 GB, free: 41.02 MB / 0.7448 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.0004075/1.498, allocations: 0.7014 MB / 1.12 GB, free: 40.31 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001141/1.499, allocations: 28.34 kB / 1.12 GB, free: 40.29 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/1.499, allocations: 3.938 kB / 1.12 GB, free: 40.29 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.778e-05/1.499, allocations: 15.39 kB / 1.12 GB, free: 40.28 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001858/1.499, allocations: 13 kB / 1.12 GB, free: 40.28 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004419/1.499, allocations: 131 kB / 1.12 GB, free: 40.13 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001818/1.499, allocations: 0.6915 MB / 1.121 GB, free: 39.43 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.883e-05/1.499, allocations: 7.938 kB / 1.121 GB, free: 39.42 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.193e-05/1.5, allocations: 22.64 kB / 1.121 GB, free: 39.41 MB / 0.7448 GB Notification: Performance of SimCode: time 6.61e-07/1.5, allocations: 0 / 1.121 GB, free: 39.41 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.036/1.536, allocations: 1.449 MB / 1.123 GB, free: 38.65 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001996/1.536, allocations: 143.9 kB / 1.123 GB, free: 38.43 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.002/3.537, allocations: 0.5625 kB / 1.123 GB, free: 38.43 MB / 0.7448 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)