Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.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.SmoothHeaviside,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside",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.001051/0.00105, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001034/0.001034, allocations: 197.1 kB / 16.14 MB, free: 6.734 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.278/1.278, allocations: 222.9 MB / 239.8 MB, free: 4.645 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001944/0.001944, allocations: 288.9 kB / 290.2 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9051/0.9051, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 92.77 kB / 0.5946 GB, free: 28.28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.171/0.1727, allocations: 86.98 MB / 0.6795 GB, free: 1.105 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002342/0.1751, allocations: 1.495 MB / 0.681 GB, free: 15.61 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006693/0.1757, allocations: 469 kB / 0.6814 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.338e-05/0.1758, allocations: 5.688 kB / 0.6815 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.821e-05/0.1758, allocations: 0 / 0.6815 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.709e-05/0.1759, allocations: 3.984 kB / 0.6815 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001448/0.176, allocations: 15.94 kB / 0.6815 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.24e-05/0.1761, allocations: 24.8 kB / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.363e-05/0.1762, allocations: 8.688 kB / 0.6815 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.878e-05/0.1762, allocations: 11.92 kB / 0.6815 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.76e-05/0.1763, allocations: 16.81 kB / 0.6815 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.029e-05/0.1763, allocations: 4 kB / 0.6815 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.122e-05/0.1764, allocations: 17.14 kB / 0.6816 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.06e-05/0.1764, allocations: 4 kB / 0.6816 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.192e-05/0.1764, allocations: 7.938 kB / 0.6816 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.181e-05/0.1765, allocations: 48.03 kB / 0.6816 GB, free: 14.98 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.1765, allocations: 0.5312 kB / 0.6816 GB, free: 14.98 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1765, allocations: 4 kB / 0.6816 GB, free: 14.98 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.567e-06/0.1765, allocations: 0 / 0.6816 GB, free: 14.98 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003878/0.1769, allocations: 339.5 kB / 0.6819 GB, free: 14.6 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.177, allocations: 8.031 kB / 0.6819 GB, free: 14.59 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.893e-05/0.177, allocations: 30.75 kB / 0.682 GB, free: 14.55 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.115e-05/0.177, allocations: 4.938 kB / 0.682 GB, free: 14.55 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.177e-05/0.1771, allocations: 160.4 kB / 0.6821 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-06/0.1771, allocations: 384 / 0.6821 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.917e-06/0.1771, allocations: 8.359 kB / 0.6821 GB, free: 14.35 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000151/0.1773, allocations: 53.81 kB / 0.6822 GB, free: 14.29 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.49e-06/0.1773, allocations: 0 / 0.6822 GB, free: 14.29 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.074e-06/0.1773, allocations: 0 / 0.6822 GB, free: 14.29 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-06/0.1773, allocations: 0 / 0.6822 GB, free: 14.29 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001543/0.1775, allocations: 39.89 kB / 0.6822 GB, free: 14.25 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002707/0.1778, allocations: 264.8 kB / 0.6825 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001175/0.1779, allocations: 34.56 kB / 0.6825 GB, free: 13.9 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.043e-05/0.178, allocations: 20.91 kB / 0.6825 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001065/0.1781, allocations: 81.09 kB / 0.6826 GB, free: 13.78 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.428e-05/0.1781, allocations: 42.5 kB / 0.6827 GB, free: 13.73 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.1781, allocations: 0 / 0.6827 GB, free: 13.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003169/0.1785, allocations: 81.64 kB / 0.6827 GB, free: 13.64 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.819e-05/0.1785, allocations: 51.41 kB / 0.6828 GB, free: 13.58 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.118e-05/0.1786, allocations: 97.86 kB / 0.6829 GB, free: 13.47 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.1786, allocations: 25.7 kB / 0.6829 GB, free: 13.44 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.753e-05/0.1786, allocations: 92.12 kB / 0.683 GB, free: 13.35 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.436e-05/0.1786, allocations: 7.969 kB / 0.683 GB, free: 13.34 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-05/0.1787, allocations: 17.72 kB / 0.683 GB, free: 13.32 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.668e-05/0.1788, allocations: 318.8 kB / 0.6833 GB, free: 13 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.818e-05/0.1789, allocations: 12.23 kB / 0.6833 GB, free: 12.98 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.233e-05/0.1789, allocations: 27.91 kB / 0.6834 GB, free: 12.96 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001387/0.1791, allocations: 44.83 kB / 0.6834 GB, free: 12.91 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1791, allocations: 0 / 0.6834 GB, free: 12.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001757/0.1793, allocations: 65.66 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.1793, allocations: 4 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.1793, allocations: 4 kB / 0.6835 GB, free: 12.83 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.638e-06/0.1793, allocations: 0 / 0.6835 GB, free: 12.83 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.85e-05/0.1794, allocations: 7.984 kB / 0.6835 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.1794, allocations: 0 / 0.6835 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.262e-05/0.1795, allocations: 8.031 kB / 0.6835 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.1795, allocations: 4 kB / 0.6835 GB, free: 12.81 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 (2): * Single equations (assignments): 2 * 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 6.402e-05/0.1795, allocations: 118.4 kB / 0.6836 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.405e-05/0.1796, allocations: 3.906 kB / 0.6836 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002077/0.1798, allocations: 76.72 kB / 0.6837 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1798, allocations: 0 / 0.6837 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.1798, allocations: 4.031 kB / 0.6837 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-06/0.1798, allocations: 0 / 0.6837 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001415/0.1799, allocations: 161.6 kB / 0.6838 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.18, allocations: 0 / 0.6838 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.239e-05/0.18, allocations: 8 kB / 0.6838 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.18, allocations: 3.984 kB / 0.6838 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.991e-06/0.18, allocations: 0 / 0.6838 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.18, allocations: 0 / 0.6838 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.18, allocations: 7.984 kB / 0.6839 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002142/0.1803, allocations: 171.4 kB / 0.684 GB, free: 12.19 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.017e-05/0.1803, allocations: 81.09 kB / 0.6841 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.042e-05/0.1803, allocations: 0 / 0.6841 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.141e-05/0.1804, allocations: 4 kB / 0.6841 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.797e-05/0.1804, allocations: 3.984 kB / 0.6841 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-06/0.1804, allocations: 0 / 0.6841 GB, free: 12.08 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.79e-05/0.1805, allocations: 87.31 kB / 0.6842 GB, free: 12 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1805, allocations: 0 / 0.6842 GB, free: 12 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002103/0.1807, allocations: 8 kB / 0.6842 GB, free: 11.99 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 (2): * Single equations (assignments): 2 * 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.0004711/0.1812, allocations: 0.7045 MB / 0.6849 GB, free: 11.25 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001859/0.1814, allocations: 39.94 kB / 0.6849 GB, free: 11.21 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1814, allocations: 3.938 kB / 0.6849 GB, free: 11.21 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.767e-05/0.1815, allocations: 23.92 kB / 0.6849 GB, free: 11.19 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.1817, allocations: 9.531 kB / 0.685 GB, free: 11.18 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000361/0.1821, allocations: 141.3 kB / 0.6851 GB, free: 11 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001999/0.1823, allocations: 0.677 MB / 0.6857 GB, free: 10.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.43e-05/0.1824, allocations: 3.984 kB / 0.6858 GB, free: 10.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.677e-05/0.1824, allocations: 11.44 kB / 0.6858 GB, free: 10.29 MB / 494.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1824, allocations: 4 kB / 0.6858 GB, free: 10.28 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009773/0.1922, allocations: 1.228 MB / 0.687 GB, free: 9.16 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002102/0.1924, allocations: 210.8 kB / 0.6872 GB, free: 8.902 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.614/1.806, allocations: 0 / 0.6872 GB, free: 8.902 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)