Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_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.001185/0.001185, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001262/0.001262, allocations: 194.2 kB / 16.13 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.208/1.208, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00188/0.00188, allocations: 279 kB / 290.2 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8909/0.8909, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001653/0.001654, allocations: 96.78 kB / 0.5946 GB, free: 28.29 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.193/0.1946, allocations: 86.98 MB / 0.6795 GB, free: 1.066 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002778/0.1974, allocations: 1.594 MB / 0.6811 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003567/0.1978, allocations: 112.5 kB / 0.6812 GB, free: 15.36 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.415e-05/0.1979, allocations: 0 / 0.6812 GB, free: 15.36 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001267/0.198, allocations: 7.922 kB / 0.6812 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.493e-05/0.198, allocations: 3.938 kB / 0.6812 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001881/0.1982, allocations: 27.97 kB / 0.6812 GB, free: 15.32 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.433e-05/0.1983, allocations: 55.78 kB / 0.6813 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.1984, allocations: 32.25 kB / 0.6813 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.774e-05/0.1985, allocations: 23.91 kB / 0.6813 GB, free: 15.21 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.76e-05/0.1985, allocations: 19.92 kB / 0.6814 GB, free: 15.19 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.363e-05/0.1986, allocations: 4 kB / 0.6814 GB, free: 15.19 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.674e-05/0.1986, allocations: 15.98 kB / 0.6814 GB, free: 15.17 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.07e-05/0.1987, allocations: 15.92 kB / 0.6814 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.255e-05/0.1987, allocations: 19.88 kB / 0.6814 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001119/0.1988, allocations: 67.72 kB / 0.6815 GB, free: 15.07 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1988, allocations: 0 / 0.6815 GB, free: 15.07 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.1989, allocations: 3.938 kB / 0.6815 GB, free: 15.07 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.1989, allocations: 0 / 0.6815 GB, free: 15.07 MB / 494.1 MB 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.0004835/0.1993, allocations: 371.3 kB / 0.6818 GB, free: 14.65 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.1994, allocations: 12.03 kB / 0.6819 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.18e-05/0.1994, allocations: 38.73 kB / 0.6819 GB, free: 14.59 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.279e-05/0.1995, allocations: 16.78 kB / 0.6819 GB, free: 14.58 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001498/0.1997, allocations: 176.3 kB / 0.6821 GB, free: 14.37 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-06/0.1997, allocations: 4.375 kB / 0.6821 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.205e-05/0.1997, allocations: 4.375 kB / 0.6821 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000264/0.2, allocations: 90.14 kB / 0.6822 GB, free: 14.27 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.2, allocations: 7.922 kB / 0.6822 GB, free: 14.26 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.2, allocations: 7.984 kB / 0.6822 GB, free: 14.25 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.2, allocations: 0 / 0.6822 GB, free: 14.25 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003294/0.2003, allocations: 83.92 kB / 0.6823 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005188/0.2009, allocations: 324.6 kB / 0.6826 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000202/0.2011, allocations: 62.53 kB / 0.6826 GB, free: 13.73 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001506/0.2012, allocations: 40.91 kB / 0.6827 GB, free: 13.69 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.353e-05/0.2013, allocations: 4 kB / 0.6827 GB, free: 13.68 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.2013, allocations: 30.56 kB / 0.6827 GB, free: 13.64 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.2013, allocations: 4 kB / 0.6827 GB, free: 13.64 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005203/0.2018, allocations: 145.5 kB / 0.6828 GB, free: 13.49 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.2019, allocations: 51.41 kB / 0.6829 GB, free: 13.43 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.734e-05/0.202, allocations: 121.8 kB / 0.683 GB, free: 13.3 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.202, allocations: 25.7 kB / 0.683 GB, free: 13.27 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.086e-05/0.2021, allocations: 96.05 kB / 0.6831 GB, free: 13.17 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.881e-05/0.2021, allocations: 3.906 kB / 0.6831 GB, free: 13.17 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.018e-05/0.2021, allocations: 21.7 kB / 0.6832 GB, free: 13.14 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.2023, allocations: 314.8 kB / 0.6835 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001549/0.2025, allocations: 35.95 kB / 0.6835 GB, free: 12.79 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.2026, allocations: 32.48 kB / 0.6835 GB, free: 12.76 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002747/0.2029, allocations: 76.78 kB / 0.6836 GB, free: 12.68 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2029, allocations: 3.938 kB / 0.6836 GB, free: 12.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003286/0.2032, allocations: 113.5 kB / 0.6837 GB, free: 12.56 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.2033, allocations: 4 kB / 0.6837 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.2033, allocations: 0 / 0.6837 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.2033, allocations: 0 / 0.6837 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.2034, allocations: 19.97 kB / 0.6837 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.2035, allocations: 0 / 0.6837 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.984e-05/0.2036, allocations: 11.98 kB / 0.6837 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.412e-05/0.2036, allocations: 4 kB / 0.6837 GB, free: 12.52 MB / 494.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.106e-05/0.2037, allocations: 118.4 kB / 0.6839 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.723e-05/0.2037, allocations: 4 kB / 0.6839 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003982/0.2041, allocations: 121.4 kB / 0.684 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.2041, allocations: 0 / 0.684 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.2041, allocations: 0 / 0.684 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.2041, allocations: 4 kB / 0.684 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001845/0.2043, allocations: 177.6 kB / 0.6841 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2043, allocations: 4.375 kB / 0.6841 GB, free: 12.03 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.466e-05/0.2044, allocations: 11.98 kB / 0.6842 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2045, allocations: 4 kB / 0.6842 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.555e-06/0.2045, allocations: 0 / 0.6842 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.2045, allocations: 3.984 kB / 0.6842 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2045, allocations: 0 / 0.6842 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000363/0.2048, allocations: 211.2 kB / 0.6844 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.824e-05/0.2049, allocations: 85 kB / 0.6845 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.74e-05/0.2049, allocations: 4 kB / 0.6845 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.205, allocations: 11.98 kB / 0.6845 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.41e-05/0.2051, allocations: 8 kB / 0.6845 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-06/0.2051, allocations: 3.984 kB / 0.6845 GB, free: 11.66 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.675e-05/0.2052, allocations: 87.28 kB / 0.6846 GB, free: 11.57 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2052, allocations: 4 kB / 0.6846 GB, free: 11.57 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002249/0.2054, allocations: 15.94 kB / 0.6846 GB, free: 11.55 MB / 494.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000692/0.2061, allocations: 0.7358 MB / 0.6853 GB, free: 10.79 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003322/0.2064, allocations: 83.8 kB / 0.6854 GB, free: 10.71 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2064, allocations: 0 / 0.6854 GB, free: 10.71 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001508/0.2066, allocations: 39.95 kB / 0.6854 GB, free: 10.67 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003268/0.2069, allocations: 4 kB / 0.6854 GB, free: 10.67 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00167/0.2086, allocations: 1.43 MB / 0.6868 GB, free: 9.164 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002695/0.2089, allocations: 0.6934 MB / 0.6875 GB, free: 8.445 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.737e-05/0.2089, allocations: 8.062 kB / 0.6875 GB, free: 8.438 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.516e-05/0.209, allocations: 19.42 kB / 0.6875 GB, free: 8.418 MB / 494.1 MB Notification: Performance of SimCode: time 2.1e-07/0.209, allocations: 0 / 0.6875 GB, free: 8.418 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1957/0.4047, allocations: 1.571 MB / 0.6891 GB, free: 6.941 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002146/0.405, allocations: 206.1 kB / 0.6893 GB, free: 6.684 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.833/2.238, allocations: 0 / 0.6893 GB, free: 6.684 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1)