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.001314/0.001314, 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.00122/0.00122, allocations: 195 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.347/1.347, allocations: 222.9 MB / 240.2 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002374/0.002374, allocations: 291 kB / 290.7 MB, free: 1.965 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.053/1.053, allocations: 178.6 MB / 0.5073 GB, free: 4.555 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002643/0.002643, allocations: 104.3 kB / 0.6065 GB, free: 24.81 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.1614, allocations: 89.14 MB / 0.6936 GB, free: 4.195 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002791/0.1642, allocations: 1.439 MB / 0.695 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007731/0.165, allocations: 474.2 kB / 0.6955 GB, free: 2.281 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.196e-05/0.165, allocations: 0.5 kB / 0.6955 GB, free: 2.281 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.992e-05/0.1651, allocations: 1.562 kB / 0.6955 GB, free: 2.281 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.141e-05/0.1651, allocations: 3.938 kB / 0.6955 GB, free: 2.277 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001742/0.1653, allocations: 23.92 kB / 0.6955 GB, free: 2.254 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.829e-05/0.1654, allocations: 20.55 kB / 0.6955 GB, free: 2.234 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8e-05/0.1654, allocations: 8.781 kB / 0.6955 GB, free: 2.227 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.505e-05/0.1655, allocations: 11.94 kB / 0.6955 GB, free: 2.215 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.493e-05/0.1655, allocations: 13.25 kB / 0.6955 GB, free: 2.203 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.487e-06/0.1656, allocations: 0 / 0.6955 GB, free: 2.203 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.37e-05/0.1656, allocations: 31.92 kB / 0.6956 GB, free: 2.172 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.5e-05/0.1657, allocations: 7.922 kB / 0.6956 GB, free: 2.164 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.506e-05/0.1657, allocations: 14.78 kB / 0.6956 GB, free: 2.152 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001045/0.1658, allocations: 27.95 kB / 0.6956 GB, free: 2.125 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1658, allocations: 0 / 0.6956 GB, free: 2.125 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1658, allocations: 0 / 0.6956 GB, free: 2.125 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1658, allocations: 0 / 0.6956 GB, free: 2.125 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.0004777/0.1663, allocations: 347.6 kB / 0.6959 GB, free: 1.738 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.1664, allocations: 13.39 kB / 0.696 GB, free: 1.727 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.241e-05/0.1664, allocations: 30.75 kB / 0.696 GB, free: 1.688 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.654e-05/0.1664, allocations: 4.938 kB / 0.696 GB, free: 1.684 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.1666, allocations: 172.9 kB / 0.6962 GB, free: 1.477 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.969e-06/0.1666, allocations: 384 / 0.6962 GB, free: 1.477 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.136e-06/0.1666, allocations: 8.375 kB / 0.6962 GB, free: 1.469 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001727/0.1668, allocations: 53.73 kB / 0.6962 GB, free: 1.41 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.1668, allocations: 0 / 0.6962 GB, free: 1.41 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.173e-06/0.1668, allocations: 4 kB / 0.6962 GB, free: 1.406 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.868e-06/0.1668, allocations: 0 / 0.6962 GB, free: 1.406 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001655/0.167, allocations: 31.95 kB / 0.6963 GB, free: 1.375 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003556/0.1674, allocations: 256.9 kB / 0.6965 GB, free: 1.074 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.1675, allocations: 38.55 kB / 0.6965 GB, free: 1.027 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.643e-05/0.1676, allocations: 16.91 kB / 0.6965 GB, free: 1.008 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000129/0.1677, allocations: 85.05 kB / 0.6966 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.1678, allocations: 34.56 kB / 0.6967 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.1678, allocations: 4 kB / 0.6967 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003363/0.1681, allocations: 77.64 kB / 0.6967 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.454e-05/0.1682, allocations: 51.41 kB / 0.6968 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.656e-05/0.1683, allocations: 109.8 kB / 0.6969 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.1683, allocations: 25.7 kB / 0.6969 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.274e-05/0.1683, allocations: 84.14 kB / 0.697 GB, free: 492 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.64e-05/0.1684, allocations: 15.97 kB / 0.697 GB, free: 476 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.142e-05/0.1684, allocations: 13.7 kB / 0.697 GB, free: 456 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.1686, allocations: 322.8 kB / 0.6973 GB, free: 124 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.198e-05/0.1686, allocations: 11.98 kB / 0.6973 GB, free: 112 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.294e-05/0.1687, allocations: 19.92 kB / 0.6974 GB, free: 92 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001505/0.1689, allocations: 44.88 kB / 0.6974 GB, free: 44 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.1689, allocations: 0 / 0.6974 GB, free: 44 kB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002198/0.1691, allocations: 65.58 kB / 0.6975 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.1691, allocations: 4 kB / 0.6975 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.1691, allocations: 3.984 kB / 0.6975 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.1692, allocations: 0 / 0.6975 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.897e-05/0.1692, allocations: 8 kB / 0.6975 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/0.1693, allocations: 32 / 0.6975 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.591e-05/0.1693, allocations: 11.98 kB / 0.6975 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.068e-06/0.1693, allocations: 0 / 0.6975 GB, free: 15.95 MB / 0.4981 GB 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 8.571e-05/0.1694, allocations: 122.4 kB / 0.6976 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.203e-05/0.1694, allocations: 3.938 kB / 0.6976 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002178/0.1697, allocations: 72.78 kB / 0.6977 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.1697, allocations: 4.016 kB / 0.6977 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.1697, allocations: 7.938 kB / 0.6977 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.1697, allocations: 0 / 0.6977 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001597/0.1699, allocations: 157.6 kB / 0.6978 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.1699, allocations: 0 / 0.6978 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.576e-05/0.1699, allocations: 11.98 kB / 0.6979 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1699, allocations: 0 / 0.6979 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.53e-06/0.1699, allocations: 0 / 0.6979 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1699, allocations: 0 / 0.6979 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.1699, allocations: 0 / 0.6979 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002335/0.1702, allocations: 171.4 kB / 0.698 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.527e-05/0.1702, allocations: 85.02 kB / 0.6981 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.085e-05/0.1703, allocations: 0 / 0.6981 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.558e-05/0.1703, allocations: 7.984 kB / 0.6981 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.834e-05/0.1704, allocations: 0 / 0.6981 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.1704, allocations: 0 / 0.6981 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.735e-05/0.1704, allocations: 95.55 kB / 0.6982 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1704, allocations: 0 / 0.6982 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002158/0.1707, allocations: 12 kB / 0.6982 GB, free: 15.11 MB / 0.4981 GB 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.0005856/0.1712, allocations: 0.7007 MB / 0.6989 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001939/0.1714, allocations: 35.95 kB / 0.6989 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.1715, allocations: 0 / 0.6989 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.026e-05/0.1716, allocations: 19.98 kB / 0.699 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002782/0.1718, allocations: 7.984 kB / 0.699 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000394/0.1722, allocations: 135.3 kB / 0.6991 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003286/0.1726, allocations: 0.6768 MB / 0.6998 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.387e-05/0.1726, allocations: 4 kB / 0.6998 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.099e-05/0.1726, allocations: 15.42 kB / 0.6998 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.1727, allocations: 0 / 0.6998 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02263/0.1953, allocations: 1.416 MB / 0.7012 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.491/7.686, allocations: 5.469 kB / 0.7012 GB, free: 12.08 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside_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_SmoothHeaviside.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)