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.001401/0.001401, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 195.6 kB / 16.53 MB, free: 6.391 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.308/1.308, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002099/0.002099, allocations: 282.9 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9261/0.9261, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003021/0.003021, allocations: 100.6 kB / 0.5953 GB, free: 27.82 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1957/0.1988, allocations: 86.98 MB / 0.6803 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.003935/0.2028, allocations: 1.534 MB / 0.6818 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004046/0.2032, allocations: 112.5 kB / 0.6819 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.571e-05/0.2033, allocations: 0.7812 kB / 0.6819 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001314/0.2034, allocations: 11.86 kB / 0.6819 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.282e-05/0.2035, allocations: 9.469 kB / 0.6819 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002611/0.2038, allocations: 27.97 kB / 0.6819 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001258/0.2039, allocations: 55.78 kB / 0.682 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001407/0.2041, allocations: 30.53 kB / 0.682 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.134e-05/0.2041, allocations: 25.25 kB / 0.682 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.109e-05/0.2042, allocations: 27.91 kB / 0.6821 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.408e-05/0.2043, allocations: 4 kB / 0.6821 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.5e-05/0.2044, allocations: 16 kB / 0.6821 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.368e-05/0.2044, allocations: 19.92 kB / 0.6821 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.747e-05/0.2045, allocations: 23.86 kB / 0.6821 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001659/0.2047, allocations: 63.73 kB / 0.6822 GB, free: 14.65 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2047, allocations: 0 / 0.6822 GB, free: 14.65 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2047, allocations: 0 / 0.6822 GB, free: 14.65 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.2047, allocations: 0 / 0.6822 GB, free: 14.65 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.0006967/0.2054, allocations: 375.3 kB / 0.6825 GB, free: 14.23 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.2055, allocations: 16.03 kB / 0.6826 GB, free: 14.22 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.891e-05/0.2056, allocations: 42.62 kB / 0.6826 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.194e-05/0.2056, allocations: 8.844 kB / 0.6826 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002298/0.2059, allocations: 184.2 kB / 0.6828 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.2059, allocations: 4.375 kB / 0.6828 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.008e-05/0.2059, allocations: 4.375 kB / 0.6828 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003998/0.2063, allocations: 82.2 kB / 0.6829 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.2064, allocations: 7.938 kB / 0.6829 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.768e-05/0.2064, allocations: 0 / 0.6829 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.2064, allocations: 11.88 kB / 0.6829 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005052/0.2069, allocations: 79.91 kB / 0.683 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007896/0.2077, allocations: 324.8 kB / 0.6833 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003156/0.2081, allocations: 62.47 kB / 0.6833 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002482/0.2083, allocations: 36.92 kB / 0.6834 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.561e-05/0.2084, allocations: 7.984 kB / 0.6834 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/0.2084, allocations: 38.56 kB / 0.6834 GB, free: 13.22 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.843e-06/0.2084, allocations: 0 / 0.6834 GB, free: 13.22 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008459/0.2093, allocations: 137.4 kB / 0.6835 GB, free: 13.08 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.2094, allocations: 51.41 kB / 0.6836 GB, free: 13.02 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.2095, allocations: 121.8 kB / 0.6837 GB, free: 12.89 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.2095, allocations: 25.7 kB / 0.6837 GB, free: 12.86 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.814e-05/0.2096, allocations: 92.03 kB / 0.6838 GB, free: 12.76 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.582e-05/0.2096, allocations: 7.906 kB / 0.6838 GB, free: 12.75 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.486e-05/0.2097, allocations: 17.72 kB / 0.6838 GB, free: 12.73 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.2099, allocations: 322.8 kB / 0.6842 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002362/0.2101, allocations: 31.97 kB / 0.6842 GB, free: 12.38 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002274/0.2103, allocations: 35.95 kB / 0.6842 GB, free: 12.34 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004641/0.2108, allocations: 76.72 kB / 0.6843 GB, free: 12.26 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2108, allocations: 0 / 0.6843 GB, free: 12.26 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005481/0.2114, allocations: 109.5 kB / 0.6844 GB, free: 12.15 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.2114, allocations: 8 kB / 0.6844 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2115, allocations: 0 / 0.6844 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.2115, allocations: 0 / 0.6844 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/0.2117, allocations: 15.98 kB / 0.6844 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.2117, allocations: 0 / 0.6844 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.2118, allocations: 11.98 kB / 0.6844 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.564e-05/0.2119, allocations: 12 kB / 0.6844 GB, free: 12.1 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 0.0001238/0.212, allocations: 118.4 kB / 0.6846 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.114e-05/0.2121, allocations: 4 kB / 0.6846 GB, free: 11.97 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005986/0.2127, allocations: 117.7 kB / 0.6847 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.2127, allocations: 48 / 0.6847 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.2127, allocations: 7.969 kB / 0.6847 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2127, allocations: 4 kB / 0.6847 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002917/0.213, allocations: 185.6 kB / 0.6849 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2131, allocations: 0 / 0.6849 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001513/0.2132, allocations: 11.98 kB / 0.6849 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.287e-06/0.2132, allocations: 0 / 0.6849 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.2133, allocations: 4 kB / 0.6849 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.2133, allocations: 0 / 0.6849 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.2133, allocations: 0 / 0.6849 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006051/0.2139, allocations: 211.2 kB / 0.6851 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.943e-05/0.214, allocations: 81.02 kB / 0.6852 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.331e-05/0.214, allocations: 0 / 0.6852 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001886/0.2142, allocations: 15.98 kB / 0.6852 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.889e-05/0.2143, allocations: 7.984 kB / 0.6852 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.2143, allocations: 4 kB / 0.6852 GB, free: 11.24 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.219e-05/0.2144, allocations: 99.58 kB / 0.6853 GB, free: 11.14 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2144, allocations: 0 / 0.6853 GB, free: 11.14 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004479/0.2149, allocations: 11.94 kB / 0.6853 GB, free: 11.13 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.001006/0.2159, allocations: 0.7436 MB / 0.686 GB, free: 10.36 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000539/0.2164, allocations: 79.84 kB / 0.6861 GB, free: 10.29 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2165, allocations: 0 / 0.6861 GB, free: 10.29 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002574/0.2167, allocations: 39.97 kB / 0.6861 GB, free: 10.25 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004612/0.2172, allocations: 5.719 kB / 0.6861 GB, free: 10.24 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002819/0.22, allocations: 1.416 MB / 0.6875 GB, free: 8.75 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003632/0.2204, allocations: 0.6923 MB / 0.6882 GB, free: 8.031 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.978e-05/0.2205, allocations: 7.984 kB / 0.6882 GB, free: 8.023 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.1e-05/0.2206, allocations: 19.44 kB / 0.6882 GB, free: 8.004 MB / 494.1 MB Notification: Performance of SimCode: time 3.9e-07/0.2206, allocations: 0 / 0.6882 GB, free: 8.004 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1441/0.3647, allocations: 1.796 MB / 0.69 GB, free: 6.277 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.055/8.419, allocations: 12.25 kB / 0.69 GB, free: 6.27 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)