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.001932/0.001932, allocations: 100.6 kB / 15.05 MB, free: 1.105 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.001804/0.001805, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.334/3.334, allocations: 205.4 MB / 222.1 MB, free: 5.512 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 3.214/3.214, allocations: 292.6 MB / 0.5497 GB, free: 14.61 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.001192/0.001192, allocations: 15.94 kB / 0.6737 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.488/0.4892, allocations: 116.3 MB / 0.7872 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003769/0.4931, allocations: 1.234 MB / 0.7884 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.000639/0.4938, allocations: 117.7 kB / 0.7885 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001543/0.494, allocations: 0 / 0.7885 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002563/0.4943, allocations: 7.922 kB / 0.7886 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.037e-05/0.4944, allocations: 11.98 kB / 0.7886 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004536/0.4949, allocations: 15.97 kB / 0.7886 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002331/0.4951, allocations: 43.89 kB / 0.7886 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002708/0.4954, allocations: 15.98 kB / 0.7886 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.4956, allocations: 19.92 kB / 0.7887 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001465/0.4957, allocations: 23.91 kB / 0.7887 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.057e-05/0.4958, allocations: 0 / 0.7887 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001072/0.4959, allocations: 12 kB / 0.7887 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.536e-05/0.496, allocations: 7.984 kB / 0.7887 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.161e-05/0.4961, allocations: 37.64 kB / 0.7887 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001884/0.4963, allocations: 40.2 kB / 0.7888 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.4963, allocations: 0 / 0.7888 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.256e-06/0.4963, allocations: 0 / 0.7888 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.574e-06/0.4963, allocations: 0 / 0.7888 GB, free: 10.29 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.001053/0.4974, allocations: 387.1 kB / 0.7891 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 8.553e-05/0.4975, allocations: 12.03 kB / 0.7892 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.161e-05/0.4976, allocations: 34.56 kB / 0.7892 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.771e-05/0.4977, allocations: 7.906 kB / 0.7892 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000385/0.4981, allocations: 186.9 kB / 0.7894 GB, free: 9.574 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.4981, allocations: 4 kB / 0.7894 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.47e-05/0.4982, allocations: 4 kB / 0.7894 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005721/0.4988, allocations: 97.64 kB / 0.7895 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.4988, allocations: 3.938 kB / 0.7895 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.945e-05/0.4988, allocations: 0 / 0.7895 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.4989, allocations: 0 / 0.7895 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006422/0.4995, allocations: 107.8 kB / 0.7896 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009934/0.5005, allocations: 336.7 kB / 0.7899 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003279/0.5009, allocations: 74.56 kB / 0.79 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 5.879e-05/0.5009, allocations: 4 kB / 0.79 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.715e-05/0.501, allocations: 30.56 kB / 0.79 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 2.625e-06/0.501, allocations: 0 / 0.79 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0009343/0.502, allocations: 173.6 kB / 0.7902 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.691e-05/0.502, allocations: 51.41 kB / 0.7902 GB, free: 8.613 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.5022, allocations: 121.8 kB / 0.7903 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.5022, allocations: 29.7 kB / 0.7904 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.5024, allocations: 95.92 kB / 0.7905 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.982e-05/0.5024, allocations: 11.89 kB / 0.7905 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.062e-06/0.5024, allocations: 0 / 0.7905 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001823/0.5026, allocations: 322.8 kB / 0.7908 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002139/0.5028, allocations: 43.91 kB / 0.7908 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002185/0.5031, allocations: 51.95 kB / 0.7909 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002492/0.5033, allocations: 44.23 kB / 0.7909 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.5033, allocations: 0 / 0.7909 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006262/0.504, allocations: 129.5 kB / 0.791 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.442e-05/0.504, allocations: 12 kB / 0.791 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.5041, allocations: 4 kB / 0.791 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.629e-05/0.5041, allocations: 0 / 0.791 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002527/0.5044, allocations: 27.92 kB / 0.7911 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.5044, allocations: 0 / 0.7911 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001673/0.5046, allocations: 19.98 kB / 0.7911 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.499e-05/0.5046, allocations: 0 / 0.7911 GB, free: 7.684 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 0.0001876/0.5048, allocations: 113.8 kB / 0.7912 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.309e-05/0.5049, allocations: 11.84 kB / 0.7912 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000735/0.5056, allocations: 133.5 kB / 0.7913 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.5057, allocations: 0 / 0.7913 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/0.5057, allocations: 3.953 kB / 0.7913 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.5057, allocations: 0 / 0.7913 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003539/0.5061, allocations: 177.6 kB / 0.7915 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.5061, allocations: 0 / 0.7915 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001805/0.5063, allocations: 27.97 kB / 0.7915 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.344e-06/0.5064, allocations: 0 / 0.7915 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.013e-05/0.5064, allocations: 4 kB / 0.7915 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.5064, allocations: 0 / 0.7915 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.5064, allocations: 3.938 kB / 0.7915 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007497/0.5072, allocations: 223.4 kB / 0.7918 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.5073, allocations: 88.95 kB / 0.7918 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.735e-05/0.5074, allocations: 4 kB / 0.7918 GB, free: 6.801 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002078/0.5076, allocations: 15.98 kB / 0.7919 GB, free: 6.785 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.447e-05/0.5077, allocations: 7.984 kB / 0.7919 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/0.5077, allocations: 0 / 0.7919 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001236/0.5079, allocations: 91.22 kB / 0.792 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.6e-07/0.5079, allocations: 0 / 0.792 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0004738/0.5084, allocations: 19.94 kB / 0.792 GB, free: 6.668 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.001316/0.5097, allocations: 0.7631 MB / 0.7927 GB, free: 5.879 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006811/0.5104, allocations: 91.92 kB / 0.7928 GB, free: 5.789 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.678e-06/0.5104, allocations: 0 / 0.7928 GB, free: 5.789 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0003422/0.5108, allocations: 55.95 kB / 0.7929 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004072/0.5112, allocations: 4 kB / 0.7929 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002296/0.5135, allocations: 0.5761 MB / 0.7934 GB, free: 5.109 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005813/0.5141, allocations: 0.6887 MB / 0.7941 GB, free: 4.395 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001018/0.5143, allocations: 11.98 kB / 0.7941 GB, free: 4.383 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.747e-05/0.5144, allocations: 15.44 kB / 0.7941 GB, free: 4.367 MB / 0.6075 GB Notification: Performance of SimCode: time 1.513e-06/0.5144, allocations: 4 kB / 0.7941 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02534/0.5397, allocations: 1.465 MB / 0.7956 GB, free: 3.008 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003688/0.5402, allocations: 172.7 kB / 0.7957 GB, free: 2.766 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.091/3.631, allocations: 0 / 0.7957 GB, free: 2.766 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: