Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.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.SmoothBlocks,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks",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.00132/0.00132, 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.001261/0.001261, allocations: 197.9 kB / 16.54 MB, free: 6.672 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.366/1.366, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00253/0.00253, allocations: 291 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 1.019/1.019, allocations: 178.6 MB / 0.5073 GB, free: 4.555 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002601/0.002601, allocations: 103.5 kB / 0.6065 GB, free: 24.8 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.1514, allocations: 89.15 MB / 0.6936 GB, free: 4.203 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothBlocks): time 0.00292/0.1544, allocations: 1.773 MB / 0.6953 GB, free: 2.422 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00104/0.1554, allocations: 0.6619 MB / 0.696 GB, free: 1.754 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.996e-05/0.1555, allocations: 7.938 kB / 0.696 GB, free: 1.746 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.638e-05/0.1555, allocations: 8.75 kB / 0.696 GB, free: 1.738 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.014e-05/0.1556, allocations: 19.2 kB / 0.696 GB, free: 1.723 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004954/0.1561, allocations: 165 kB / 0.6962 GB, free: 1.566 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001467/0.1563, allocations: 127.6 kB / 0.6963 GB, free: 1.441 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.1564, allocations: 43.86 kB / 0.6963 GB, free: 1.402 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.1565, allocations: 67.83 kB / 0.6964 GB, free: 1.336 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.187e-05/0.1566, allocations: 51.75 kB / 0.6964 GB, free: 1.285 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.725e-05/0.1566, allocations: 8 kB / 0.6965 GB, free: 1.277 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001027/0.1568, allocations: 43.97 kB / 0.6965 GB, free: 1.234 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.24e-05/0.1568, allocations: 31.91 kB / 0.6965 GB, free: 1.203 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.864e-05/0.1569, allocations: 51.72 kB / 0.6966 GB, free: 1.152 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001933/0.1571, allocations: 147.5 kB / 0.6967 GB, free: 1.008 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.1571, allocations: 4 kB / 0.6967 GB, free: 1.004 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1571, allocations: 0 / 0.6967 GB, free: 1.004 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.1571, allocations: 0 / 0.6967 GB, free: 1.004 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.000589/0.1577, allocations: 435 kB / 0.6971 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.1577, allocations: 12.03 kB / 0.6971 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.781e-05/0.1578, allocations: 38.73 kB / 0.6972 GB, free: 484 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008367/0.1586, allocations: 108.7 kB / 0.6973 GB, free: 376 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.1588, allocations: 196 kB / 0.6975 GB, free: 140 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.156e-05/0.1589, allocations: 63.95 kB / 0.6975 GB, free: 64 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.399e-05/0.1589, allocations: 8.375 kB / 0.6975 GB, free: 56 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005228/0.1594, allocations: 165.5 kB / 0.6977 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.1595, allocations: 0 / 0.6977 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.15e-05/0.1595, allocations: 8 kB / 0.6977 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.1595, allocations: 7.922 kB / 0.6977 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006239/0.1601, allocations: 155.8 kB / 0.6979 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001067/0.1612, allocations: 489.7 kB / 0.6983 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001057/0.1623, allocations: 222.3 kB / 0.6985 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003052/0.1626, allocations: 80.84 kB / 0.6986 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.097e-05/0.1626, allocations: 7.984 kB / 0.6986 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.1626, allocations: 30.56 kB / 0.6987 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=6): time 1.051e-06/0.1627, allocations: 0 / 0.6987 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.00103/0.1637, allocations: 273.4 kB / 0.6989 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.1637, allocations: 51.41 kB / 0.699 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.1639, allocations: 144.1 kB / 0.6991 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.1639, allocations: 25.7 kB / 0.6991 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.911e-05/0.164, allocations: 112.2 kB / 0.6992 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.636e-05/0.164, allocations: 15.66 kB / 0.6993 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.7e-05/0.1641, allocations: 29.7 kB / 0.6993 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.1642, allocations: 322.8 kB / 0.6996 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003125/0.1645, allocations: 75.92 kB / 0.6997 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003177/0.1648, allocations: 90.5 kB / 0.6997 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006125/0.1655, allocations: 166.6 kB / 0.6999 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1655, allocations: 4 kB / 0.6999 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006878/0.1662, allocations: 201.4 kB / 0.7001 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.1662, allocations: 8 kB / 0.7001 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.1662, allocations: 3.938 kB / 0.7001 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.1662, allocations: 0 / 0.7001 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002701/0.1665, allocations: 39.95 kB / 0.7002 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.1665, allocations: 0 / 0.7002 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001945/0.1667, allocations: 23.97 kB / 0.7002 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.1667, allocations: 7.984 kB / 0.7002 GB, free: 13.2 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 (8): * Single equations (assignments): 8 * 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.966e-05/0.1668, allocations: 121.7 kB / 0.7003 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.31e-05/0.1669, allocations: 7.906 kB / 0.7003 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007285/0.1676, allocations: 206.2 kB / 0.7005 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.1676, allocations: 4 kB / 0.7005 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1676, allocations: 0 / 0.7005 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.1676, allocations: 0 / 0.7005 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002584/0.1679, allocations: 242.3 kB / 0.7007 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1679, allocations: 0 / 0.7007 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000241/0.1682, allocations: 35.89 kB / 0.7008 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.1682, allocations: 4 kB / 0.7008 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.1682, allocations: 7.875 kB / 0.7008 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.1682, allocations: 0 / 0.7008 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1682, allocations: 4 kB / 0.7008 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007202/0.1689, allocations: 283.3 kB / 0.7011 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.256e-05/0.169, allocations: 88.95 kB / 0.7011 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.382e-05/0.169, allocations: 8.109 kB / 0.7012 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003057/0.1693, allocations: 31.95 kB / 0.7012 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.846e-05/0.1694, allocations: 4 kB / 0.7012 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.151e-05/0.1694, allocations: 11.98 kB / 0.7012 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.974e-05/0.1695, allocations: 105.2 kB / 0.7013 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1695, allocations: 4 kB / 0.7013 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002478/0.1697, allocations: 20 kB / 0.7013 GB, free: 11.93 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 (6): * Single equations (assignments): 6 * 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.001021/0.1708, allocations: 0.8254 MB / 0.7021 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006709/0.1714, allocations: 163.8 kB / 0.7023 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1715, allocations: 8.125 kB / 0.7023 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003137/0.1718, allocations: 75.92 kB / 0.7024 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000301/0.1721, allocations: 12.95 kB / 0.7024 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003026/0.1751, allocations: 1.825 MB / 0.7042 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002965/0.1754, allocations: 0.7001 MB / 0.7048 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.979e-05/0.1755, allocations: 19.98 kB / 0.7049 GB, free: 8.172 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.92e-05/0.1756, allocations: 31.42 kB / 0.7049 GB, free: 8.141 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1756, allocations: 0 / 0.7049 GB, free: 8.141 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02335/0.199, allocations: 2.725 MB / 0.7076 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.462/7.661, allocations: 13.55 kB / 0.7076 GB, free: 5.492 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks_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_SmoothBlocks.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1)