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.006425/0.006425, allocations: 100.8 kB / 15.73 MB, free: 6.039 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.001169/0.001169, allocations: 199 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7811/0.7811, allocations: 132.2 MB / 422.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002189/0.00219, allocations: 64.22 kB / 0.5809 GB, free: 1.137 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1537, allocations: 80.21 MB / 0.6592 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002798/0.1565, allocations: 1.578 MB / 0.6607 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008919/0.1574, allocations: 0.5337 MB / 0.6613 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.259e-05/0.1575, allocations: 0 / 0.6613 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.868e-05/0.1576, allocations: 3.938 kB / 0.6613 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.805e-05/0.1577, allocations: 19.81 kB / 0.6613 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002603/0.158, allocations: 55.86 kB / 0.6613 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001863/0.1582, allocations: 111.6 kB / 0.6614 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.145e-05/0.1583, allocations: 8.188 kB / 0.6615 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.661e-05/0.1584, allocations: 43.89 kB / 0.6615 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.655e-05/0.1584, allocations: 39.83 kB / 0.6615 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.627e-05/0.1585, allocations: 12 kB / 0.6615 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.551e-05/0.1585, allocations: 12 kB / 0.6616 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.132e-05/0.1585, allocations: 15.92 kB / 0.6616 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.499e-05/0.1586, allocations: 39.84 kB / 0.6616 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001419/0.1587, allocations: 87.84 kB / 0.6617 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1588, allocations: 0 / 0.6617 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.603e-06/0.1588, allocations: 0 / 0.6617 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.938e-06/0.1588, allocations: 4 kB / 0.6617 GB, free: 11.48 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.0007212/0.1595, allocations: 462.6 kB / 0.6621 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.1595, allocations: 8.031 kB / 0.6621 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.051e-05/0.1596, allocations: 34.75 kB / 0.6622 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.663e-05/0.1596, allocations: 16.83 kB / 0.6622 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002387/0.1599, allocations: 188.2 kB / 0.6624 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.386e-05/0.16, allocations: 34.25 kB / 0.6624 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.493e-05/0.16, allocations: 16.12 kB / 0.6624 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002834/0.1603, allocations: 101.6 kB / 0.6625 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.1603, allocations: 0 / 0.6625 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.1604, allocations: 0 / 0.6625 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.1604, allocations: 0 / 0.6625 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003129/0.1607, allocations: 75.92 kB / 0.6626 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005525/0.1612, allocations: 340.6 kB / 0.6629 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003863/0.1616, allocations: 90.56 kB / 0.663 GB, free: 9.961 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.1618, allocations: 44.83 kB / 0.663 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.779e-05/0.1618, allocations: 0 / 0.663 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002878/0.1621, allocations: 127.3 kB / 0.6632 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.025e-05/0.1622, allocations: 3.984 kB / 0.6632 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.000603/0.1628, allocations: 185.4 kB / 0.6633 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.452e-05/0.1628, allocations: 55.39 kB / 0.6634 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.68e-05/0.1629, allocations: 127.9 kB / 0.6635 GB, free: 9.387 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.1629, allocations: 29.7 kB / 0.6636 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.208e-05/0.163, allocations: 88.14 kB / 0.6636 GB, free: 9.262 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.254e-05/0.163, allocations: 35.73 kB / 0.6637 GB, free: 9.227 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.899e-05/0.1631, allocations: 29.7 kB / 0.6637 GB, free: 9.191 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.833e-05/0.1632, allocations: 322.8 kB / 0.664 GB, free: 8.867 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000193/0.1634, allocations: 51.95 kB / 0.6641 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.1636, allocations: 72.91 kB / 0.6641 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003636/0.164, allocations: 170.7 kB / 0.6643 GB, free: 8.559 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.164, allocations: 0 / 0.6643 GB, free: 8.559 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004802/0.1645, allocations: 220.9 kB / 0.6645 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.349e-05/0.1645, allocations: 63.41 kB / 0.6646 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1645, allocations: 0 / 0.6646 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.1646, allocations: 4 kB / 0.6646 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.1647, allocations: 31.94 kB / 0.6646 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.1647, allocations: 3.938 kB / 0.6646 GB, free: 8.211 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.1649, allocations: 19.92 kB / 0.6646 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.453e-05/0.1649, allocations: 4 kB / 0.6646 GB, free: 8.188 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.0001048/0.165, allocations: 118.5 kB / 0.6647 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.092e-05/0.165, allocations: 7.953 kB / 0.6647 GB, free: 8.055 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.712e-05/0.1651, allocations: 16.36 kB / 0.6648 GB, free: 8.035 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.1651, allocations: 4 kB / 0.6648 GB, free: 8.031 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1651, allocations: 0 / 0.6648 GB, free: 8.031 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.1651, allocations: 3.938 kB / 0.6648 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001664/0.1653, allocations: 201.5 kB / 0.665 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.1653, allocations: 0 / 0.665 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000144/0.1654, allocations: 23.92 kB / 0.665 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1654, allocations: 0 / 0.665 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.1655, allocations: 0 / 0.665 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1655, allocations: 0 / 0.665 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1655, allocations: 0 / 0.665 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006176/0.1661, allocations: 237.1 kB / 0.6652 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.875e-05/0.1661, allocations: 85.06 kB / 0.6653 GB, free: 7.406 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.52e-05/0.1662, allocations: 0 / 0.6653 GB, free: 7.406 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001302/0.1663, allocations: 20.02 kB / 0.6653 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.273e-05/0.1664, allocations: 19.98 kB / 0.6653 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.196e-05/0.1664, allocations: 7.938 kB / 0.6653 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.364e-05/0.1665, allocations: 97.77 kB / 0.6654 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1665, allocations: 0 / 0.6654 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002161/0.1667, allocations: 23.98 kB / 0.6654 GB, free: 7.242 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.0008897/0.1676, allocations: 0.7545 MB / 0.6662 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004766/0.1681, allocations: 222.7 kB / 0.6664 GB, free: 6.219 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1681, allocations: 4.062 kB / 0.6664 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000195/0.1683, allocations: 55.89 kB / 0.6665 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002471/0.1685, allocations: 23.92 kB / 0.6665 GB, free: 6.137 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002391/0.1709, allocations: 1.723 MB / 0.6682 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002445/0.1712, allocations: 0.7001 MB / 0.6688 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.715e-05/0.1713, allocations: 8.438 kB / 0.6689 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.609e-05/0.1713, allocations: 27.42 kB / 0.6689 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1713, allocations: 0 / 0.6689 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02029/0.1916, allocations: 2.798 MB / 0.6716 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.652/7.843, allocations: 13.64 kB / 0.6716 GB, free: 0.8555 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)