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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.008011/0.008012, allocations: 172 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7273/0.7273, allocations: 135.2 MB / 151 MB, free: 13.83 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 223.2 MB / 406.9 MB, free: 3.223 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008909/0.000891, allocations: 96.33 kB / 489.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003251/0.0003251, allocations: 8 kB / 0.5691 GB, free: 14.07 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3511/0.3515, allocations: 82.31 MB / 0.6495 GB, free: 36.14 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1509/0.5025, allocations: 112.6 MB / 0.7595 GB, free: 3.418 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.5028, allocations: 79.89 kB / 0.7595 GB, free: 3.34 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.007266/0.5101, allocations: 2.359 MB / 0.7618 GB, free: 0.9727 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.094e-06/0.5101, allocations: 0 / 0.7618 GB, free: 0.9727 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.325e-06/0.5101, allocations: 0 / 0.7618 GB, free: 0.9727 MB / 0.5261 GB 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.0007037/0.5108, allocations: 470.4 kB / 0.7623 GB, free: 464 kB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.5109, allocations: 12.03 kB / 0.7623 GB, free: 452 kB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.88e-05/0.5109, allocations: 38.55 kB / 0.7623 GB, free: 404 kB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.194e-05/0.511, allocations: 7.906 kB / 0.7623 GB, free: 396 kB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002119/0.5112, allocations: 198.8 kB / 0.7625 GB, free: 156 kB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.662e-05/0.5113, allocations: 37.7 kB / 0.7626 GB, free: 112 kB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.709e-05/0.5113, allocations: 8 kB / 0.7626 GB, free: 104 kB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/0.5117, allocations: 105.6 kB / 0.7627 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.5117, allocations: 0 / 0.7627 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.5117, allocations: 3.984 kB / 0.7627 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.5117, allocations: 0 / 0.7627 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003203/0.5121, allocations: 91.88 kB / 0.7628 GB, free: 15.9 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005984/0.5127, allocations: 348.8 kB / 0.7631 GB, free: 15.51 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003977/0.5131, allocations: 110.6 kB / 0.7632 GB, free: 15.39 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.5131, allocations: 7.969 kB / 0.7632 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003481/0.5135, allocations: 123.3 kB / 0.7633 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=9): time 1.372e-06/0.5135, allocations: 0 / 0.7633 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of matching and sorting (n=9): time 0.000633/0.5141, allocations: 205.4 kB / 0.7635 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.5142, allocations: 55.36 kB / 0.7636 GB, free: 14.98 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.192e-05/0.5143, allocations: 121.1 kB / 0.7637 GB, free: 14.85 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/0.5143, allocations: 29.7 kB / 0.7637 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 5.318e-05/0.5144, allocations: 95.98 kB / 0.7638 GB, free: 14.72 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.482e-05/0.5144, allocations: 35.75 kB / 0.7638 GB, free: 14.68 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.014e-05/0.5144, allocations: 4 kB / 0.7639 GB, free: 14.68 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.5145, allocations: 322.8 kB / 0.7642 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001876/0.5147, allocations: 55.91 kB / 0.7642 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001986/0.5149, allocations: 81.67 kB / 0.7643 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002071/0.5152, allocations: 115.3 kB / 0.7644 GB, free: 14.09 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.5152, allocations: 4 kB / 0.7644 GB, free: 14.09 MB / 0.5417 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005194/0.5157, allocations: 240.9 kB / 0.7646 GB, free: 13.83 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 4.643e-05/0.5158, allocations: 64.38 kB / 0.7647 GB, free: 13.76 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.5158, allocations: 0 / 0.7647 GB, free: 13.76 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.5158, allocations: 0 / 0.7647 GB, free: 13.76 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.5159, allocations: 23.98 kB / 0.7647 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.5159, allocations: 4 kB / 0.7647 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.5161, allocations: 31.86 kB / 0.7648 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.599e-05/0.5161, allocations: 8 kB / 0.7648 GB, free: 13.69 MB / 0.5417 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,$whenCondition1,$PRE.step.T_start,step.T_start,$PRE.step.count,step.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001028/0.5162, allocations: 113.8 kB / 0.7649 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.18e-05/0.5163, allocations: 7.906 kB / 0.7649 GB, free: 13.56 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.112e-05/0.5163, allocations: 20.31 kB / 0.7649 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.5163, allocations: 0 / 0.7649 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.5163, allocations: 3.984 kB / 0.7649 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.5163, allocations: 0 / 0.7649 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001799/0.5165, allocations: 193.5 kB / 0.7651 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.5165, allocations: 0 / 0.7651 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000154/0.5167, allocations: 31.97 kB / 0.7651 GB, free: 13.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.5167, allocations: 0 / 0.7651 GB, free: 13.27 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.5167, allocations: 4 kB / 0.7651 GB, free: 13.27 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.5167, allocations: 4 kB / 0.7651 GB, free: 13.26 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.5167, allocations: 0 / 0.7651 GB, free: 13.26 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006315/0.5174, allocations: 253.2 kB / 0.7654 GB, free: 13 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.502e-05/0.5174, allocations: 85.11 kB / 0.7654 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.22e-05/0.5175, allocations: 3.938 kB / 0.7654 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.5176, allocations: 16.03 kB / 0.7655 GB, free: 12.88 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.072e-05/0.5177, allocations: 19.97 kB / 0.7655 GB, free: 12.86 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.5177, allocations: 3.984 kB / 0.7655 GB, free: 12.85 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 5.822e-05/0.5178, allocations: 98.91 kB / 0.7656 GB, free: 12.76 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5178, allocations: 7.938 kB / 0.7656 GB, free: 12.75 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002147/0.518, allocations: 27.92 kB / 0.7656 GB, free: 12.72 MB / 0.5417 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000899/0.5189, allocations: 0.7879 MB / 0.7664 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0004819/0.5194, allocations: 246.7 kB / 0.7666 GB, free: 11.64 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.5194, allocations: 0 / 0.7666 GB, free: 11.64 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002157/0.5196, allocations: 60.03 kB / 0.7667 GB, free: 11.58 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002024/0.5198, allocations: 16.67 kB / 0.7667 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001652/0.5215, allocations: 0.9462 MB / 0.7676 GB, free: 10.57 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.5218, allocations: 0.6965 MB / 0.7683 GB, free: 9.844 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 6.407e-05/0.5219, allocations: 8.438 kB / 0.7683 GB, free: 9.836 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.281e-05/0.5219, allocations: 27.42 kB / 0.7683 GB, free: 9.809 MB / 0.5417 GB Notification: Performance of SimCode: time 3e-07/0.5219, allocations: 0 / 0.7683 GB, free: 9.809 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01339/0.5353, allocations: 2.332 MB / 0.7706 GB, free: 7.586 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002119/0.5356, allocations: 164.3 kB / 0.7708 GB, free: 7.348 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.585/2.12, allocations: 4 kB / 0.7708 GB, free: 7.344 MB / 0.5417 GB (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/linux/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)