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.001124/0.001124, 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.001092/0.001092, allocations: 193.1 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.147/1.147, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6434/0.6434, allocations: 132.2 MB / 422.6 MB, free: 1.801 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003526/0.003526, allocations: 67.17 kB / 0.5019 GB, free: 3.785 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3269, allocations: 80.19 MB / 0.5802 GB, free: 4.586 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.00215/0.3291, allocations: 1.581 MB / 0.5817 GB, free: 3.48 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006839/0.3298, allocations: 0.5343 MB / 0.5823 GB, free: 3.105 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.833e-05/0.3299, allocations: 5.344 kB / 0.5823 GB, free: 3.102 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.786e-05/0.3299, allocations: 5.109 kB / 0.5823 GB, free: 3.098 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 7.19e-05/0.33, allocations: 14.83 kB / 0.5823 GB, free: 3.086 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002123/0.3302, allocations: 59.48 kB / 0.5823 GB, free: 3.051 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001582/0.3304, allocations: 104 kB / 0.5824 GB, free: 3.004 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.812e-05/0.3305, allocations: 12.27 kB / 0.5824 GB, free: 3 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.37e-05/0.3306, allocations: 41.56 kB / 0.5825 GB, free: 2.98 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.816e-05/0.3306, allocations: 42.27 kB / 0.5825 GB, free: 2.961 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.439e-05/0.3307, allocations: 8.188 kB / 0.5825 GB, free: 2.961 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.871e-05/0.3307, allocations: 13.41 kB / 0.5825 GB, free: 2.957 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.813e-05/0.3307, allocations: 19.52 kB / 0.5826 GB, free: 2.945 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.698e-05/0.3308, allocations: 37.69 kB / 0.5826 GB, free: 2.922 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001081/0.3309, allocations: 83.3 kB / 0.5827 GB, free: 2.887 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.3309, allocations: 1.656 kB / 0.5827 GB, free: 2.887 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3309, allocations: 0 / 0.5827 GB, free: 2.887 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.207e-06/0.3309, allocations: 0 / 0.5827 GB, free: 2.887 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.0005581/0.3315, allocations: 464.3 kB / 0.5831 GB, free: 2.438 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.3315, allocations: 9.531 kB / 0.5831 GB, free: 2.438 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.433e-05/0.3315, allocations: 38.38 kB / 0.5832 GB, free: 2.395 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.206e-05/0.3316, allocations: 10.88 kB / 0.5832 GB, free: 2.391 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.3317, allocations: 188 kB / 0.5834 GB, free: 2.184 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.552e-05/0.3318, allocations: 38.67 kB / 0.5834 GB, free: 2.148 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.634e-05/0.3318, allocations: 9.734 kB / 0.5834 GB, free: 2.145 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002417/0.3321, allocations: 92.97 kB / 0.5835 GB, free: 2.098 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.3321, allocations: 5.672 kB / 0.5835 GB, free: 2.094 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.3321, allocations: 1.188 kB / 0.5835 GB, free: 2.094 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.3321, allocations: 1.219 kB / 0.5835 GB, free: 2.094 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000279/0.3324, allocations: 75.42 kB / 0.5836 GB, free: 2.078 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004215/0.3328, allocations: 338.6 kB / 0.5839 GB, free: 1.777 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003344/0.3332, allocations: 96.27 kB / 0.584 GB, free: 1.734 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000149/0.3333, allocations: 45.05 kB / 0.584 GB, free: 1.719 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.656e-05/0.3334, allocations: 5.406 kB / 0.584 GB, free: 1.715 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002733/0.3336, allocations: 121.2 kB / 0.5842 GB, free: 1.648 MB / 430.1 MB Notification: Performance of pre-optimization done (n=9): time 1.883e-06/0.3336, allocations: 0 / 0.5842 GB, free: 1.648 MB / 430.1 MB Notification: Performance of matching and sorting (n=9): time 0.000524/0.3342, allocations: 182.7 kB / 0.5843 GB, free: 1.578 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.023e-05/0.3342, allocations: 54.91 kB / 0.5844 GB, free: 1.516 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.518e-05/0.3343, allocations: 130 kB / 0.5845 GB, free: 1.402 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.3343, allocations: 26.52 kB / 0.5845 GB, free: 1.371 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.177e-05/0.3343, allocations: 94.11 kB / 0.5846 GB, free: 1.281 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.126e-05/0.3343, allocations: 29.27 kB / 0.5846 GB, free: 1.258 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.818e-05/0.3344, allocations: 30.52 kB / 0.5847 GB, free: 1.234 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.522e-05/0.3344, allocations: 328.1 kB / 0.585 GB, free: 0.9102 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001708/0.3346, allocations: 52.38 kB / 0.585 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.3348, allocations: 72.81 kB / 0.5851 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003038/0.3351, allocations: 161.3 kB / 0.5853 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3351, allocations: 0.6562 kB / 0.5853 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004012/0.3355, allocations: 221.8 kB / 0.5855 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.572e-05/0.3355, allocations: 63.89 kB / 0.5855 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.3356, allocations: 0 / 0.5855 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.3356, allocations: 1.656 kB / 0.5855 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.3357, allocations: 25.81 kB / 0.5856 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.3357, allocations: 5.938 kB / 0.5856 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001207/0.3358, allocations: 30.78 kB / 0.5856 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.3359, allocations: 7.938 kB / 0.5856 GB, free: 0.5352 MB / 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.604e-05/0.3359, allocations: 122.4 kB / 0.5857 GB, free: 424 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.62e-05/0.3359, allocations: 3.094 kB / 0.5857 GB, free: 424 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.018e-05/0.336, allocations: 11.56 kB / 0.5857 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.336, allocations: 5.719 kB / 0.5857 GB, free: 404 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.336, allocations: 4.75 kB / 0.5857 GB, free: 400 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.336, allocations: 5.094 kB / 0.5857 GB, free: 396 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000107/0.3361, allocations: 200.5 kB / 0.5859 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3361, allocations: 0 / 0.5859 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.3362, allocations: 19.77 kB / 0.586 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.3362, allocations: 1.375 kB / 0.586 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.3363, allocations: 2.078 kB / 0.586 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3363, allocations: 0 / 0.586 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3363, allocations: 0 / 0.586 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005259/0.3368, allocations: 233.6 kB / 0.5862 GB, free: 56 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.432e-05/0.3369, allocations: 85.08 kB / 0.5863 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.409e-05/0.3369, allocations: 5.469 kB / 0.5863 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.337, allocations: 17.95 kB / 0.5863 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.212e-05/0.3371, allocations: 17.84 kB / 0.5863 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.3371, allocations: 7.469 kB / 0.5863 GB, free: 15.94 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.33e-05/0.3372, allocations: 100.9 kB / 0.5864 GB, free: 15.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3372, allocations: 0.9688 kB / 0.5864 GB, free: 15.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000191/0.3374, allocations: 17.56 kB / 0.5864 GB, free: 15.86 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.0007783/0.3381, allocations: 0.7577 MB / 0.5872 GB, free: 15.22 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004406/0.3386, allocations: 230.9 kB / 0.5874 GB, free: 15.06 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.3386, allocations: 0.5938 kB / 0.5874 GB, free: 15.06 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001855/0.3388, allocations: 60.36 kB / 0.5874 GB, free: 15.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002165/0.339, allocations: 26.72 kB / 0.5875 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002082/0.3411, allocations: 1.702 MB / 0.5891 GB, free: 13.68 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001865/0.3413, allocations: 0.6931 MB / 0.5898 GB, free: 12.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.902e-05/0.3414, allocations: 8.625 kB / 0.5898 GB, free: 12.98 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.872e-05/0.3414, allocations: 27.72 kB / 0.5898 GB, free: 12.96 MB / 446.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3414, allocations: 4 kB / 0.5898 GB, free: 12.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2572/0.5987, allocations: 2.752 MB / 0.5925 GB, free: 12.53 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.704/8.302, allocations: 16.27 kB / 0.5925 GB, free: 12.52 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)