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.0007711/0.0007711, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.004828/0.004828, allocations: 171.5 kB / 16.26 MB, free: 6.613 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.339/1.339, allocations: 223.2 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001716/0.001716, allocations: 263.1 kB / 291.7 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9279/0.9279, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004405/0.0004404, allocations: 15.39 kB / 0.5988 GB, free: 27.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.19/0.1904, allocations: 88.54 MB / 0.6852 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.001735/0.1922, allocations: 1.252 MB / 0.6865 GB, free: 13.71 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003189/0.1926, allocations: 108.5 kB / 0.6866 GB, free: 13.6 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.725e-05/0.1926, allocations: 1.75 kB / 0.6866 GB, free: 13.6 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001156/0.1927, allocations: 3.938 kB / 0.6866 GB, free: 13.6 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.819e-05/0.1928, allocations: 11.92 kB / 0.6866 GB, free: 13.59 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002105/0.193, allocations: 27.97 kB / 0.6866 GB, free: 13.56 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.347e-05/0.1931, allocations: 52.75 kB / 0.6867 GB, free: 13.51 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.1932, allocations: 31.72 kB / 0.6867 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.016e-05/0.1933, allocations: 15.92 kB / 0.6867 GB, free: 13.46 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.757e-05/0.1933, allocations: 23.91 kB / 0.6867 GB, free: 13.44 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.606e-05/0.1934, allocations: 4 kB / 0.6867 GB, free: 13.44 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.664e-05/0.1934, allocations: 11.98 kB / 0.6867 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.995e-05/0.1935, allocations: 12.56 kB / 0.6867 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.922e-05/0.1935, allocations: 46.19 kB / 0.6868 GB, free: 13.36 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001243/0.1937, allocations: 59.72 kB / 0.6868 GB, free: 13.3 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.1937, allocations: 0.5625 kB / 0.6868 GB, free: 13.3 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1937, allocations: 0.9062 kB / 0.6868 GB, free: 13.3 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.1937, allocations: 0 / 0.6868 GB, free: 13.3 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.0004974/0.1942, allocations: 381.8 kB / 0.6872 GB, free: 12.88 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/0.1942, allocations: 9.219 kB / 0.6872 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.52e-05/0.1943, allocations: 34.75 kB / 0.6873 GB, free: 12.83 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.711e-05/0.1943, allocations: 4.844 kB / 0.6873 GB, free: 12.83 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001642/0.1945, allocations: 188.7 kB / 0.6874 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.1945, allocations: 4.375 kB / 0.6874 GB, free: 12.6 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.546e-05/0.1945, allocations: 6.094 kB / 0.6875 GB, free: 12.6 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002838/0.1948, allocations: 105.2 kB / 0.6876 GB, free: 12.49 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.1948, allocations: 3.938 kB / 0.6876 GB, free: 12.49 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.1949, allocations: 0 / 0.6876 GB, free: 12.49 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-06/0.1949, allocations: 3.938 kB / 0.6876 GB, free: 12.48 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003208/0.1952, allocations: 101.1 kB / 0.6877 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005126/0.1957, allocations: 346.7 kB / 0.688 GB, free: 12 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002128/0.1959, allocations: 68.7 kB / 0.6881 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.1961, allocations: 52.84 kB / 0.6881 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.575e-05/0.1962, allocations: 4 kB / 0.6881 GB, free: 11.87 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.1962, allocations: 34.56 kB / 0.6881 GB, free: 11.83 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 2.224e-06/0.1962, allocations: 3.984 kB / 0.6881 GB, free: 11.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005786/0.1968, allocations: 173.5 kB / 0.6883 GB, free: 11.65 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.1968, allocations: 55.39 kB / 0.6884 GB, free: 11.58 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.337e-05/0.1969, allocations: 109.8 kB / 0.6885 GB, free: 11.46 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.1969, allocations: 29.7 kB / 0.6885 GB, free: 11.43 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.416e-05/0.197, allocations: 92.14 kB / 0.6886 GB, free: 11.34 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.188e-05/0.197, allocations: 11.8 kB / 0.6886 GB, free: 11.32 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.496e-05/0.1971, allocations: 13.72 kB / 0.6886 GB, free: 11.3 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.1972, allocations: 318.8 kB / 0.6889 GB, free: 10.98 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.1973, allocations: 51.89 kB / 0.689 GB, free: 10.93 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.1975, allocations: 39.97 kB / 0.689 GB, free: 10.89 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002901/0.1978, allocations: 96.77 kB / 0.6891 GB, free: 10.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.1978, allocations: 4 kB / 0.6891 GB, free: 10.79 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003391/0.1981, allocations: 125.6 kB / 0.6892 GB, free: 10.66 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.1982, allocations: 4 kB / 0.6892 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.1982, allocations: 8 kB / 0.6892 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.1982, allocations: 0 / 0.6892 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.1983, allocations: 23.97 kB / 0.6892 GB, free: 10.63 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.1984, allocations: 3.938 kB / 0.6893 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.996e-05/0.1984, allocations: 15.98 kB / 0.6893 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.94e-05/0.1985, allocations: 4 kB / 0.6893 GB, free: 10.61 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.363e-05/0.1986, allocations: 118.4 kB / 0.6894 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.615e-05/0.1986, allocations: 7.906 kB / 0.6894 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004021/0.199, allocations: 137.4 kB / 0.6895 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.654e-06/0.199, allocations: 0 / 0.6895 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.199, allocations: 0 / 0.6895 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.199, allocations: 0 / 0.6895 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000186/0.1992, allocations: 189.6 kB / 0.6897 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1992, allocations: 0 / 0.6897 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.1993, allocations: 23.98 kB / 0.6897 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1993, allocations: 0 / 0.6897 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.1994, allocations: 3.984 kB / 0.6897 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.1994, allocations: 3.938 kB / 0.6897 GB, free: 10.06 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1994, allocations: 0 / 0.6897 GB, free: 10.06 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003926/0.1998, allocations: 227.8 kB / 0.6899 GB, free: 9.824 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.921e-05/0.1998, allocations: 81.09 kB / 0.69 GB, free: 9.727 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.517e-05/0.1998, allocations: 4 kB / 0.69 GB, free: 9.723 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.2, allocations: 15.98 kB / 0.69 GB, free: 9.707 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.802e-05/0.2, allocations: 8.406 kB / 0.6901 GB, free: 9.699 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-06/0.2, allocations: 0 / 0.6901 GB, free: 9.699 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.701e-05/0.2001, allocations: 87.28 kB / 0.6901 GB, free: 9.613 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2001, allocations: 0 / 0.6901 GB, free: 9.613 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002282/0.2003, allocations: 19.94 kB / 0.6902 GB, free: 9.594 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.0006978/0.201, allocations: 0.7696 MB / 0.6909 GB, free: 8.801 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003549/0.2014, allocations: 95.92 kB / 0.691 GB, free: 8.707 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2014, allocations: 3.938 kB / 0.691 GB, free: 8.703 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001636/0.2016, allocations: 51.95 kB / 0.6911 GB, free: 8.652 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.2019, allocations: 8 kB / 0.6911 GB, free: 8.645 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.2037, allocations: 1.491 MB / 0.6925 GB, free: 7.078 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000269/0.204, allocations: 0.6887 MB / 0.6932 GB, free: 6.363 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.723e-05/0.204, allocations: 7.984 kB / 0.6932 GB, free: 6.355 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.617e-05/0.2041, allocations: 15.44 kB / 0.6932 GB, free: 6.34 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2041, allocations: 0 / 0.6932 GB, free: 6.34 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01176/0.2159, allocations: 1.5 MB / 0.6947 GB, free: 4.965 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002503/0.2161, allocations: 197.5 kB / 0.6949 GB, free: 4.711 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.645/1.861, allocations: 0 / 0.6949 GB, free: 4.711 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)