Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/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.SmoothHeaviside,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="IDEAS_dev_IDEAS_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.006844/0.006844, allocations: 97.92 kB / 15.73 MB, free: 6.062 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.001459/0.001459, allocations: 195 kB / 16.68 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8495/0.8495, allocations: 135.6 MB / 426.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 64.8 kB / 0.5857 GB, free: 21.54 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1683/0.1702, allocations: 81.02 MB / 0.6649 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.SmoothHeaviside): time 0.002519/0.1728, allocations: 1.433 MB / 0.6663 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007799/0.1736, allocations: 471.7 kB / 0.6667 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.916e-05/0.1736, allocations: 0 / 0.6667 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.548e-05/0.1737, allocations: 3.938 kB / 0.6667 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.89e-05/0.1737, allocations: 7.984 kB / 0.6667 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001859/0.1739, allocations: 19.92 kB / 0.6667 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.442e-05/0.174, allocations: 27.92 kB / 0.6668 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.197e-05/0.1741, allocations: 8 kB / 0.6668 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.894e-05/0.1742, allocations: 7.984 kB / 0.6668 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.776e-05/0.1742, allocations: 11.94 kB / 0.6668 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.384e-05/0.1742, allocations: 4 kB / 0.6668 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.986e-05/0.1743, allocations: 27.89 kB / 0.6668 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.579e-05/0.1743, allocations: 8 kB / 0.6668 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.272e-05/0.1744, allocations: 7.938 kB / 0.6668 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000112/0.1745, allocations: 32.11 kB / 0.6669 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.1745, allocations: 4 kB / 0.6669 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.184e-06/0.1745, allocations: 0 / 0.6669 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.1745, allocations: 0 / 0.6669 GB, free: 3.531 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.0005045/0.175, allocations: 343.4 kB / 0.6672 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.1751, allocations: 13.11 kB / 0.6672 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.181e-05/0.1751, allocations: 34.75 kB / 0.6673 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.621e-05/0.1752, allocations: 0.9375 kB / 0.6673 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001776/0.1753, allocations: 176.3 kB / 0.6674 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.784e-06/0.1754, allocations: 384 / 0.6674 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.399e-05/0.1754, allocations: 384 / 0.6674 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001853/0.1756, allocations: 61.72 kB / 0.6675 GB, free: 2.816 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.1756, allocations: 0 / 0.6675 GB, free: 2.816 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.1756, allocations: 4 kB / 0.6675 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1756, allocations: 3.938 kB / 0.6675 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001849/0.1758, allocations: 35.95 kB / 0.6675 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003478/0.1762, allocations: 248.9 kB / 0.6678 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001351/0.1763, allocations: 38.53 kB / 0.6678 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.179e-05/0.1764, allocations: 28.91 kB / 0.6678 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001281/0.1765, allocations: 85.09 kB / 0.6679 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.1766, allocations: 30.56 kB / 0.6679 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.1766, allocations: 0 / 0.6679 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0003614/0.1769, allocations: 81.64 kB / 0.668 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.672e-05/0.177, allocations: 55.53 kB / 0.6681 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.946e-05/0.1771, allocations: 105.8 kB / 0.6682 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.1771, allocations: 29.64 kB / 0.6682 GB, free: 1.961 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.751e-05/0.1772, allocations: 84.14 kB / 0.6683 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.764e-05/0.1772, allocations: 7.938 kB / 0.6683 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.549e-05/0.1772, allocations: 13.72 kB / 0.6683 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1774, allocations: 318.8 kB / 0.6686 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.073e-05/0.1775, allocations: 19.98 kB / 0.6686 GB, free: 1.508 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.141e-05/0.1775, allocations: 19.97 kB / 0.6686 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001596/0.1777, allocations: 36.83 kB / 0.6687 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1777, allocations: 0 / 0.6687 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002061/0.1779, allocations: 73.67 kB / 0.6687 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.178, allocations: 4 kB / 0.6687 GB, free: 1.367 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.178, allocations: 0 / 0.6687 GB, free: 1.367 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.178, allocations: 0 / 0.6687 GB, free: 1.367 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.731e-05/0.1781, allocations: 15.92 kB / 0.6688 GB, free: 1.352 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.1781, allocations: 0 / 0.6688 GB, free: 1.352 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.732e-05/0.1781, allocations: 7.938 kB / 0.6688 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.909e-06/0.1781, allocations: 0 / 0.6688 GB, free: 1.344 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 8.719e-05/0.1782, allocations: 113.8 kB / 0.6689 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.372e-05/0.1783, allocations: 8.031 kB / 0.6689 GB, free: 1.215 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002339/0.1785, allocations: 68.77 kB / 0.669 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.1785, allocations: 0 / 0.669 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.1785, allocations: 4 kB / 0.669 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.1785, allocations: 0 / 0.669 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00018/0.1787, allocations: 161.9 kB / 0.6691 GB, free: 0.9258 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1787, allocations: 3.938 kB / 0.6691 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.054e-05/0.1788, allocations: 16.02 kB / 0.6691 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.101e-06/0.1788, allocations: 4 kB / 0.6691 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.1788, allocations: 3.938 kB / 0.6691 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1788, allocations: 0 / 0.6691 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1788, allocations: 0 / 0.6691 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002675/0.1791, allocations: 159.5 kB / 0.6693 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.931e-05/0.1792, allocations: 89.09 kB / 0.6694 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.1792, allocations: 3.984 kB / 0.6694 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.444e-05/0.1793, allocations: 4 kB / 0.6694 GB, free: 0.6133 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.923e-05/0.1793, allocations: 4 kB / 0.6694 GB, free: 0.6094 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-06/0.1793, allocations: 3.984 kB / 0.6694 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.758e-05/0.1794, allocations: 79.28 kB / 0.6695 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1794, allocations: 0 / 0.6695 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002238/0.1796, allocations: 8 kB / 0.6695 GB, free: 0.5195 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.0006365/0.1802, allocations: 0.7045 MB / 0.6702 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00022/0.1805, allocations: 35.95 kB / 0.6702 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.1805, allocations: 8.094 kB / 0.6702 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 8.489e-05/0.1806, allocations: 11.98 kB / 0.6702 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003/0.1809, allocations: 9.719 kB / 0.6702 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004086/0.1813, allocations: 143 kB / 0.6704 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003166/0.1816, allocations: 0.6729 MB / 0.671 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 2.637e-05/0.1817, allocations: 3.984 kB / 0.671 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.752e-05/0.1817, allocations: 19.5 kB / 0.671 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of SimCode: time 2.2e-07/0.1817, allocations: 0 / 0.671 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02119/0.2029, allocations: 1.417 MB / 0.6724 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.862/8.065, allocations: 4.562 kB / 0.6724 GB, free: 13.47 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.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 IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothHeaviside.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)