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.001149/0.001149, 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.001292/0.001292, allocations: 195.8 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.296/1.296, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002018/0.002018, allocations: 287 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 0.9389/0.9389, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 99.28 kB / 0.5954 GB, free: 27.91 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1491/0.151, allocations: 86.97 MB / 0.6803 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothBlocks): time 0.002971/0.154, allocations: 1.765 MB / 0.682 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001155/0.1551, allocations: 0.657 MB / 0.6826 GB, free: 14.18 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.358e-05/0.1553, allocations: 4 kB / 0.6827 GB, free: 14.17 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.954e-05/0.1553, allocations: 12.73 kB / 0.6827 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.852e-05/0.1554, allocations: 16.33 kB / 0.6827 GB, free: 14.14 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006321/0.1561, allocations: 177.4 kB / 0.6828 GB, free: 13.98 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001917/0.1563, allocations: 123.6 kB / 0.683 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001838/0.1565, allocations: 53.3 kB / 0.683 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001743/0.1566, allocations: 63.77 kB / 0.6831 GB, free: 13.74 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.1568, allocations: 47.77 kB / 0.6831 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.646e-05/0.1568, allocations: 8 kB / 0.6831 GB, free: 13.69 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000164/0.157, allocations: 51.97 kB / 0.6832 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.418e-05/0.157, allocations: 31.89 kB / 0.6832 GB, free: 13.61 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.076e-05/0.1571, allocations: 59.66 kB / 0.6833 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002628/0.1574, allocations: 135.6 kB / 0.6834 GB, free: 13.41 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1574, allocations: 0 / 0.6834 GB, free: 13.41 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1574, allocations: 0 / 0.6834 GB, free: 13.41 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.1574, allocations: 8 kB / 0.6834 GB, free: 13.41 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.0006895/0.1581, allocations: 434.9 kB / 0.6838 GB, free: 12.93 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.1582, allocations: 12.03 kB / 0.6838 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.092e-05/0.1582, allocations: 38.75 kB / 0.6839 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008542/0.1591, allocations: 112.7 kB / 0.684 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/0.1592, allocations: 186 kB / 0.6842 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.681e-05/0.1593, allocations: 63.97 kB / 0.6842 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.054e-05/0.1593, allocations: 4.375 kB / 0.6842 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005142/0.1599, allocations: 173.5 kB / 0.6844 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.944e-06/0.1599, allocations: 4 kB / 0.6844 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.985e-05/0.1599, allocations: 0 / 0.6844 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.1599, allocations: 0 / 0.6844 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006043/0.1605, allocations: 155.8 kB / 0.6845 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.1616, allocations: 497.7 kB / 0.685 GB, free: 11.6 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001026/0.1626, allocations: 222.2 kB / 0.6852 GB, free: 11.38 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002994/0.163, allocations: 84.91 kB / 0.6853 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.163, allocations: 0 / 0.6853 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.163, allocations: 30.56 kB / 0.6853 GB, free: 11.25 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.002e-06/0.163, allocations: 0 / 0.6853 GB, free: 11.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.001014/0.164, allocations: 265.5 kB / 0.6856 GB, free: 10.98 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/0.1641, allocations: 55.34 kB / 0.6856 GB, free: 10.92 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.1642, allocations: 135.7 kB / 0.6858 GB, free: 10.78 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.844e-05/0.1642, allocations: 29.7 kB / 0.6858 GB, free: 10.74 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.592e-05/0.1643, allocations: 116.1 kB / 0.6859 GB, free: 10.62 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.436e-05/0.1643, allocations: 15.8 kB / 0.6859 GB, free: 10.61 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.658e-05/0.1644, allocations: 25.7 kB / 0.6859 GB, free: 10.57 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.596e-05/0.1645, allocations: 322.8 kB / 0.6863 GB, free: 10.25 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003044/0.1648, allocations: 75.91 kB / 0.6863 GB, free: 10.18 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003068/0.1651, allocations: 94.5 kB / 0.6864 GB, free: 10.07 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005779/0.1657, allocations: 166.6 kB / 0.6866 GB, free: 9.902 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1657, allocations: 0 / 0.6866 GB, free: 9.902 MB / 494.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006574/0.1664, allocations: 205.4 kB / 0.6868 GB, free: 9.695 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.1664, allocations: 8 kB / 0.6868 GB, free: 9.688 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1664, allocations: 3.938 kB / 0.6868 GB, free: 9.684 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.1664, allocations: 0 / 0.6868 GB, free: 9.684 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002595/0.1667, allocations: 39.94 kB / 0.6868 GB, free: 9.645 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.311e-06/0.1667, allocations: 0 / 0.6868 GB, free: 9.645 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001934/0.1669, allocations: 31.81 kB / 0.6869 GB, free: 9.613 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.1669, allocations: 4.156 kB / 0.6869 GB, free: 9.609 MB / 494.1 MB 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 8.855e-05/0.167, allocations: 118.5 kB / 0.687 GB, free: 9.484 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.311e-05/0.1671, allocations: 11.89 kB / 0.687 GB, free: 9.473 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007014/0.1678, allocations: 218.1 kB / 0.6872 GB, free: 9.25 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1678, allocations: 0 / 0.6872 GB, free: 9.25 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.1678, allocations: 0 / 0.6872 GB, free: 9.25 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1678, allocations: 0 / 0.6872 GB, free: 9.25 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002322/0.168, allocations: 234.4 kB / 0.6874 GB, free: 8.973 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.168, allocations: 3.984 kB / 0.6874 GB, free: 8.969 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002249/0.1683, allocations: 35.89 kB / 0.6874 GB, free: 8.934 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1683, allocations: 0 / 0.6874 GB, free: 8.934 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.1683, allocations: 3.938 kB / 0.6875 GB, free: 8.93 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.1683, allocations: 8 kB / 0.6875 GB, free: 8.922 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.1683, allocations: 3.984 kB / 0.6875 GB, free: 8.918 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006718/0.169, allocations: 287.2 kB / 0.6877 GB, free: 8.621 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.304e-05/0.169, allocations: 85.02 kB / 0.6878 GB, free: 8.52 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.384e-05/0.1691, allocations: 4.125 kB / 0.6878 GB, free: 8.516 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002994/0.1694, allocations: 39.95 kB / 0.6879 GB, free: 8.477 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.12e-05/0.1694, allocations: 3.984 kB / 0.6879 GB, free: 8.473 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.1694, allocations: 7.984 kB / 0.6879 GB, free: 8.465 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.224e-05/0.1695, allocations: 103.3 kB / 0.688 GB, free: 8.363 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1695, allocations: 0 / 0.688 GB, free: 8.363 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002572/0.1698, allocations: 35.84 kB / 0.688 GB, free: 8.328 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 (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.0009/0.1707, allocations: 0.8163 MB / 0.6888 GB, free: 7.488 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0006478/0.1713, allocations: 171.8 kB / 0.689 GB, free: 7.32 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1714, allocations: 0 / 0.689 GB, free: 7.32 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002996/0.1717, allocations: 84.03 kB / 0.689 GB, free: 7.238 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003078/0.172, allocations: 11.78 kB / 0.6891 GB, free: 7.23 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002828/0.1748, allocations: 1.821 MB / 0.6908 GB, free: 5.32 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.175, allocations: 0.7041 MB / 0.6915 GB, free: 4.59 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.988e-05/0.1751, allocations: 12 kB / 0.6915 GB, free: 4.578 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.475e-05/0.1752, allocations: 31.42 kB / 0.6916 GB, free: 4.547 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1752, allocations: 0 / 0.6916 GB, free: 4.547 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01732/0.1926, allocations: 2.727 MB / 0.6942 GB, free: 1.902 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.909/7.101, allocations: 13.2 kB / 0.6942 GB, free: 1.898 MB / 494.1 MB (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)