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.0007342/0.0007376, allocations: 97.64 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.005415/0.005415, allocations: 169.6 kB / 16.27 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.19/1.19, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7043/0.7043, allocations: 132.3 MB / 423.8 MB, free: 1.953 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002863/0.0002863, allocations: 16.5 kB / 0.5041 GB, free: 3.773 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3279, allocations: 81.57 MB / 0.5837 GB, free: 4.043 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.00146/0.3294, allocations: 1.305 MB / 0.585 GB, free: 3.094 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007462/0.3302, allocations: 0.5222 MB / 0.5855 GB, free: 2.727 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.828e-05/0.3302, allocations: 1 kB / 0.5855 GB, free: 2.727 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.331e-05/0.3302, allocations: 4.641 kB / 0.5855 GB, free: 2.723 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 6.789e-05/0.3303, allocations: 9.062 kB / 0.5855 GB, free: 2.719 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001783/0.3305, allocations: 47.11 kB / 0.5856 GB, free: 2.691 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001272/0.3306, allocations: 92.56 kB / 0.5857 GB, free: 2.652 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.725e-05/0.3307, allocations: 16.78 kB / 0.5857 GB, free: 2.645 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.415e-05/0.3308, allocations: 32.81 kB / 0.5857 GB, free: 2.633 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.924e-05/0.3309, allocations: 39.23 kB / 0.5858 GB, free: 2.617 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.848e-05/0.3309, allocations: 4.562 kB / 0.5858 GB, free: 2.617 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.365e-05/0.3309, allocations: 4.438 kB / 0.5858 GB, free: 2.617 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.369e-05/0.3309, allocations: 16.06 kB / 0.5858 GB, free: 2.609 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.272e-05/0.331, allocations: 65.73 kB / 0.5858 GB, free: 2.555 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001005/0.3311, allocations: 75 kB / 0.5859 GB, free: 2.531 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.3311, allocations: 0 / 0.5859 GB, free: 2.531 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.3311, allocations: 1.688 kB / 0.5859 GB, free: 2.531 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.985e-06/0.3311, allocations: 0 / 0.5859 GB, free: 2.531 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.0005226/0.3316, allocations: 454.9 kB / 0.5864 GB, free: 2.09 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.869e-05/0.3317, allocations: 10.25 kB / 0.5864 GB, free: 2.09 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.13e-05/0.3317, allocations: 38.75 kB / 0.5864 GB, free: 2.047 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.42e-05/0.3318, allocations: 9.938 kB / 0.5864 GB, free: 2.043 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.3319, allocations: 192.1 kB / 0.5866 GB, free: 1.832 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.846e-05/0.332, allocations: 35.47 kB / 0.5866 GB, free: 1.801 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.965e-05/0.332, allocations: 13.28 kB / 0.5866 GB, free: 1.793 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002629/0.3323, allocations: 107.2 kB / 0.5867 GB, free: 1.742 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.3323, allocations: 0 / 0.5867 GB, free: 1.742 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.3323, allocations: 5.375 kB / 0.5867 GB, free: 1.738 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.748e-06/0.3323, allocations: 5.344 kB / 0.5868 GB, free: 1.734 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003183/0.3326, allocations: 91.64 kB / 0.5868 GB, free: 1.719 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004636/0.3331, allocations: 345 kB / 0.5872 GB, free: 1.418 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003681/0.3335, allocations: 111.7 kB / 0.5873 GB, free: 1.371 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000168/0.3337, allocations: 58.25 kB / 0.5873 GB, free: 1.352 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.471e-05/0.3337, allocations: 1.375 kB / 0.5873 GB, free: 1.352 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002974/0.334, allocations: 125 kB / 0.5874 GB, free: 1.289 MB / 430.1 MB Notification: Performance of pre-optimization done (n=9): time 1.833e-06/0.334, allocations: 4 kB / 0.5875 GB, free: 1.285 MB / 430.1 MB Notification: Performance of matching and sorting (n=9): time 0.0007351/0.3347, allocations: 207.5 kB / 0.5877 GB, free: 1.215 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.995e-05/0.3348, allocations: 52.12 kB / 0.5877 GB, free: 1.152 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.521e-05/0.3349, allocations: 128.7 kB / 0.5878 GB, free: 1.043 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.3349, allocations: 28.09 kB / 0.5879 GB, free: 1.012 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.878e-05/0.335, allocations: 93.12 kB / 0.5879 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.395e-05/0.335, allocations: 34.12 kB / 0.588 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.461e-05/0.3351, allocations: 24.58 kB / 0.588 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.053e-05/0.3351, allocations: 323.8 kB / 0.5883 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002579/0.3354, allocations: 55.19 kB / 0.5884 GB, free: 0.543 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002651/0.3357, allocations: 84.77 kB / 0.5884 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003931/0.3361, allocations: 177.7 kB / 0.5886 GB, free: 412 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3361, allocations: 0 / 0.5886 GB, free: 412 kB / 430.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004407/0.3365, allocations: 241.3 kB / 0.5888 GB, free: 272 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/0.3366, allocations: 64.98 kB / 0.5889 GB, free: 204 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.3366, allocations: 5.359 kB / 0.5889 GB, free: 200 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.3366, allocations: 1.641 kB / 0.5889 GB, free: 200 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.3367, allocations: 26.02 kB / 0.5889 GB, free: 200 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.3367, allocations: 6.172 kB / 0.5889 GB, free: 196 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001298/0.3368, allocations: 38.5 kB / 0.589 GB, free: 176 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.3369, allocations: 3.156 kB / 0.589 GB, free: 176 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 5.872e-05/0.3369, allocations: 125.9 kB / 0.5891 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.705e-05/0.337, allocations: 8.719 kB / 0.5891 GB, free: 44 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.788e-05/0.337, allocations: 11.75 kB / 0.5891 GB, free: 28 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.337, allocations: 4.906 kB / 0.5891 GB, free: 24 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.337, allocations: 0.75 kB / 0.5891 GB, free: 24 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.337, allocations: 4.641 kB / 0.5891 GB, free: 20 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001679/0.3372, allocations: 196.6 kB / 0.5893 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3372, allocations: 0.5 kB / 0.5893 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000135/0.3373, allocations: 23.56 kB / 0.5893 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.093e-06/0.3373, allocations: 0.5938 kB / 0.5893 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.3374, allocations: 1.641 kB / 0.5893 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.3374, allocations: 1.281 kB / 0.5893 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3374, allocations: 5.188 kB / 0.5893 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005921/0.338, allocations: 256.4 kB / 0.5896 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.826e-05/0.338, allocations: 87.09 kB / 0.5897 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.141e-05/0.338, allocations: 2.906 kB / 0.5897 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.3382, allocations: 29.03 kB / 0.5897 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.444e-05/0.3382, allocations: 18.86 kB / 0.5897 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.3383, allocations: 8.141 kB / 0.5897 GB, free: 15.57 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.146e-05/0.3383, allocations: 96.41 kB / 0.5898 GB, free: 15.49 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3383, allocations: 0 / 0.5898 GB, free: 15.49 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000195/0.3385, allocations: 22.78 kB / 0.5898 GB, free: 15.49 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.0008028/0.3393, allocations: 0.7777 MB / 0.5906 GB, free: 14.85 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004429/0.3398, allocations: 248.8 kB / 0.5908 GB, free: 14.69 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3398, allocations: 1.375 kB / 0.5908 GB, free: 14.69 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002056/0.34, allocations: 66.72 kB / 0.5909 GB, free: 14.68 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002161/0.3402, allocations: 25.8 kB / 0.5909 GB, free: 14.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002155/0.3424, allocations: 1.768 MB / 0.5927 GB, free: 13.29 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001849/0.3426, allocations: 0.6982 MB / 0.5933 GB, free: 12.59 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.099e-05/0.3427, allocations: 7.281 kB / 0.5933 GB, free: 12.59 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.782e-05/0.3427, allocations: 22.98 kB / 0.5934 GB, free: 12.57 MB / 446.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3427, allocations: 0 / 0.5934 GB, free: 12.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1665/0.5092, allocations: 2.41 MB / 0.5957 GB, free: 12.35 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001905/0.5095, allocations: 187.3 kB / 0.5959 GB, free: 12.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.603/2.113, allocations: 1.031 kB / 0.5959 GB, free: 12.09 MB / 446.1 MB (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)