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.004592/0.004592, allocations: 102 kB / 15.73 MB, free: 6.051 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.001035/0.001035, allocations: 196.6 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.343/1.343, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8087/0.8087, allocations: 132.2 MB / 422.7 MB, free: 6.543 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 64.36 kB / 0.5809 GB, free: 24.04 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.1585, allocations: 80.21 MB / 0.6592 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.003066/0.1616, allocations: 1.573 MB / 0.6607 GB, free: 9.168 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001041/0.1627, allocations: 0.5415 MB / 0.6613 GB, free: 8.621 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.719e-05/0.1628, allocations: 0 / 0.6613 GB, free: 8.621 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.214e-05/0.1628, allocations: 3.938 kB / 0.6613 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001049/0.163, allocations: 23.8 kB / 0.6613 GB, free: 8.594 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003373/0.1633, allocations: 47.88 kB / 0.6613 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002202/0.1635, allocations: 107.7 kB / 0.6614 GB, free: 8.441 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001036/0.1636, allocations: 20.17 kB / 0.6615 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.643e-05/0.1637, allocations: 35.91 kB / 0.6615 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.146e-05/0.1638, allocations: 39.83 kB / 0.6615 GB, free: 8.348 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.012e-05/0.1639, allocations: 11.98 kB / 0.6615 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.859e-05/0.1639, allocations: 8 kB / 0.6615 GB, free: 8.328 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.264e-05/0.164, allocations: 19.92 kB / 0.6616 GB, free: 8.309 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.758e-05/0.164, allocations: 35.86 kB / 0.6616 GB, free: 8.273 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001525/0.1642, allocations: 86.5 kB / 0.6617 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1642, allocations: 0 / 0.6617 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.232e-06/0.1642, allocations: 4 kB / 0.6617 GB, free: 8.188 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.294e-06/0.1642, allocations: 0 / 0.6617 GB, free: 8.188 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.0007746/0.165, allocations: 459.5 kB / 0.6621 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.165, allocations: 11.97 kB / 0.6621 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.113e-05/0.1651, allocations: 34.75 kB / 0.6622 GB, free: 7.625 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.206e-05/0.1652, allocations: 12.84 kB / 0.6622 GB, free: 7.613 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002636/0.1654, allocations: 188.2 kB / 0.6624 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.997e-05/0.1655, allocations: 42.25 kB / 0.6624 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.608e-05/0.1656, allocations: 16.06 kB / 0.6624 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002709/0.1658, allocations: 89.62 kB / 0.6625 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.1659, allocations: 0 / 0.6625 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.1659, allocations: 8 kB / 0.6625 GB, free: 7.227 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.1659, allocations: 0 / 0.6625 GB, free: 7.227 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002876/0.1662, allocations: 75.92 kB / 0.6626 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005554/0.1667, allocations: 340.6 kB / 0.6629 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003884/0.1671, allocations: 94.56 kB / 0.663 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001609/0.1673, allocations: 44.83 kB / 0.663 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.1673, allocations: 0 / 0.663 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002895/0.1676, allocations: 127.3 kB / 0.6632 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.512e-06/0.1677, allocations: 4 kB / 0.6632 GB, free: 6.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0005817/0.1682, allocations: 173.4 kB / 0.6633 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.834e-05/0.1683, allocations: 55.41 kB / 0.6634 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.1684, allocations: 129.1 kB / 0.6635 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/0.1684, allocations: 29.7 kB / 0.6635 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.434e-05/0.1685, allocations: 96.05 kB / 0.6636 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.317e-05/0.1685, allocations: 27.64 kB / 0.6637 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.376e-05/0.1686, allocations: 33.7 kB / 0.6637 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.1687, allocations: 318.8 kB / 0.664 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001778/0.1689, allocations: 51.95 kB / 0.664 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001857/0.1691, allocations: 73.67 kB / 0.6641 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003322/0.1695, allocations: 165 kB / 0.6643 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1695, allocations: 0 / 0.6643 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000476/0.1699, allocations: 224.8 kB / 0.6645 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.614e-05/0.17, allocations: 59.41 kB / 0.6645 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.17, allocations: 3.938 kB / 0.6645 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.17, allocations: 7.938 kB / 0.6645 GB, free: 4.957 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.1702, allocations: 27.97 kB / 0.6646 GB, free: 4.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.1702, allocations: 0 / 0.6646 GB, free: 4.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001245/0.1703, allocations: 15.92 kB / 0.6646 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.1703, allocations: 4 kB / 0.6646 GB, free: 4.91 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.0001044/0.1704, allocations: 126.8 kB / 0.6647 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.302e-05/0.1705, allocations: 7.906 kB / 0.6647 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.353e-05/0.1705, allocations: 16.34 kB / 0.6647 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1705, allocations: 0 / 0.6647 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.1705, allocations: 11.94 kB / 0.6647 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.319e-06/0.1706, allocations: 3.938 kB / 0.6648 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001796/0.1707, allocations: 193.6 kB / 0.6649 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1707, allocations: 384 / 0.6649 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/0.1709, allocations: 23.98 kB / 0.665 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.1709, allocations: 0 / 0.665 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.1709, allocations: 4 kB / 0.665 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.1709, allocations: 3.938 kB / 0.665 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1709, allocations: 0 / 0.665 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006036/0.1715, allocations: 228.8 kB / 0.6652 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.928e-05/0.1716, allocations: 84.95 kB / 0.6653 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.1716, allocations: 4 kB / 0.6653 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001239/0.1718, allocations: 20.02 kB / 0.6653 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.21e-05/0.1718, allocations: 11.98 kB / 0.6653 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.1719, allocations: 7.938 kB / 0.6653 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.833e-05/0.1719, allocations: 98.89 kB / 0.6654 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.51e-07/0.1719, allocations: 4 kB / 0.6654 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002123/0.1722, allocations: 20 kB / 0.6654 GB, free: 3.961 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.0008848/0.173, allocations: 0.7645 MB / 0.6662 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004562/0.1735, allocations: 222.7 kB / 0.6664 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.1735, allocations: 0 / 0.6664 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000179/0.1737, allocations: 51.95 kB / 0.6664 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002553/0.174, allocations: 24.36 kB / 0.6665 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/0.1765, allocations: 1.731 MB / 0.6681 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.1768, allocations: 0.6924 MB / 0.6688 GB, free: 312 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.525e-05/0.1769, allocations: 8.438 kB / 0.6688 GB, free: 304 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.545e-05/0.1769, allocations: 31.42 kB / 0.6689 GB, free: 272 kB / 0.4981 GB Notification: Performance of SimCode: time 2.1e-07/0.1769, allocations: 0 / 0.6689 GB, free: 272 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02281/0.1998, allocations: 2.792 MB / 0.6716 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.419/7.619, allocations: 12.28 kB / 0.6716 GB, free: 13.55 MB / 0.5137 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage.fmu > IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1)