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.001669/0.001669, allocations: 108 kB / 15.61 MB, free: 152 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.001946/0.001946, allocations: 197.1 kB / 16.53 MB, free: 6.664 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.327/1.327, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002156/0.002156, allocations: 279 kB / 290.7 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9438/0.9438, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00168/0.001681, allocations: 99.56 kB / 0.5953 GB, free: 27.8 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.1544, allocations: 86.98 MB / 0.6803 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002857/0.1573, allocations: 1.521 MB / 0.6818 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003145/0.1576, allocations: 104.5 kB / 0.6819 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.328e-05/0.1577, allocations: 0 / 0.6819 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001298/0.1579, allocations: 7.922 kB / 0.6819 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.955e-05/0.1579, allocations: 11.86 kB / 0.6819 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00024/0.1581, allocations: 27.97 kB / 0.6819 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.49e-05/0.1583, allocations: 59.78 kB / 0.682 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.1584, allocations: 28.25 kB / 0.682 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.382e-05/0.1585, allocations: 27.92 kB / 0.682 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.806e-05/0.1585, allocations: 31.89 kB / 0.6821 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.88e-05/0.1586, allocations: 4 kB / 0.6821 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.314e-05/0.1586, allocations: 8 kB / 0.6821 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.51e-05/0.1587, allocations: 23.92 kB / 0.6821 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.134e-05/0.1587, allocations: 27.86 kB / 0.6821 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001397/0.1589, allocations: 63.73 kB / 0.6822 GB, free: 14.63 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.1589, allocations: 0 / 0.6822 GB, free: 14.63 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1589, allocations: 0 / 0.6822 GB, free: 14.63 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.1589, allocations: 0 / 0.6822 GB, free: 14.63 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.0005027/0.1594, allocations: 375.3 kB / 0.6825 GB, free: 14.21 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.1595, allocations: 12.03 kB / 0.6826 GB, free: 14.2 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.639e-05/0.1595, allocations: 42.69 kB / 0.6826 GB, free: 14.15 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.179e-05/0.1595, allocations: 12.78 kB / 0.6826 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001661/0.1597, allocations: 188.2 kB / 0.6828 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.1597, allocations: 384 / 0.6828 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.693e-05/0.1597, allocations: 8.375 kB / 0.6828 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000269/0.16, allocations: 78.2 kB / 0.6829 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.16, allocations: 3.938 kB / 0.6829 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.1601, allocations: 8 kB / 0.6829 GB, free: 13.81 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.1601, allocations: 7.984 kB / 0.6829 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003258/0.1604, allocations: 79.84 kB / 0.683 GB, free: 13.73 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004959/0.1609, allocations: 328.7 kB / 0.6833 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000206/0.1611, allocations: 62.56 kB / 0.6833 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001559/0.1613, allocations: 36.92 kB / 0.6834 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.416e-05/0.1613, allocations: 3.984 kB / 0.6834 GB, free: 13.24 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.1614, allocations: 38.56 kB / 0.6834 GB, free: 13.2 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.1614, allocations: 0 / 0.6834 GB, free: 13.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005377/0.1619, allocations: 137.5 kB / 0.6835 GB, free: 13.05 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.303e-05/0.162, allocations: 51.41 kB / 0.6836 GB, free: 12.99 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.911e-05/0.162, allocations: 121.7 kB / 0.6837 GB, free: 12.86 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/0.1621, allocations: 29.7 kB / 0.6837 GB, free: 12.83 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.938e-05/0.1621, allocations: 96.03 kB / 0.6838 GB, free: 12.73 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.834e-05/0.1621, allocations: 7.906 kB / 0.6838 GB, free: 12.72 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.186e-05/0.1622, allocations: 9.719 kB / 0.6838 GB, free: 12.71 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.112e-05/0.1623, allocations: 326.8 kB / 0.6842 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001452/0.1624, allocations: 27.97 kB / 0.6842 GB, free: 12.35 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.1626, allocations: 39.95 kB / 0.6842 GB, free: 12.31 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002682/0.1629, allocations: 76.72 kB / 0.6843 GB, free: 12.23 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1629, allocations: 0 / 0.6843 GB, free: 12.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003262/0.1632, allocations: 109.5 kB / 0.6844 GB, free: 12.12 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.1632, allocations: 8 kB / 0.6844 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.1632, allocations: 0 / 0.6844 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.1633, allocations: 0 / 0.6844 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.1634, allocations: 15.92 kB / 0.6844 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.1634, allocations: 4 kB / 0.6844 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.441e-05/0.1635, allocations: 7.984 kB / 0.6844 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/0.1635, allocations: 4 kB / 0.6844 GB, free: 12.08 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 7.199e-05/0.1636, allocations: 126.4 kB / 0.6846 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.6e-05/0.1636, allocations: 3.938 kB / 0.6846 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000366/0.164, allocations: 113.5 kB / 0.6847 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.164, allocations: 3.984 kB / 0.6847 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.164, allocations: 0 / 0.6847 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.164, allocations: 4 kB / 0.6847 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001661/0.1642, allocations: 181.6 kB / 0.6849 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.1642, allocations: 4 kB / 0.6849 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.1643, allocations: 15.92 kB / 0.6849 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1643, allocations: 0 / 0.6849 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.1643, allocations: 0 / 0.6849 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.1643, allocations: 11.98 kB / 0.6849 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1644, allocations: 0 / 0.6849 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003462/0.1647, allocations: 211.7 kB / 0.6851 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.983e-05/0.1647, allocations: 81.02 kB / 0.6852 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.465e-05/0.1648, allocations: 0 / 0.6852 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.1649, allocations: 11.98 kB / 0.6852 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.7e-05/0.1649, allocations: 3.984 kB / 0.6852 GB, free: 11.22 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.175e-06/0.1649, allocations: 8 kB / 0.6852 GB, free: 11.21 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.764e-05/0.165, allocations: 95.27 kB / 0.6853 GB, free: 11.12 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.165, allocations: 0 / 0.6853 GB, free: 11.12 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002238/0.1652, allocations: 11.94 kB / 0.6853 GB, free: 11.11 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.0006138/0.1658, allocations: 0.7475 MB / 0.686 GB, free: 10.34 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003405/0.1662, allocations: 75.91 kB / 0.6861 GB, free: 10.26 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.1662, allocations: 4 kB / 0.6861 GB, free: 10.26 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001506/0.1664, allocations: 39.91 kB / 0.6861 GB, free: 10.22 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000332/0.1667, allocations: 7.984 kB / 0.6861 GB, free: 10.21 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001831/0.1685, allocations: 1.41 MB / 0.6875 GB, free: 8.723 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002351/0.1688, allocations: 0.6962 MB / 0.6882 GB, free: 8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.235e-05/0.1688, allocations: 7.984 kB / 0.6882 GB, free: 7.992 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.897e-05/0.1689, allocations: 15.44 kB / 0.6882 GB, free: 7.977 MB / 494.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1689, allocations: 0 / 0.6882 GB, free: 7.977 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01799/0.1869, allocations: 1.795 MB / 0.69 GB, free: 6.254 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.921/7.108, allocations: 10.34 kB / 0.69 GB, free: 6.246 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1)