Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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(BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.001151/0.001151, 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.001263/0.001263, allocations: 194.5 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.365/1.365, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 1.039/1.039, allocations: 143 MB / 433.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 67.89 kB / 0.5143 GB, free: 11.59 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1639/0.1652, allocations: 82.03 MB / 0.5944 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside): time 0.002806/0.1681, allocations: 1.443 MB / 0.5958 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007702/0.1689, allocations: 459.8 kB / 0.5962 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.848e-05/0.1689, allocations: 0 / 0.5962 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.752e-05/0.169, allocations: 7.875 kB / 0.5962 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.406e-05/0.169, allocations: 7.938 kB / 0.5962 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002239/0.1693, allocations: 23.97 kB / 0.5963 GB, free: 7.566 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.692e-05/0.1694, allocations: 27.92 kB / 0.5963 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.83e-05/0.1694, allocations: 4 kB / 0.5963 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.674e-05/0.1695, allocations: 15.92 kB / 0.5963 GB, free: 7.52 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.49e-05/0.1696, allocations: 3.938 kB / 0.5963 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.291e-05/0.1696, allocations: 4 kB / 0.5963 GB, free: 7.512 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.494e-05/0.1697, allocations: 27.95 kB / 0.5963 GB, free: 7.484 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.153e-05/0.1697, allocations: 4 kB / 0.5963 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.49e-05/0.1697, allocations: 7.938 kB / 0.5964 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001021/0.1698, allocations: 39.89 kB / 0.5964 GB, free: 7.434 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1698, allocations: 4 kB / 0.5964 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.092e-06/0.1698, allocations: 0 / 0.5964 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.1698, allocations: 0 / 0.5964 GB, free: 7.43 MB / 0.4981 GB 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.0004098/0.1703, allocations: 339.7 kB / 0.5967 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.1703, allocations: 12.03 kB / 0.5967 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.34e-05/0.1703, allocations: 30.75 kB / 0.5968 GB, free: 7 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.53e-05/0.1704, allocations: 0.9375 kB / 0.5968 GB, free: 7 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.1705, allocations: 172.2 kB / 0.5969 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.1705, allocations: 4.375 kB / 0.5969 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.183e-06/0.1705, allocations: 384 / 0.5969 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001645/0.1707, allocations: 53.8 kB / 0.597 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.1707, allocations: 0 / 0.597 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.1707, allocations: 0 / 0.597 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.1707, allocations: 0 / 0.597 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001626/0.1709, allocations: 35.95 kB / 0.597 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000323/0.1712, allocations: 264.8 kB / 0.5973 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001805/0.1714, allocations: 38.5 kB / 0.5973 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001387/0.1716, allocations: 20.91 kB / 0.5973 GB, free: 6.316 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001493/0.1717, allocations: 93.03 kB / 0.5974 GB, free: 6.207 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.664e-05/0.1718, allocations: 34.56 kB / 0.5974 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 2.645e-06/0.1718, allocations: 3.984 kB / 0.5975 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0003618/0.1722, allocations: 81.58 kB / 0.5975 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.475e-05/0.1722, allocations: 55.41 kB / 0.5976 GB, free: 6.008 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.83e-05/0.1723, allocations: 101.9 kB / 0.5977 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.1723, allocations: 25.7 kB / 0.5977 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.982e-05/0.1723, allocations: 92.25 kB / 0.5978 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.588e-05/0.1724, allocations: 7.844 kB / 0.5978 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.25e-05/0.1724, allocations: 17.72 kB / 0.5978 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001009/0.1725, allocations: 314.8 kB / 0.5981 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.589e-05/0.1726, allocations: 15.98 kB / 0.5981 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.1727, allocations: 19.97 kB / 0.5982 GB, free: 5.391 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001519/0.1729, allocations: 40.89 kB / 0.5982 GB, free: 5.348 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1729, allocations: 0 / 0.5982 GB, free: 5.348 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001966/0.1731, allocations: 73.5 kB / 0.5983 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.1731, allocations: 4 kB / 0.5983 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.1731, allocations: 0 / 0.5983 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.382e-05/0.1731, allocations: 0 / 0.5983 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.401e-05/0.1732, allocations: 11.98 kB / 0.5983 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.1733, allocations: 4.031 kB / 0.5983 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.786e-05/0.1733, allocations: 8 kB / 0.5983 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.83e-06/0.1733, allocations: 0 / 0.5983 GB, free: 5.242 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 7.195e-05/0.1734, allocations: 113.8 kB / 0.5984 GB, free: 5.121 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.632e-05/0.1734, allocations: 4 kB / 0.5984 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002272/0.1737, allocations: 72.72 kB / 0.5985 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.1737, allocations: 4.031 kB / 0.5985 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1737, allocations: 0 / 0.5985 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.1737, allocations: 4 kB / 0.5985 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001547/0.1739, allocations: 161.6 kB / 0.5986 GB, free: 4.828 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1739, allocations: 0 / 0.5986 GB, free: 4.828 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.623e-05/0.1739, allocations: 4 kB / 0.5986 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.1739, allocations: 4 kB / 0.5986 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.1739, allocations: 0 / 0.5986 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.174, allocations: 3.984 kB / 0.5986 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.174, allocations: 3.938 kB / 0.5986 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002339/0.1742, allocations: 163.5 kB / 0.5988 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.448e-05/0.1742, allocations: 85 kB / 0.5989 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.154e-05/0.1743, allocations: 0 / 0.5989 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.571e-05/0.1743, allocations: 4 kB / 0.5989 GB, free: 4.531 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.216e-05/0.1744, allocations: 11.92 kB / 0.5989 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.1744, allocations: 4.281 kB / 0.5989 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.341e-05/0.1744, allocations: 91.22 kB / 0.599 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.1744, allocations: 0 / 0.599 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002216/0.1747, allocations: 4 kB / 0.599 GB, free: 4.422 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.0005227/0.1752, allocations: 0.7007 MB / 0.5997 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002033/0.1754, allocations: 35.97 kB / 0.5997 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1754, allocations: 0 / 0.5997 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.696e-05/0.1755, allocations: 23.92 kB / 0.5997 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002809/0.1758, allocations: 5.875 kB / 0.5997 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004077/0.1762, allocations: 143.3 kB / 0.5999 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002308/0.1765, allocations: 0.6768 MB / 0.6005 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.321e-05/0.1765, allocations: 0 / 0.6005 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.041e-05/0.1765, allocations: 11.44 kB / 0.6005 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1765, allocations: 4 kB / 0.6006 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01911/0.1957, allocations: 1.4 MB / 0.6019 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.504/7.699, allocations: 6.625 kB / 0.6019 GB, free: 1.406 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.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 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_SmoothHeaviside.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)