Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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.MovingAverage,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.MovingAverage,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage",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.007611/0.007611, allocations: 103.6 kB / 15.74 MB, free: 6.043 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.002059/0.002059, allocations: 202.2 kB / 16.68 MB, free: 5.965 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.471/1.471, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8161/0.8161, allocations: 132.2 MB / 422.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001894, allocations: 72.23 kB / 0.5809 GB, free: 1.109 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1589/0.1608, allocations: 80.21 MB / 0.6592 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002825/0.1637, allocations: 1.575 MB / 0.6607 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001042/0.1647, allocations: 0.5298 MB / 0.6613 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.225e-05/0.1648, allocations: 0 / 0.6613 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.261e-05/0.1649, allocations: 7.922 kB / 0.6613 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.172e-05/0.165, allocations: 15.81 kB / 0.6613 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002962/0.1653, allocations: 55.86 kB / 0.6613 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002278/0.1655, allocations: 103.7 kB / 0.6614 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.1656, allocations: 16.17 kB / 0.6615 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.545e-05/0.1657, allocations: 35.91 kB / 0.6615 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.1659, allocations: 39.83 kB / 0.6615 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.859e-05/0.1659, allocations: 8 kB / 0.6615 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.044e-05/0.1659, allocations: 11.94 kB / 0.6615 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.83e-05/0.166, allocations: 23.91 kB / 0.6616 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.119e-05/0.166, allocations: 39.86 kB / 0.6616 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001626/0.1662, allocations: 87.84 kB / 0.6617 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/0.1662, allocations: 4 kB / 0.6617 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.613e-06/0.1662, allocations: 0 / 0.6617 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.1662, allocations: 0 / 0.6617 GB, free: 11.43 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000833/0.1671, allocations: 454.6 kB / 0.6621 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.1671, allocations: 12.03 kB / 0.6621 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.003e-05/0.1672, allocations: 34.73 kB / 0.6622 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.485e-05/0.1672, allocations: 20.83 kB / 0.6622 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003053/0.1675, allocations: 203.8 kB / 0.6624 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.041e-05/0.1676, allocations: 30.27 kB / 0.6624 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.475e-05/0.1677, allocations: 16.11 kB / 0.6624 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003106/0.168, allocations: 97.56 kB / 0.6625 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.168, allocations: 0 / 0.6625 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.168, allocations: 4 kB / 0.6625 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.1681, allocations: 4 kB / 0.6625 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003089/0.1684, allocations: 63.94 kB / 0.6626 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005871/0.169, allocations: 344.6 kB / 0.6629 GB, free: 10 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003921/0.1694, allocations: 94.56 kB / 0.663 GB, free: 9.902 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.1695, allocations: 44.83 kB / 0.6631 GB, free: 9.855 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.1696, allocations: 0 / 0.6631 GB, free: 9.855 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003265/0.1699, allocations: 131.3 kB / 0.6632 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.553e-06/0.1699, allocations: 0 / 0.6632 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0006382/0.1706, allocations: 177.4 kB / 0.6633 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.1706, allocations: 55.41 kB / 0.6634 GB, free: 9.469 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001236/0.1707, allocations: 123.8 kB / 0.6635 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.037e-05/0.1708, allocations: 37.69 kB / 0.6636 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.199e-05/0.1708, allocations: 84.14 kB / 0.6636 GB, free: 9.211 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.743e-05/0.1709, allocations: 35.72 kB / 0.6637 GB, free: 9.176 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.31e-05/0.171, allocations: 29.72 kB / 0.6637 GB, free: 9.141 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001608/0.1711, allocations: 326.8 kB / 0.664 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000197/0.1713, allocations: 51.95 kB / 0.6641 GB, free: 8.762 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.1715, allocations: 69.67 kB / 0.6641 GB, free: 8.688 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003932/0.1719, allocations: 166.7 kB / 0.6643 GB, free: 8.508 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.172, allocations: 0 / 0.6643 GB, free: 8.508 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004964/0.1725, allocations: 224.9 kB / 0.6645 GB, free: 8.27 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.542e-05/0.1725, allocations: 61.27 kB / 0.6646 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.1725, allocations: 0 / 0.6646 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/0.1726, allocations: 7.984 kB / 0.6646 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/0.1727, allocations: 23.92 kB / 0.6646 GB, free: 8.168 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.279e-06/0.1727, allocations: 3.938 kB / 0.6646 GB, free: 8.164 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001405/0.1729, allocations: 31.94 kB / 0.6646 GB, free: 8.133 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.1729, allocations: 4 kB / 0.6646 GB, free: 8.129 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,step.count,$PRE.step.count,step.T_start,$PRE.step.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 2 * 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.0001001/0.173, allocations: 114.5 kB / 0.6647 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.15e-05/0.173, allocations: 11.95 kB / 0.6647 GB, free: 7.996 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.44e-05/0.1731, allocations: 8.375 kB / 0.6648 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.1731, allocations: 4 kB / 0.6648 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.1731, allocations: 3.984 kB / 0.6648 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.1731, allocations: 3.938 kB / 0.6648 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002044/0.1733, allocations: 201.5 kB / 0.665 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.1733, allocations: 0 / 0.665 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001436/0.1735, allocations: 23.97 kB / 0.665 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.1735, allocations: 4 kB / 0.665 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.1735, allocations: 0 / 0.665 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1735, allocations: 0 / 0.665 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1735, allocations: 0 / 0.665 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006624/0.1742, allocations: 229.2 kB / 0.6652 GB, free: 7.457 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.122e-05/0.1742, allocations: 85.16 kB / 0.6653 GB, free: 7.355 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.469e-05/0.1743, allocations: 7.938 kB / 0.6653 GB, free: 7.348 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/0.1744, allocations: 12.03 kB / 0.6653 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.307e-05/0.1745, allocations: 23.97 kB / 0.6653 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.1745, allocations: 3.938 kB / 0.6653 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.661e-05/0.1746, allocations: 101.8 kB / 0.6654 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1746, allocations: 0 / 0.6654 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002118/0.1748, allocations: 24 kB / 0.6654 GB, free: 7.188 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (movingAverage.iDelay,movingAverage.iStop,firstOrder.y) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,step.T_start,step.count) * Number of discrete states: 1 (step.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0009481/0.1757, allocations: 0.749 MB / 0.6662 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005135/0.1763, allocations: 226.7 kB / 0.6664 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.1763, allocations: 4 kB / 0.6664 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000204/0.1765, allocations: 59.95 kB / 0.6665 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000262/0.1768, allocations: 23.92 kB / 0.6665 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002548/0.1793, allocations: 1.722 MB / 0.6682 GB, free: 4.262 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/0.1796, allocations: 0.7001 MB / 0.6688 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.25e-05/0.1797, allocations: 8.438 kB / 0.6689 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.013e-05/0.1798, allocations: 35.36 kB / 0.6689 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of SimCode: time 3.11e-07/0.1798, allocations: 0 / 0.6689 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02449/0.2043, allocations: 2.789 MB / 0.6716 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.117/8.321, allocations: 9.625 kB / 0.6716 GB, free: 0.8008 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage.fmu > IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1)