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.0008374/0.0008373, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005599/0.005599, allocations: 168.4 kB / 16.26 MB, free: 6.652 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.455/1.455, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7614/0.7614, allocations: 132.4 MB / 423.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000412/0.0004122, allocations: 10.09 kB / 0.504 GB, free: 3.895 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4254/0.4258, allocations: 81.57 MB / 0.5837 GB, free: 4.039 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.001544/0.4274, allocations: 1.308 MB / 0.5849 GB, free: 3.086 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007991/0.4282, allocations: 0.5251 MB / 0.5855 GB, free: 2.715 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.99e-05/0.4283, allocations: 0 / 0.5855 GB, free: 2.715 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.771e-05/0.4283, allocations: 2.312 kB / 0.5855 GB, free: 2.715 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 8.618e-05/0.4284, allocations: 14.14 kB / 0.5855 GB, free: 2.703 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001964/0.4286, allocations: 51.41 kB / 0.5855 GB, free: 2.672 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001455/0.4288, allocations: 88.98 kB / 0.5856 GB, free: 2.637 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.782e-05/0.4289, allocations: 14.84 kB / 0.5856 GB, free: 2.629 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.181e-05/0.429, allocations: 40.88 kB / 0.5857 GB, free: 2.609 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.305e-05/0.4291, allocations: 41.61 kB / 0.5857 GB, free: 2.59 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.182e-05/0.4291, allocations: 4.312 kB / 0.5857 GB, free: 2.59 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.646e-05/0.4291, allocations: 4.594 kB / 0.5857 GB, free: 2.59 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.972e-05/0.4292, allocations: 11.77 kB / 0.5857 GB, free: 2.586 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.354e-05/0.4292, allocations: 60.66 kB / 0.5858 GB, free: 2.535 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001228/0.4293, allocations: 71.05 kB / 0.5858 GB, free: 2.516 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.4293, allocations: 5.25 kB / 0.5859 GB, free: 2.512 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4294, allocations: 4 kB / 0.5859 GB, free: 2.508 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.4294, allocations: 0 / 0.5859 GB, free: 2.508 MB / 430.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.0006351/0.43, allocations: 451 kB / 0.5863 GB, free: 2.07 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.4301, allocations: 9.031 kB / 0.5863 GB, free: 2.07 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.171e-05/0.4301, allocations: 15.17 kB / 0.5863 GB, free: 2.062 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001476/0.4303, allocations: 188.1 kB / 0.5865 GB, free: 1.855 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.36e-05/0.4304, allocations: 39.55 kB / 0.5865 GB, free: 1.82 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.805e-05/0.4304, allocations: 5.906 kB / 0.5865 GB, free: 1.82 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002952/0.4307, allocations: 106 kB / 0.5866 GB, free: 1.77 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.4307, allocations: 5.156 kB / 0.5866 GB, free: 1.766 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.4307, allocations: 0.7969 kB / 0.5866 GB, free: 1.766 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.4307, allocations: 1.156 kB / 0.5866 GB, free: 1.766 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003553/0.4311, allocations: 95.34 kB / 0.5867 GB, free: 1.746 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005172/0.4316, allocations: 349.2 kB / 0.5871 GB, free: 1.441 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004247/0.4321, allocations: 108.4 kB / 0.5872 GB, free: 1.398 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002061/0.4323, allocations: 57.69 kB / 0.5872 GB, free: 1.379 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.4323, allocations: 0.8438 kB / 0.5872 GB, free: 1.379 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003508/0.4327, allocations: 133.9 kB / 0.5874 GB, free: 1.309 MB / 430.1 MB Notification: Performance of pre-optimization done (n=9): time 1.542e-06/0.4327, allocations: 1.438 kB / 0.5874 GB, free: 1.309 MB / 430.1 MB Notification: Performance of matching and sorting (n=9): time 0.0006843/0.4334, allocations: 200.7 kB / 0.5875 GB, free: 1.242 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.983e-05/0.4334, allocations: 59.3 kB / 0.5876 GB, free: 1.176 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.288e-05/0.4335, allocations: 124.7 kB / 0.5877 GB, free: 1.066 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.4335, allocations: 26.83 kB / 0.5877 GB, free: 1.035 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.364e-05/0.4336, allocations: 101.4 kB / 0.5878 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.834e-05/0.4336, allocations: 31.14 kB / 0.5879 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.347e-05/0.4337, allocations: 19.47 kB / 0.5879 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.2e-05/0.4337, allocations: 324.6 kB / 0.5882 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002152/0.4339, allocations: 58 kB / 0.5883 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002123/0.4342, allocations: 83.31 kB / 0.5883 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003809/0.4345, allocations: 179.2 kB / 0.5885 GB, free: 432 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4346, allocations: 0.5938 kB / 0.5885 GB, free: 432 kB / 430.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004975/0.4351, allocations: 246.1 kB / 0.5887 GB, free: 288 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.539e-05/0.4351, allocations: 58.92 kB / 0.5888 GB, free: 224 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.4351, allocations: 0.625 kB / 0.5888 GB, free: 224 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.4351, allocations: 1.672 kB / 0.5888 GB, free: 224 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.4353, allocations: 31.2 kB / 0.5888 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.4353, allocations: 1.094 kB / 0.5888 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001477/0.4354, allocations: 30.14 kB / 0.5889 GB, free: 208 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.4355, allocations: 8.266 kB / 0.5889 GB, free: 204 kB / 430.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 7.658e-05/0.4356, allocations: 121 kB / 0.589 GB, free: 80 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.963e-05/0.4356, allocations: 8.672 kB / 0.589 GB, free: 76 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.762e-05/0.4356, allocations: 18.31 kB / 0.589 GB, free: 52 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.4356, allocations: 2.078 kB / 0.589 GB, free: 52 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.4356, allocations: 0 / 0.589 GB, free: 52 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.4356, allocations: 6.172 kB / 0.589 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001951/0.4358, allocations: 191.1 kB / 0.5892 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.4359, allocations: 0.8438 kB / 0.5892 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001549/0.436, allocations: 23.19 kB / 0.5892 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/0.436, allocations: 4.547 kB / 0.5892 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.336e-05/0.4361, allocations: 10.17 kB / 0.5892 GB, free: 15.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.4361, allocations: 0.5312 kB / 0.5892 GB, free: 15.83 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4361, allocations: 1.375 kB / 0.5892 GB, free: 15.83 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007623/0.4368, allocations: 253.2 kB / 0.5895 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.584e-05/0.4369, allocations: 83.09 kB / 0.5896 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.798e-05/0.437, allocations: 7.125 kB / 0.5896 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.4371, allocations: 21.17 kB / 0.5896 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.413e-05/0.4372, allocations: 19.58 kB / 0.5896 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.4372, allocations: 2.859 kB / 0.5896 GB, free: 15.61 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.532e-05/0.4373, allocations: 101.9 kB / 0.5897 GB, free: 15.52 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4373, allocations: 1.156 kB / 0.5897 GB, free: 15.52 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00022/0.4375, allocations: 17.38 kB / 0.5897 GB, free: 15.52 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 0.0001221/0.4376, allocations: 109.7 kB / 0.5898 GB, free: 15.42 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005735/0.4382, allocations: 241.5 kB / 0.5901 GB, free: 15.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4382, allocations: 4.062 kB / 0.5901 GB, free: 15.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002284/0.4385, allocations: 60.47 kB / 0.5901 GB, free: 15.26 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002742/0.4388, allocations: 24.72 kB / 0.5901 GB, free: 15.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006744/0.4394, allocations: 274.9 kB / 0.5904 GB, free: 15.05 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002754/0.4397, allocations: 0.6938 MB / 0.5911 GB, free: 14.36 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.211e-05/0.4398, allocations: 11.27 kB / 0.5911 GB, free: 14.36 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.971e-05/0.4399, allocations: 17.33 kB / 0.5911 GB, free: 14.34 MB / 446.1 MB Notification: Performance of SimCode: time 2.71e-07/0.4399, allocations: 0 / 0.5911 GB, free: 14.34 MB / 446.1 MB Notification: Performance of Templates: time 0.00445/0.4443, allocations: 1.325 MB / 0.5924 GB, free: 14.24 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)