Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",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.001484/0.001484, 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.001519/0.001519, allocations: 195.4 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.38/1.38, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002414/0.002414, allocations: 291 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.017/1.017, allocations: 178.6 MB / 0.5073 GB, free: 4.586 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002648/0.002648, allocations: 107.4 kB / 0.6066 GB, free: 24.7 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.152, allocations: 89.15 MB / 0.6936 GB, free: 4.219 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001806/0.1539, allocations: 0.5869 MB / 0.6942 GB, free: 3.633 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.1552, allocations: 1.112 MB / 0.6953 GB, free: 2.508 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.658e-05/0.1553, allocations: 0 / 0.6953 GB, free: 2.508 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.728e-06/0.1553, allocations: 0 / 0.6953 GB, free: 2.508 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002053/0.1555, allocations: 24.59 kB / 0.6953 GB, free: 2.484 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.176e-06/0.1555, allocations: 0 / 0.6953 GB, free: 2.484 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.478e-05/0.1556, allocations: 9.719 kB / 0.6953 GB, free: 2.477 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.363e-05/0.1556, allocations: 0 / 0.6953 GB, free: 2.477 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.146e-05/0.1556, allocations: 3.938 kB / 0.6953 GB, free: 2.473 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.06e-05/0.1556, allocations: 4 kB / 0.6953 GB, free: 2.469 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.111e-06/0.1557, allocations: 0 / 0.6953 GB, free: 2.469 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.291e-05/0.1558, allocations: 20.56 kB / 0.6953 GB, free: 2.449 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.963e-06/0.1558, allocations: 4.594 kB / 0.6953 GB, free: 2.445 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.738e-05/0.1558, allocations: 7.922 kB / 0.6953 GB, free: 2.438 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 6.33e-05/0.1559, allocations: 9.844 kB / 0.6954 GB, free: 2.43 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1559, allocations: 4 kB / 0.6954 GB, free: 2.426 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1559, allocations: 0 / 0.6954 GB, free: 2.426 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1559, allocations: 3.984 kB / 0.6954 GB, free: 2.422 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.0002811/0.1562, allocations: 314 kB / 0.6957 GB, free: 2.07 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/0.1562, allocations: 8.031 kB / 0.6957 GB, free: 2.062 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.581e-05/0.1562, allocations: 34.75 kB / 0.6957 GB, free: 2.02 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.078e-05/0.1563, allocations: 4.938 kB / 0.6957 GB, free: 2.016 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/0.1564, allocations: 164.7 kB / 0.6959 GB, free: 1.816 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.1564, allocations: 384 / 0.6959 GB, free: 1.816 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.943e-05/0.1564, allocations: 8.312 kB / 0.6959 GB, free: 1.809 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.723e-05/0.1565, allocations: 37.81 kB / 0.6959 GB, free: 1.766 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.1565, allocations: 3.906 kB / 0.6959 GB, free: 1.762 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.1566, allocations: 8 kB / 0.6959 GB, free: 1.754 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.1566, allocations: 3.938 kB / 0.6959 GB, free: 1.75 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.894e-05/0.1566, allocations: 7.938 kB / 0.6959 GB, free: 1.742 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001537/0.1568, allocations: 157.6 kB / 0.6961 GB, free: 1.539 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001622/0.1569, allocations: 30.58 kB / 0.6961 GB, free: 1.5 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.8e-05/0.157, allocations: 20.94 kB / 0.6961 GB, free: 1.477 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001378/0.1571, allocations: 85.09 kB / 0.6962 GB, free: 1.375 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.468e-05/0.1571, allocations: 34.5 kB / 0.6962 GB, free: 1.332 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1572, allocations: 3.938 kB / 0.6962 GB, free: 1.328 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.004254/0.1614, allocations: 0.5638 MB / 0.6968 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.692e-05/0.1615, allocations: 51.41 kB / 0.6968 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.035e-05/0.1615, allocations: 93.86 kB / 0.6969 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.099e-05/0.1615, allocations: 29.7 kB / 0.697 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.139e-05/0.1616, allocations: 80.14 kB / 0.697 GB, free: 488 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.698e-05/0.1616, allocations: 15.8 kB / 0.6971 GB, free: 472 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.233e-05/0.1617, allocations: 17.72 kB / 0.6971 GB, free: 448 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1618, allocations: 318.8 kB / 0.6974 GB, free: 120 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006131/0.1624, allocations: 79.95 kB / 0.6975 GB, free: 40 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006753/0.1631, allocations: 106.6 kB / 0.6976 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001199/0.1643, allocations: 186.4 kB / 0.6977 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.1643, allocations: 0 / 0.6977 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001275/0.1656, allocations: 225.4 kB / 0.6979 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.1656, allocations: 4 kB / 0.698 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.1657, allocations: 4 kB / 0.698 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.1657, allocations: 0 / 0.698 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000405/0.1661, allocations: 48 kB / 0.698 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.1661, allocations: 4 kB / 0.698 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003499/0.1665, allocations: 35.98 kB / 0.698 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.472e-05/0.1665, allocations: 4 kB / 0.698 GB, free: 15.41 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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 9.535e-05/0.1666, allocations: 113.8 kB / 0.6982 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.142e-05/0.1666, allocations: 7.938 kB / 0.6982 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001401/0.168, allocations: 237 kB / 0.6984 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.168, allocations: 0 / 0.6984 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/0.168, allocations: 3.938 kB / 0.6984 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.168, allocations: 0 / 0.6984 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001553/0.1696, allocations: 458.3 kB / 0.6988 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.1696, allocations: 4 kB / 0.6988 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003893/0.17, allocations: 47.97 kB / 0.6989 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.17, allocations: 320 / 0.6989 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.1701, allocations: 4 kB / 0.6989 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.1701, allocations: 4 kB / 0.6989 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.1701, allocations: 8 kB / 0.6989 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001312/0.1714, allocations: 299.4 kB / 0.6992 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.179e-05/0.1714, allocations: 77.11 kB / 0.6993 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.1715, allocations: 7.938 kB / 0.6993 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003791/0.1719, allocations: 39.97 kB / 0.6993 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.511e-05/0.1719, allocations: 7.938 kB / 0.6993 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.1719, allocations: 4 kB / 0.6993 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.359e-05/0.1719, allocations: 75.28 kB / 0.6994 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1719, allocations: 4 kB / 0.6994 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002511/0.1722, allocations: 15.98 kB / 0.6994 GB, free: 13.91 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 (5): * Single equations (assignments): 5 * 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.001684/0.1739, allocations: 0.8378 MB / 0.7002 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001327/0.1752, allocations: 183.9 kB / 0.7004 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1752, allocations: 0 / 0.7004 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006154/0.1759, allocations: 88.06 kB / 0.7005 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002183/0.1761, allocations: 12.75 kB / 0.7005 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/0.1774, allocations: 238.6 kB / 0.7007 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/0.1777, allocations: 0.6768 MB / 0.7014 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002182/0.1779, allocations: 28 kB / 0.7014 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.067e-05/0.178, allocations: 15.44 kB / 0.7014 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of SimCode: time 4.31e-07/0.178, allocations: 0 / 0.7014 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02134/0.1994, allocations: 1.637 MB / 0.703 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.365/7.565, allocations: 8.25 kB / 0.703 GB, free: 10.24 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)