Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.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.SmoothMin,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothMin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothMin,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothMin",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.001217/0.001217, 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.001257/0.001257, allocations: 194.7 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.273/1.273, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002297/0.002297, allocations: 286.4 kB / 290.7 MB, free: 2.016 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9285/0.9285, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001665/0.001665, allocations: 103.4 kB / 0.5953 GB, free: 28.01 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1625/0.1642, allocations: 86.97 MB / 0.6803 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothMin): time 0.002796/0.167, allocations: 1.452 MB / 0.6817 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000372/0.1674, allocations: 149.1 kB / 0.6818 GB, free: 15 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.172e-05/0.1674, allocations: 0.7188 kB / 0.6818 GB, free: 15 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.35e-05/0.1675, allocations: 0 / 0.6818 GB, free: 15 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.363e-05/0.1676, allocations: 4.781 kB / 0.6818 GB, free: 15 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002184/0.1678, allocations: 37.48 kB / 0.6819 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.549e-05/0.1679, allocations: 39.86 kB / 0.6819 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.168, allocations: 32.2 kB / 0.6819 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.852e-05/0.168, allocations: 15.92 kB / 0.682 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.337e-05/0.1681, allocations: 23.91 kB / 0.682 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.046e-05/0.1681, allocations: 4 kB / 0.682 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.626e-05/0.1682, allocations: 35.91 kB / 0.682 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.808e-05/0.1682, allocations: 8 kB / 0.682 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.161e-05/0.1683, allocations: 23.86 kB / 0.6821 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001222/0.1684, allocations: 63.86 kB / 0.6821 GB, free: 14.72 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1684, allocations: 0 / 0.6821 GB, free: 14.72 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1684, allocations: 0 / 0.6821 GB, free: 14.72 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.1684, allocations: 0 / 0.6821 GB, free: 14.72 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004202/0.1689, allocations: 359.3 kB / 0.6825 GB, free: 14.32 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.1689, allocations: 8.031 kB / 0.6825 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.244e-05/0.1689, allocations: 38.75 kB / 0.6825 GB, free: 14.26 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001064/0.17, allocations: 216.5 kB / 0.6827 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.1701, allocations: 164.4 kB / 0.6829 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.1701, allocations: 384 / 0.6829 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.377e-05/0.1702, allocations: 4.375 kB / 0.6829 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005456/0.1707, allocations: 194 kB / 0.6831 GB, free: 13.65 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.1707, allocations: 7.875 kB / 0.6831 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.1708, allocations: 0 / 0.6831 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.1708, allocations: 4 kB / 0.6831 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000839/0.1716, allocations: 279.6 kB / 0.6833 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008587/0.1725, allocations: 441.2 kB / 0.6838 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.1736, allocations: 294.1 kB / 0.684 GB, free: 12.59 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003503/0.174, allocations: 100.8 kB / 0.6841 GB, free: 12.49 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.174, allocations: 3.984 kB / 0.6841 GB, free: 12.48 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.667e-05/0.1741, allocations: 38.56 kB / 0.6842 GB, free: 12.44 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.1741, allocations: 0 / 0.6842 GB, free: 12.44 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.001169/0.1752, allocations: 309.2 kB / 0.6845 GB, free: 12.13 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.879e-05/0.1753, allocations: 51.41 kB / 0.6845 GB, free: 12.07 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.819e-05/0.1754, allocations: 125.7 kB / 0.6846 GB, free: 11.93 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.1754, allocations: 29.7 kB / 0.6847 GB, free: 11.9 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.499e-05/0.1755, allocations: 88.14 kB / 0.6847 GB, free: 11.81 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.173e-05/0.1755, allocations: 7.812 kB / 0.6848 GB, free: 11.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.845e-05/0.1756, allocations: 21.7 kB / 0.6848 GB, free: 11.77 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1757, allocations: 318.8 kB / 0.6851 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003542/0.176, allocations: 91.88 kB / 0.6852 GB, free: 11.36 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003543/0.1764, allocations: 103.9 kB / 0.6853 GB, free: 11.26 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006509/0.1771, allocations: 168.6 kB / 0.6854 GB, free: 11.09 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.1771, allocations: 0 / 0.6854 GB, free: 11.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000742/0.1778, allocations: 217.4 kB / 0.6856 GB, free: 10.88 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.1778, allocations: 7.938 kB / 0.6856 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.1779, allocations: 0 / 0.6856 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.1779, allocations: 0 / 0.6856 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002518/0.1781, allocations: 35.94 kB / 0.6857 GB, free: 10.83 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.1781, allocations: 0 / 0.6857 GB, free: 10.83 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001944/0.1783, allocations: 39.95 kB / 0.6857 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/0.1784, allocations: 0 / 0.6857 GB, free: 10.79 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.995e-05/0.1784, allocations: 122.4 kB / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.316e-05/0.1785, allocations: 7.906 kB / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.735e-05/0.1785, allocations: 3.906 kB / 0.6858 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.1785, allocations: 4 kB / 0.6858 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1785, allocations: 4 kB / 0.6859 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.1786, allocations: 0 / 0.6859 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002225/0.1788, allocations: 209.5 kB / 0.6861 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1788, allocations: 0 / 0.6861 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002352/0.179, allocations: 31.94 kB / 0.6861 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.179, allocations: 0 / 0.6861 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.1791, allocations: 4 kB / 0.6861 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1791, allocations: 0 / 0.6861 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1791, allocations: 0 / 0.6861 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007933/0.1799, allocations: 319.1 kB / 0.6864 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.601e-05/0.1799, allocations: 81.11 kB / 0.6865 GB, free: 9.926 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.234e-05/0.1799, allocations: 3.984 kB / 0.6865 GB, free: 9.922 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002898/0.1802, allocations: 32.33 kB / 0.6865 GB, free: 9.891 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.237e-05/0.1803, allocations: 0 / 0.6865 GB, free: 9.891 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-06/0.1803, allocations: 4 kB / 0.6865 GB, free: 9.887 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.362e-05/0.1804, allocations: 95.2 kB / 0.6866 GB, free: 9.793 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1804, allocations: 0 / 0.6866 GB, free: 9.793 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002373/0.1806, allocations: 23.88 kB / 0.6866 GB, free: 9.77 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.001065/0.1817, allocations: 0.8414 MB / 0.6874 GB, free: 8.902 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0007481/0.1824, allocations: 199.8 kB / 0.6876 GB, free: 8.707 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1824, allocations: 0 / 0.6876 GB, free: 8.707 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003701/0.1828, allocations: 103.9 kB / 0.6877 GB, free: 8.605 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002383/0.1831, allocations: 11.94 kB / 0.6877 GB, free: 8.594 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003319/0.1864, allocations: 1.84 MB / 0.6895 GB, free: 6.676 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002241/0.1866, allocations: 0.6885 MB / 0.6902 GB, free: 5.961 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.258e-05/0.1867, allocations: 19.98 kB / 0.6902 GB, free: 5.941 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.593e-05/0.1868, allocations: 19.42 kB / 0.6902 GB, free: 5.922 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1868, allocations: 0 / 0.6902 GB, free: 5.922 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01712/0.2039, allocations: 1.938 MB / 0.6921 GB, free: 4.059 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.966/7.17, allocations: 9.219 kB / 0.6922 GB, free: 4.051 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin_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_SmoothMin.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.pipe 2>&1)