Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-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.MovingAverage,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.MovingAverage,fileNamePrefix="IDEAS_dev_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.000832/0.0008323, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009449/0.0009449, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 223.2 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9363/0.9363, allocations: 135.3 MB / 426.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003203/0.0003203, allocations: 12.72 kB / 0.5071 GB, free: 5.148 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.1595, allocations: 82.31 MB / 0.5875 GB, free: 3.012 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.001522/0.1611, allocations: 1.271 MB / 0.5887 GB, free: 1.727 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007177/0.1618, allocations: 0.4913 MB / 0.5892 GB, free: 1.23 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.146e-05/0.1619, allocations: 0 / 0.5892 GB, free: 1.23 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.332e-05/0.1619, allocations: 4 kB / 0.5892 GB, free: 1.227 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.954e-05/0.162, allocations: 15.86 kB / 0.5892 GB, free: 1.211 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001745/0.1622, allocations: 43.89 kB / 0.5892 GB, free: 1.168 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001349/0.1623, allocations: 91.69 kB / 0.5893 GB, free: 1.078 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.055e-05/0.1624, allocations: 16.16 kB / 0.5894 GB, free: 1.062 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.106e-05/0.1624, allocations: 27.91 kB / 0.5894 GB, free: 1.035 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.184e-05/0.1625, allocations: 43.81 kB / 0.5894 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.93e-05/0.1626, allocations: 8 kB / 0.5894 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.556e-05/0.1626, allocations: 4 kB / 0.5894 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.453e-05/0.1626, allocations: 11.98 kB / 0.5894 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.356e-05/0.1627, allocations: 37.64 kB / 0.5895 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.16e-05/0.1627, allocations: 60.09 kB / 0.5895 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1628, allocations: 0 / 0.5895 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1628, allocations: 3.938 kB / 0.5895 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.447e-06/0.1628, allocations: 0 / 0.5895 GB, free: 0.8633 MB / 494.1 MB 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.0006409/0.1634, allocations: 446.5 kB / 0.59 GB, free: 376 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.1635, allocations: 8.031 kB / 0.59 GB, free: 368 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.834e-05/0.1635, allocations: 38.55 kB / 0.59 GB, free: 320 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.482e-05/0.1635, allocations: 11.91 kB / 0.59 GB, free: 308 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001795/0.1637, allocations: 202.6 kB / 0.5902 GB, free: 68 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.365e-05/0.1638, allocations: 33.7 kB / 0.5902 GB, free: 28 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.074e-05/0.1638, allocations: 8 kB / 0.5903 GB, free: 20 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002804/0.1641, allocations: 101.6 kB / 0.5904 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.1641, allocations: 3.984 kB / 0.5904 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.1642, allocations: 0 / 0.5904 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.1642, allocations: 4 kB / 0.5904 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003066/0.1645, allocations: 91.88 kB / 0.5904 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005332/0.165, allocations: 344.8 kB / 0.5908 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003589/0.1654, allocations: 102.6 kB / 0.5909 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001636/0.1656, allocations: 64.84 kB / 0.5909 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.053e-05/0.1656, allocations: 7.984 kB / 0.5909 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003095/0.1659, allocations: 135.2 kB / 0.5911 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.643e-06/0.1659, allocations: 0 / 0.5911 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0005792/0.1665, allocations: 205.5 kB / 0.5913 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.638e-05/0.1666, allocations: 51.78 kB / 0.5913 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.681e-05/0.1667, allocations: 133.9 kB / 0.5914 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.1667, allocations: 29.7 kB / 0.5915 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.368e-05/0.1668, allocations: 96.06 kB / 0.5916 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.862e-05/0.1668, allocations: 31.55 kB / 0.5916 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.809e-06/0.1668, allocations: 4 kB / 0.5916 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.1669, allocations: 318.8 kB / 0.5919 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001969/0.1671, allocations: 59.95 kB / 0.592 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001926/0.1674, allocations: 85.55 kB / 0.592 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001968/0.1676, allocations: 119.2 kB / 0.5922 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1676, allocations: 0 / 0.5922 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004693/0.168, allocations: 232.9 kB / 0.5924 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.708e-05/0.1681, allocations: 61.27 kB / 0.5924 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.1681, allocations: 7.938 kB / 0.5924 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/0.1681, allocations: 0 / 0.5924 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.1683, allocations: 28.02 kB / 0.5925 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.1683, allocations: 3.953 kB / 0.5925 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001293/0.1684, allocations: 31.88 kB / 0.5925 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.1684, allocations: 4 kB / 0.5925 GB, free: 13.54 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,$whenCondition1,$PRE.step.T_start,step.T_start,$PRE.step.count,step.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.107e-05/0.1685, allocations: 113.8 kB / 0.5926 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.544e-05/0.1686, allocations: 8 kB / 0.5926 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.757e-05/0.1686, allocations: 16.38 kB / 0.5926 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1686, allocations: 0 / 0.5926 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1686, allocations: 3.938 kB / 0.5926 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.1686, allocations: 7.938 kB / 0.5927 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001542/0.1688, allocations: 193.5 kB / 0.5928 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1688, allocations: 0 / 0.5928 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000154/0.169, allocations: 27.97 kB / 0.5929 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.169, allocations: 4 kB / 0.5929 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.169, allocations: 4 kB / 0.5929 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.169, allocations: 0 / 0.5929 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.169, allocations: 0 / 0.5929 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005521/0.1696, allocations: 248.8 kB / 0.5931 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.746e-05/0.1696, allocations: 88.95 kB / 0.5932 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.554e-05/0.1697, allocations: 4 kB / 0.5932 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.1698, allocations: 23.97 kB / 0.5932 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.82e-05/0.1698, allocations: 16.06 kB / 0.5932 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.1699, allocations: 7.984 kB / 0.5932 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.144e-05/0.1699, allocations: 103.4 kB / 0.5933 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1699, allocations: 3.938 kB / 0.5933 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002228/0.1702, allocations: 19.98 kB / 0.5934 GB, free: 12.56 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008299/0.171, allocations: 0.7879 MB / 0.5941 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004508/0.1715, allocations: 242.7 kB / 0.5944 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1715, allocations: 0 / 0.5944 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001908/0.1717, allocations: 64.02 kB / 0.5944 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002331/0.1719, allocations: 15.98 kB / 0.5944 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.1734, allocations: 0.7926 MB / 0.5952 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002211/0.1736, allocations: 0.6926 MB / 0.5959 GB, free: 9.84 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.438e-05/0.1737, allocations: 12.42 kB / 0.5959 GB, free: 9.828 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.583e-05/0.1738, allocations: 19.44 kB / 0.5959 GB, free: 9.809 MB / 0.4981 GB Notification: Performance of SimCode: time 2.91e-07/0.1738, allocations: 0 / 0.5959 GB, free: 9.809 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01232/0.1861, allocations: 2.369 MB / 0.5982 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001712/0.1863, allocations: 169.6 kB / 0.5984 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.803/1.989, allocations: 0 / 0.5984 GB, free: 7.352 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_MovingAverage_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_MovingAverage.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1) Environment - environmentSimulation: