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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008956/0.0008955, allocations: 91.53 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008629/0.000863, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.706/1.706, allocations: 205.4 MB / 222.1 MB, free: 5.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.743/1.743, allocations: 292.7 MB / 0.5499 GB, free: 14.55 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005306/0.000531, allocations: 17.69 kB / 0.6738 GB, free: 26.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2646, allocations: 116.3 MB / 0.7874 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001857/0.2665, allocations: 1.242 MB / 0.7886 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0003474/0.2668, allocations: 112.6 kB / 0.7887 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.425e-05/0.2669, allocations: 4 kB / 0.7887 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001288/0.267, allocations: 7.922 kB / 0.7887 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 2.631e-05/0.2671, allocations: 3.938 kB / 0.7887 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002246/0.2673, allocations: 27.97 kB / 0.7888 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.588e-05/0.2674, allocations: 51.78 kB / 0.7888 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.2675, allocations: 19.97 kB / 0.7888 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.819e-05/0.2676, allocations: 11.98 kB / 0.7888 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.996e-05/0.2677, allocations: 23.86 kB / 0.7889 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.76e-05/0.2677, allocations: 4 kB / 0.7889 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.949e-05/0.2678, allocations: 11.98 kB / 0.7889 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.275e-05/0.2678, allocations: 8 kB / 0.7889 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.083e-05/0.2678, allocations: 37.64 kB / 0.7889 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001026/0.268, allocations: 44.19 kB / 0.789 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.268, allocations: 0 / 0.789 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.393e-06/0.268, allocations: 0 / 0.789 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.159e-06/0.268, allocations: 0 / 0.789 GB, free: 10.2 MB / 0.6075 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.0005535/0.2685, allocations: 387.1 kB / 0.7893 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.2686, allocations: 8.031 kB / 0.7893 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.39e-05/0.2686, allocations: 38.56 kB / 0.7894 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.429e-05/0.2687, allocations: 3.906 kB / 0.7894 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001756/0.2688, allocations: 186.9 kB / 0.7896 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.2689, allocations: 4 kB / 0.7896 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.01e-05/0.2689, allocations: 0 / 0.7896 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000269/0.2692, allocations: 106.6 kB / 0.7897 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.2692, allocations: 0 / 0.7897 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.2692, allocations: 4 kB / 0.7897 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.2692, allocations: 0 / 0.7897 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003002/0.2695, allocations: 99.92 kB / 0.7898 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005353/0.27, allocations: 336.6 kB / 0.7901 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002152/0.2703, allocations: 74.62 kB / 0.7902 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001647/0.2704, allocations: 56.84 kB / 0.7902 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.752e-05/0.2705, allocations: 8 kB / 0.7902 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.463e-05/0.2705, allocations: 30.56 kB / 0.7902 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.2705, allocations: 0 / 0.7902 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0005495/0.2711, allocations: 169.5 kB / 0.7904 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.13e-05/0.2711, allocations: 55.41 kB / 0.7905 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.887e-05/0.2712, allocations: 121.8 kB / 0.7906 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.2713, allocations: 25.7 kB / 0.7906 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.4e-05/0.2713, allocations: 99.92 kB / 0.7907 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.143e-05/0.2714, allocations: 11.89 kB / 0.7907 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-06/0.2714, allocations: 0 / 0.7907 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001633/0.2715, allocations: 310.8 kB / 0.791 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001459/0.2717, allocations: 51.89 kB / 0.7911 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.2718, allocations: 47.97 kB / 0.7911 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001392/0.272, allocations: 47.95 kB / 0.7911 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.272, allocations: 0 / 0.7911 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003126/0.2723, allocations: 121.5 kB / 0.7913 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.2723, allocations: 8 kB / 0.7913 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.2723, allocations: 0 / 0.7913 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.2724, allocations: 7.938 kB / 0.7913 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.2725, allocations: 23.98 kB / 0.7913 GB, free: 7.582 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.2725, allocations: 0 / 0.7913 GB, free: 7.582 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.448e-05/0.2726, allocations: 15.98 kB / 0.7913 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.095e-05/0.2726, allocations: 0 / 0.7913 GB, free: 7.566 MB / 0.6075 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 9.242e-05/0.2727, allocations: 122.4 kB / 0.7914 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.617e-05/0.2727, allocations: 11.91 kB / 0.7914 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000353/0.2731, allocations: 133.5 kB / 0.7916 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.2731, allocations: 0 / 0.7916 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.2731, allocations: 3.953 kB / 0.7916 GB, free: 7.277 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.2731, allocations: 0 / 0.7916 GB, free: 7.277 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001758/0.2733, allocations: 181.6 kB / 0.7917 GB, free: 7.051 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2733, allocations: 3.938 kB / 0.7918 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.2734, allocations: 23.97 kB / 0.7918 GB, free: 7.023 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.2734, allocations: 4 kB / 0.7918 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.238e-06/0.2735, allocations: 0 / 0.7918 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.2735, allocations: 0 / 0.7918 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2735, allocations: 0 / 0.7918 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003629/0.2738, allocations: 227.4 kB / 0.792 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.997e-05/0.2739, allocations: 84.95 kB / 0.7921 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.583e-05/0.2739, allocations: 4 kB / 0.7921 GB, free: 6.676 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.274, allocations: 15.98 kB / 0.7921 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.102e-05/0.2741, allocations: 7.984 kB / 0.7921 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.407e-06/0.2741, allocations: 4 kB / 0.7921 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.895e-05/0.2742, allocations: 99.16 kB / 0.7922 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.2742, allocations: 0 / 0.7922 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002221/0.2744, allocations: 12 kB / 0.7922 GB, free: 6.539 MB / 0.6075 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.0008161/0.2752, allocations: 0.7635 MB / 0.793 GB, free: 5.75 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003185/0.2755, allocations: 91.92 kB / 0.793 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2756, allocations: 0 / 0.793 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001427/0.2757, allocations: 55.95 kB / 0.7931 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002904/0.276, allocations: 4 kB / 0.7931 GB, free: 5.602 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001238/0.2772, allocations: 0.5807 MB / 0.7937 GB, free: 4.977 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006092/0.2779, allocations: 0.6887 MB / 0.7943 GB, free: 4.262 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.963e-05/0.2779, allocations: 7.984 kB / 0.7944 GB, free: 4.254 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.516e-05/0.278, allocations: 15.44 kB / 0.7944 GB, free: 4.238 MB / 0.6075 GB Notification: Performance of SimCode: time 6.51e-07/0.278, allocations: 4 kB / 0.7944 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01236/0.2904, allocations: 1.475 MB / 0.7958 GB, free: 2.871 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001725/0.2906, allocations: 174.3 kB / 0.796 GB, free: 2.629 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.884/2.175, allocations: 0 / 0.796 GB, free: 2.629 MB / 0.6075 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) Environment - environmentSimulation: