Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 2.571/2.571, allocations: 287.3 MB / 302.3 MB, free: 8.383 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.001603/0.001603, allocations: 181.1 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.238/2.238, allocations: 205.4 MB / 0.6295 GB, free: 10.61 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001188/0.001187, allocations: 88.95 kB / 0.7428 GB, free: 6.605 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007936/0.0007938, allocations: 15.97 kB / 0.8657 GB, free: 141.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2368, allocations: 115.3 MB / 0.9783 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9569/1.194, allocations: 138 MB / 1.113 GB, free: 15.85 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/1.194, allocations: 71.44 kB / 1.113 GB, free: 15.85 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00527/1.199, allocations: 1.12 MB / 1.114 GB, free: 31.49 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.254e-06/1.199, allocations: 3.938 kB / 1.114 GB, free: 31.49 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.326e-05/1.199, allocations: 0 / 1.114 GB, free: 31.49 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.000635/1.2, allocations: 388 kB / 1.115 GB, free: 31.12 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/1.2, allocations: 15.58 kB / 1.115 GB, free: 31.12 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.878e-05/1.2, allocations: 36.05 kB / 1.115 GB, free: 31.07 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.265e-05/1.2, allocations: 3.812 kB / 1.115 GB, free: 31.07 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002076/1.2, allocations: 191.7 kB / 1.115 GB, free: 30.87 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.538e-06/1.201, allocations: 9.25 kB / 1.115 GB, free: 30.87 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.831e-05/1.201, allocations: 0 / 1.115 GB, free: 30.87 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004235/1.201, allocations: 97.75 kB / 1.115 GB, free: 30.83 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/1.201, allocations: 3.875 kB / 1.115 GB, free: 30.83 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/1.201, allocations: 1.172 kB / 1.115 GB, free: 30.83 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/1.201, allocations: 7.922 kB / 1.115 GB, free: 30.82 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005527/1.202, allocations: 97.36 kB / 1.115 GB, free: 30.82 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007646/1.202, allocations: 334.9 kB / 1.115 GB, free: 30.55 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000344/1.203, allocations: 75.81 kB / 1.115 GB, free: 30.52 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.833e-05/1.203, allocations: 3.969 kB / 1.115 GB, free: 30.52 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/1.203, allocations: 33.69 kB / 1.115 GB, free: 30.48 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 1.994e-06/1.203, allocations: 0 / 1.115 GB, free: 30.48 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0009445/1.204, allocations: 172.7 kB / 1.116 GB, free: 30.43 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.729e-05/1.204, allocations: 55.34 kB / 1.116 GB, free: 30.37 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001/1.204, allocations: 109.8 kB / 1.116 GB, free: 30.27 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.629e-05/1.204, allocations: 25.7 kB / 1.116 GB, free: 30.24 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.68e-05/1.204, allocations: 104.7 kB / 1.116 GB, free: 30.15 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.472e-05/1.204, allocations: 10.55 kB / 1.116 GB, free: 30.14 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.144e-06/1.204, allocations: 0 / 1.116 GB, free: 30.14 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.000144/1.204, allocations: 313.3 kB / 1.116 GB, free: 29.83 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002737/1.205, allocations: 49.91 kB / 1.116 GB, free: 29.83 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002648/1.205, allocations: 49.38 kB / 1.116 GB, free: 29.82 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002716/1.205, allocations: 39.06 kB / 1.116 GB, free: 29.82 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/1.205, allocations: 0 / 1.116 GB, free: 29.82 MB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006208/1.206, allocations: 131.7 kB / 1.116 GB, free: 29.79 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/1.206, allocations: 3.812 kB / 1.116 GB, free: 29.79 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/1.206, allocations: 7.875 kB / 1.116 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/1.206, allocations: 0 / 1.116 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002176/1.206, allocations: 24.91 kB / 1.117 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.188e-06/1.206, allocations: 3.953 kB / 1.117 GB, free: 29.77 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001598/1.206, allocations: 17.03 kB / 1.117 GB, free: 29.77 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.703e-05/1.206, allocations: 0 / 1.117 GB, free: 29.77 MB / 0.698 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 0.000186/1.207, allocations: 117.3 kB / 1.117 GB, free: 29.66 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.259e-05/1.207, allocations: 7.875 kB / 1.117 GB, free: 29.65 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006927/1.207, allocations: 141.5 kB / 1.117 GB, free: 29.61 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/1.207, allocations: 0 / 1.117 GB, free: 29.61 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/1.207, allocations: 0 / 1.117 GB, free: 29.61 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/1.207, allocations: 3.953 kB / 1.117 GB, free: 29.61 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002438/1.208, allocations: 178.4 kB / 1.117 GB, free: 29.42 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/1.208, allocations: 0 / 1.117 GB, free: 29.42 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001952/1.208, allocations: 29.02 kB / 1.117 GB, free: 29.41 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/1.208, allocations: 0 / 1.117 GB, free: 29.41 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/1.208, allocations: 0 / 1.117 GB, free: 29.41 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/1.208, allocations: 3.984 kB / 1.117 GB, free: 29.41 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/1.208, allocations: 2.906 kB / 1.117 GB, free: 29.41 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006677/1.209, allocations: 223.7 kB / 1.117 GB, free: 29.27 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.966e-05/1.209, allocations: 81.02 kB / 1.117 GB, free: 29.17 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.235e-05/1.209, allocations: 0 / 1.117 GB, free: 29.17 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001865/1.209, allocations: 21.12 kB / 1.117 GB, free: 29.17 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.617e-05/1.209, allocations: 10.55 kB / 1.117 GB, free: 29.16 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/1.209, allocations: 3.062 kB / 1.117 GB, free: 29.16 MB / 0.698 GB Notification: Performance of sorting global known variables: time 7.769e-05/1.209, allocations: 95.2 kB / 1.117 GB, free: 29.09 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.6e-07/1.209, allocations: 0 / 1.117 GB, free: 29.09 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003128/1.209, allocations: 15.41 kB / 1.117 GB, free: 29.08 MB / 0.698 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.001112/1.21, allocations: 0.7735 MB / 1.118 GB, free: 28.4 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0006202/1.211, allocations: 98.03 kB / 1.118 GB, free: 28.4 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/1.211, allocations: 0 / 1.118 GB, free: 28.4 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002883/1.211, allocations: 60.23 kB / 1.118 GB, free: 28.39 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002298/1.212, allocations: 0 / 1.118 GB, free: 28.39 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001744/1.213, allocations: 0.5696 MB / 1.119 GB, free: 28.04 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/1.214, allocations: 0.6924 MB / 1.12 GB, free: 27.34 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 8.778e-05/1.214, allocations: 6.688 kB / 1.12 GB, free: 27.34 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.944e-05/1.214, allocations: 21.02 kB / 1.12 GB, free: 27.33 MB / 0.698 GB Notification: Performance of SimCode: time 1.333e-06/1.214, allocations: 7.781 kB / 1.12 GB, free: 27.33 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01912/1.233, allocations: 1.452 MB / 1.121 GB, free: 27.15 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001612/1.233, allocations: 166.6 kB / 1.121 GB, free: 26.91 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.477/3.71, allocations: 0 / 1.121 GB, free: 26.91 MB / 0.698 GB (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.pipe 2>&1)