Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="IDEAS_dev_IDEAS_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.004933/0.004933, allocations: 100.8 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 192.8 kB / 16.67 MB, free: 5.969 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8939/0.8939, allocations: 135.6 MB / 426.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002733/0.002734, allocations: 70.48 kB / 0.5857 GB, free: 21.47 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1548/0.1575, allocations: 81.03 MB / 0.6649 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.SmoothBlocks): time 0.002943/0.1605, allocations: 1.759 MB / 0.6666 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001099/0.1616, allocations: 0.6632 MB / 0.6672 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.121e-05/0.1617, allocations: 0 / 0.6672 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.464e-05/0.1617, allocations: 7.875 kB / 0.6673 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.66e-05/0.1618, allocations: 23.78 kB / 0.6673 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005478/0.1624, allocations: 175.1 kB / 0.6674 GB, free: 2.98 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001767/0.1625, allocations: 119.7 kB / 0.6676 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/0.1627, allocations: 52.83 kB / 0.6676 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000122/0.1628, allocations: 59.78 kB / 0.6677 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001082/0.1629, allocations: 51.75 kB / 0.6677 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.939e-05/0.163, allocations: 8 kB / 0.6677 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001214/0.1631, allocations: 43.97 kB / 0.6678 GB, free: 2.652 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.462e-05/0.1632, allocations: 39.89 kB / 0.6678 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.956e-05/0.1632, allocations: 47.73 kB / 0.6678 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002355/0.1635, allocations: 155.6 kB / 0.668 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1635, allocations: 0 / 0.668 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.222e-06/0.1635, allocations: 0 / 0.668 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.068e-06/0.1635, allocations: 3.938 kB / 0.668 GB, free: 2.41 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006262/0.1641, allocations: 442.8 kB / 0.6684 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.1642, allocations: 9.109 kB / 0.6684 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.54e-05/0.1642, allocations: 42.75 kB / 0.6685 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008381/0.1651, allocations: 112.7 kB / 0.6686 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001611/0.1652, allocations: 180.2 kB / 0.6687 GB, free: 1.547 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.305e-05/0.1653, allocations: 63.91 kB / 0.6688 GB, free: 1.473 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.93e-05/0.1654, allocations: 12.38 kB / 0.6688 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006002/0.166, allocations: 169.5 kB / 0.669 GB, free: 1.289 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.166, allocations: 0 / 0.669 GB, free: 1.289 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.094e-05/0.166, allocations: 4 kB / 0.669 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.166, allocations: 4 kB / 0.669 GB, free: 1.281 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006506/0.1667, allocations: 163.8 kB / 0.6691 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001169/0.1679, allocations: 0.4897 MB / 0.6696 GB, free: 0.5781 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.1689, allocations: 214.3 kB / 0.6698 GB, free: 368 kB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003178/0.1693, allocations: 76.91 kB / 0.6699 GB, free: 288 kB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.257e-05/0.1693, allocations: 4 kB / 0.6699 GB, free: 284 kB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.831e-05/0.1693, allocations: 34.56 kB / 0.6699 GB, free: 240 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=6): time 1.473e-06/0.1693, allocations: 0 / 0.6699 GB, free: 240 kB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.00119/0.1705, allocations: 277.4 kB / 0.6702 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.1706, allocations: 51.41 kB / 0.6703 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.1708, allocations: 136.2 kB / 0.6704 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.833e-05/0.1708, allocations: 29.7 kB / 0.6704 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 7.695e-05/0.1709, allocations: 112.2 kB / 0.6705 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.761e-05/0.1709, allocations: 19.84 kB / 0.6705 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.57e-05/0.171, allocations: 25.7 kB / 0.6706 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002766/0.1713, allocations: 314.8 kB / 0.6709 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003417/0.1716, allocations: 75.91 kB / 0.6709 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003699/0.172, allocations: 94.5 kB / 0.671 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007549/0.1728, allocations: 162.4 kB / 0.6712 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1728, allocations: 0 / 0.6712 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007559/0.1735, allocations: 201.5 kB / 0.6714 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.1736, allocations: 8 kB / 0.6714 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.1736, allocations: 3.938 kB / 0.6714 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.1736, allocations: 0 / 0.6714 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002756/0.1739, allocations: 43.94 kB / 0.6714 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.1739, allocations: 3.938 kB / 0.6714 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002111/0.1741, allocations: 27.86 kB / 0.6715 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.1742, allocations: 8 kB / 0.6715 GB, free: 14.6 MB / 0.5137 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 0.0001226/0.1743, allocations: 121.8 kB / 0.6716 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.443e-05/0.1743, allocations: 11.94 kB / 0.6716 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007718/0.1751, allocations: 206.2 kB / 0.6718 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.1751, allocations: 3.938 kB / 0.6718 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1751, allocations: 0 / 0.6718 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.1752, allocations: 0 / 0.6718 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002798/0.1754, allocations: 230.4 kB / 0.672 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.1755, allocations: 7.969 kB / 0.672 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002284/0.1757, allocations: 31.95 kB / 0.672 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.1757, allocations: 0 / 0.672 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.1757, allocations: 8.125 kB / 0.6721 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.1757, allocations: 11.94 kB / 0.6721 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.1757, allocations: 0 / 0.6721 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008672/0.1766, allocations: 291.3 kB / 0.6723 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.664e-05/0.1767, allocations: 81.06 kB / 0.6724 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.513e-05/0.1767, allocations: 3.938 kB / 0.6724 GB, free: 13.51 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003106/0.177, allocations: 31.95 kB / 0.6725 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.745e-05/0.1771, allocations: 7.984 kB / 0.6725 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.156e-05/0.1771, allocations: 7.984 kB / 0.6725 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001593/0.1773, allocations: 105.5 kB / 0.6726 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.1e-07/0.1773, allocations: 4 kB / 0.6726 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000264/0.1776, allocations: 23.94 kB / 0.6726 GB, free: 13.34 MB / 0.5137 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.00121/0.1788, allocations: 0.8177 MB / 0.6734 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0006967/0.1795, allocations: 163.8 kB / 0.6736 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1795, allocations: 0 / 0.6736 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003454/0.1798, allocations: 88.03 kB / 0.6736 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003464/0.1802, allocations: 9.719 kB / 0.6736 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003577/0.1838, allocations: 1.825 MB / 0.6754 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004312/0.1842, allocations: 0.6963 MB / 0.6761 GB, free: 9.594 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001033/0.1844, allocations: 19.98 kB / 0.6761 GB, free: 9.574 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.954e-05/0.1845, allocations: 35.36 kB / 0.6762 GB, free: 9.539 MB / 0.5137 GB Notification: Performance of SimCode: time 7.92e-07/0.1845, allocations: 0 / 0.6762 GB, free: 9.539 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02491/0.2094, allocations: 2.752 MB / 0.6788 GB, free: 6.863 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.187/8.396, allocations: 11.16 kB / 0.6789 GB, free: 6.855 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothBlocks.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.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 IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothBlocks.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1)