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.001511/0.001511, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002048/0.002048, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.472/1.472, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9366/0.9366, allocations: 135.1 MB / 425.5 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002249/0.002249, allocations: 62.73 kB / 0.5054 GB, free: 5.242 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1586/0.1609, allocations: 80.93 MB / 0.5845 GB, free: 4.469 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002468/0.1634, allocations: 1.562 MB / 0.586 GB, free: 2.887 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007897/0.1642, allocations: 0.5314 MB / 0.5865 GB, free: 2.352 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.93e-05/0.1643, allocations: 0 / 0.5865 GB, free: 2.352 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.722e-05/0.1643, allocations: 3.938 kB / 0.5865 GB, free: 2.348 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.586e-05/0.1644, allocations: 15.86 kB / 0.5865 GB, free: 2.332 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000233/0.1646, allocations: 55.8 kB / 0.5866 GB, free: 2.277 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001504/0.1648, allocations: 107.7 kB / 0.5867 GB, free: 2.172 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.554e-05/0.1649, allocations: 12.17 kB / 0.5867 GB, free: 2.16 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.992e-05/0.165, allocations: 43.84 kB / 0.5867 GB, free: 2.117 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.647e-05/0.1651, allocations: 47.81 kB / 0.5868 GB, free: 2.07 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.172e-05/0.1651, allocations: 8 kB / 0.5868 GB, free: 2.062 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.867e-05/0.1651, allocations: 8 kB / 0.5868 GB, free: 2.055 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.853e-05/0.1652, allocations: 19.92 kB / 0.5868 GB, free: 2.035 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.81e-05/0.1652, allocations: 35.84 kB / 0.5869 GB, free: 2 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001138/0.1653, allocations: 87.97 kB / 0.5869 GB, free: 1.914 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1653, allocations: 4 kB / 0.5869 GB, free: 1.91 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1653, allocations: 0 / 0.5869 GB, free: 1.91 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.1654, allocations: 0 / 0.5869 GB, free: 1.91 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.0006504/0.166, allocations: 454.6 kB / 0.5874 GB, free: 1.406 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.109e-05/0.166, allocations: 8.031 kB / 0.5874 GB, free: 1.398 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.526e-05/0.1661, allocations: 42.73 kB / 0.5874 GB, free: 1.348 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.662e-05/0.1661, allocations: 8.844 kB / 0.5874 GB, free: 1.34 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001602/0.1663, allocations: 196.1 kB / 0.5876 GB, free: 1.109 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.814e-05/0.1664, allocations: 42.27 kB / 0.5877 GB, free: 1.062 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.514e-05/0.1664, allocations: 8.125 kB / 0.5877 GB, free: 1.055 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002543/0.1667, allocations: 93.62 kB / 0.5878 GB, free: 0.957 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.1667, allocations: 0 / 0.5878 GB, free: 0.957 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.1667, allocations: 0 / 0.5878 GB, free: 0.957 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.1667, allocations: 4 kB / 0.5878 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002837/0.167, allocations: 79.86 kB / 0.5878 GB, free: 0.875 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004696/0.1675, allocations: 332.7 kB / 0.5882 GB, free: 0.5 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000348/0.1678, allocations: 98.61 kB / 0.5883 GB, free: 404 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.168, allocations: 48.8 kB / 0.5883 GB, free: 352 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.168, allocations: 4 kB / 0.5883 GB, free: 348 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002862/0.1683, allocations: 115.3 kB / 0.5884 GB, free: 220 kB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.503e-06/0.1683, allocations: 4 kB / 0.5884 GB, free: 216 kB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.000557/0.1689, allocations: 177.4 kB / 0.5886 GB, free: 32 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/0.1689, allocations: 51.41 kB / 0.5886 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.405e-05/0.169, allocations: 131.8 kB / 0.5888 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.169, allocations: 29.7 kB / 0.5888 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.641e-05/0.1691, allocations: 99.97 kB / 0.5889 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.944e-05/0.1691, allocations: 31.61 kB / 0.5889 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.282e-05/0.1692, allocations: 33.64 kB / 0.5889 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.661e-05/0.1693, allocations: 326.8 kB / 0.5893 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001778/0.1695, allocations: 55.95 kB / 0.5893 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001808/0.1697, allocations: 76.28 kB / 0.5894 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003269/0.17, allocations: 164.3 kB / 0.5895 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.17, allocations: 0 / 0.5895 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004314/0.1704, allocations: 220.9 kB / 0.5898 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.877e-05/0.1705, allocations: 67.39 kB / 0.5898 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.1705, allocations: 0 / 0.5898 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.014e-05/0.1705, allocations: 0 / 0.5898 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.1706, allocations: 19.98 kB / 0.5898 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.1707, allocations: 4 kB / 0.5898 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001248/0.1708, allocations: 15.92 kB / 0.5899 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.1708, allocations: 12.03 kB / 0.5899 GB, free: 14.62 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 7.528e-05/0.1709, allocations: 121.8 kB / 0.59 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.739e-05/0.1709, allocations: 7.906 kB / 0.59 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.369e-05/0.1709, allocations: 12.38 kB / 0.59 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.171, allocations: 0 / 0.59 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.171, allocations: 0 / 0.59 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.171, allocations: 3.938 kB / 0.59 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001399/0.1711, allocations: 197.5 kB / 0.5902 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1711, allocations: 0 / 0.5902 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00013/0.1713, allocations: 23.98 kB / 0.5902 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.1713, allocations: 3.984 kB / 0.5902 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.1713, allocations: 0 / 0.5902 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.1713, allocations: 4 kB / 0.5902 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.1713, allocations: 0 / 0.5902 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005475/0.1719, allocations: 229 kB / 0.5904 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.647e-05/0.1719, allocations: 92.98 kB / 0.5905 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.202e-05/0.1719, allocations: 4 kB / 0.5905 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/0.1721, allocations: 15.98 kB / 0.5906 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.684e-05/0.1721, allocations: 23.91 kB / 0.5906 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.1721, allocations: 7.938 kB / 0.5906 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.104e-05/0.1722, allocations: 99.27 kB / 0.5907 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1722, allocations: 4 kB / 0.5907 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001945/0.1724, allocations: 16 kB / 0.5907 GB, free: 13.67 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.0007823/0.1732, allocations: 0.7568 MB / 0.5914 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004306/0.1736, allocations: 230.7 kB / 0.5917 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1736, allocations: 0 / 0.5917 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001802/0.1738, allocations: 59.89 kB / 0.5917 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002213/0.1741, allocations: 30.33 kB / 0.5917 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002062/0.1761, allocations: 1.699 MB / 0.5934 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001937/0.1763, allocations: 0.704 MB / 0.5941 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.626e-05/0.1764, allocations: 4.438 kB / 0.5941 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.607e-05/0.1764, allocations: 27.42 kB / 0.5941 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of SimCode: time 2.01e-07/0.1764, allocations: 0 / 0.5941 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4804/0.6568, allocations: 2.756 MB / 0.5968 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.661/10.32, allocations: 9.438 kB / 0.5968 GB, free: 7.312 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/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)