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: translateModel(IDEAS.Utilities.Math.Examples.MovingAverage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage") translateModel(IDEAS.Utilities.Math.Examples.MovingAverage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.001792/0.001792, allocations: 193 kB / 16.91 MB, free: 6.195 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.298/1.298, allocations: 222.9 MB / 240.6 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7644/0.7644, allocations: 132.2 MB / 422.9 MB, free: 6.727 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001179, allocations: 63.91 kB / 0.5019 GB, free: 11.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.3472, allocations: 80.19 MB / 0.5802 GB, free: 26.92 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002303/0.3495, allocations: 1.64 MB / 0.5818 GB, free: 25.65 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007025/0.3502, allocations: 0.5253 MB / 0.5823 GB, free: 25.23 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.631e-05/0.3503, allocations: 0.5938 kB / 0.5823 GB, free: 25.23 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.412e-05/0.3503, allocations: 7.875 kB / 0.5823 GB, free: 25.23 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 7.876e-05/0.3504, allocations: 19.5 kB / 0.5824 GB, free: 25.21 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002111/0.3507, allocations: 41.94 kB / 0.5824 GB, free: 25.18 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001517/0.3508, allocations: 107 kB / 0.5825 GB, free: 25.12 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.194e-05/0.3509, allocations: 11.5 kB / 0.5825 GB, free: 25.11 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.148e-05/0.351, allocations: 44.47 kB / 0.5825 GB, free: 25.09 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.955e-05/0.351, allocations: 42.5 kB / 0.5826 GB, free: 25.05 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.318e-05/0.3511, allocations: 9.406 kB / 0.5826 GB, free: 25.05 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.78e-05/0.3511, allocations: 7.812 kB / 0.5826 GB, free: 25.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.443e-05/0.3511, allocations: 14.73 kB / 0.5826 GB, free: 25.04 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.231e-05/0.3512, allocations: 42.02 kB / 0.5827 GB, free: 25.01 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 8.146e-05/0.3513, allocations: 60.89 kB / 0.5827 GB, free: 24.97 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3513, allocations: 0 / 0.5827 GB, free: 24.97 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3513, allocations: 1.562 kB / 0.5827 GB, free: 24.97 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.3513, allocations: 0.5 kB / 0.5827 GB, free: 24.97 MB / 446.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.0006632/0.352, allocations: 465.1 kB / 0.5832 GB, free: 24.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.352, allocations: 9.625 kB / 0.5832 GB, free: 24.5 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.679e-05/0.3521, allocations: 13.94 kB / 0.5832 GB, free: 24.49 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001315/0.3522, allocations: 187.7 kB / 0.5834 GB, free: 24.28 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.053e-05/0.3523, allocations: 33.61 kB / 0.5834 GB, free: 24.25 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.079e-05/0.3523, allocations: 10.38 kB / 0.5834 GB, free: 24.24 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002557/0.3526, allocations: 102.2 kB / 0.5835 GB, free: 24.17 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.3526, allocations: 4.156 kB / 0.5835 GB, free: 24.17 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.3526, allocations: 0 / 0.5835 GB, free: 24.17 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.3526, allocations: 1.469 kB / 0.5835 GB, free: 24.17 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000288/0.3529, allocations: 77.08 kB / 0.5836 GB, free: 24.13 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000455/0.3534, allocations: 338.6 kB / 0.5839 GB, free: 23.79 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003601/0.3537, allocations: 93.17 kB / 0.584 GB, free: 23.74 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.3539, allocations: 56.58 kB / 0.584 GB, free: 23.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.3539, allocations: 5.562 kB / 0.5841 GB, free: 23.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003015/0.3542, allocations: 119.4 kB / 0.5842 GB, free: 23.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=9): time 1.462e-06/0.3543, allocations: 1.125 kB / 0.5842 GB, free: 23.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=9): time 0.00056/0.3548, allocations: 176 kB / 0.5843 GB, free: 23.52 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.359e-05/0.3549, allocations: 54.03 kB / 0.5844 GB, free: 23.45 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.066e-05/0.3549, allocations: 127.3 kB / 0.5845 GB, free: 23.34 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.355, allocations: 28.48 kB / 0.5845 GB, free: 23.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.993e-05/0.355, allocations: 93.84 kB / 0.5846 GB, free: 23.21 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.429e-05/0.355, allocations: 30.81 kB / 0.5847 GB, free: 23.19 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.456e-05/0.3551, allocations: 32.52 kB / 0.5847 GB, free: 23.16 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.684e-05/0.3551, allocations: 325.1 kB / 0.585 GB, free: 22.84 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.3553, allocations: 52.89 kB / 0.585 GB, free: 22.81 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/0.3555, allocations: 72.58 kB / 0.5851 GB, free: 22.77 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003235/0.3558, allocations: 158.6 kB / 0.5853 GB, free: 22.65 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3558, allocations: 1.188 kB / 0.5853 GB, free: 22.65 MB / 446.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004073/0.3563, allocations: 223.9 kB / 0.5855 GB, free: 22.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.94e-05/0.3563, allocations: 67.17 kB / 0.5855 GB, free: 22.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.3563, allocations: 0 / 0.5855 GB, free: 22.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.3563, allocations: 4.688 kB / 0.5856 GB, free: 22.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.3564, allocations: 19.27 kB / 0.5856 GB, free: 22.42 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.3565, allocations: 0 / 0.5856 GB, free: 22.42 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001314/0.3566, allocations: 23.73 kB / 0.5856 GB, free: 22.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.3566, allocations: 7.906 kB / 0.5856 GB, free: 22.41 MB / 446.1 MB 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 6.643e-05/0.3567, allocations: 127.1 kB / 0.5857 GB, free: 22.28 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.788e-05/0.3567, allocations: 8.562 kB / 0.5857 GB, free: 22.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.604e-05/0.3568, allocations: 11.31 kB / 0.5857 GB, free: 22.26 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3568, allocations: 2.188 kB / 0.5857 GB, free: 22.26 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3568, allocations: 0 / 0.5857 GB, free: 22.26 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.3568, allocations: 1.406 kB / 0.5857 GB, free: 22.26 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001136/0.3569, allocations: 201.4 kB / 0.5859 GB, free: 22.03 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3569, allocations: 0 / 0.5859 GB, free: 22.03 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001388/0.3571, allocations: 18.27 kB / 0.586 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.3571, allocations: 1.562 kB / 0.586 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.3571, allocations: 5.641 kB / 0.586 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.3571, allocations: 1.688 kB / 0.586 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3571, allocations: 4.531 kB / 0.586 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005304/0.3576, allocations: 233.4 kB / 0.5862 GB, free: 21.87 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.298e-05/0.3577, allocations: 83.25 kB / 0.5863 GB, free: 21.77 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.493e-05/0.3577, allocations: 7.141 kB / 0.5863 GB, free: 21.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001203/0.3578, allocations: 15.48 kB / 0.5863 GB, free: 21.76 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.224e-05/0.3579, allocations: 18.89 kB / 0.5863 GB, free: 21.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-05/0.3579, allocations: 8.047 kB / 0.5863 GB, free: 21.74 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.728e-05/0.358, allocations: 98.36 kB / 0.5864 GB, free: 21.66 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.358, allocations: 0.875 kB / 0.5864 GB, free: 21.66 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002069/0.3582, allocations: 22.66 kB / 0.5864 GB, free: 21.65 MB / 446.1 MB 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 9.558e-05/0.3583, allocations: 99.53 kB / 0.5865 GB, free: 21.56 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004273/0.3587, allocations: 230.6 kB / 0.5867 GB, free: 21.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3587, allocations: 0 / 0.5867 GB, free: 21.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001767/0.3589, allocations: 60.02 kB / 0.5868 GB, free: 21.36 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002394/0.3592, allocations: 20.19 kB / 0.5868 GB, free: 21.36 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005666/0.3597, allocations: 287.3 kB / 0.5871 GB, free: 21.11 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001041/0.3598, allocations: 0.6965 MB / 0.5878 GB, free: 20.41 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.998e-05/0.3599, allocations: 18.72 kB / 0.5878 GB, free: 20.4 MB / 446.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3599, allocations: 0 / 0.5878 GB, free: 20.4 MB / 446.1 MB Notification: Performance of Templates: time 0.002598/0.3625, allocations: 1.435 MB / 0.5892 GB, free: 19.71 MB / 446.1 MB make -j1 -f IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.makefile (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 & ./IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1)