Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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_dev_IDEAS_Utilities_Math_Examples_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.MovingAverage,fileNamePrefix="IDEAS_dev_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.001145/0.001145, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7344/0.7344, allocations: 133.4 MB / 146.7 MB, free: 10.79 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.629/1.629, allocations: 221.3 MB / 400.4 MB, free: 5.816 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000953/0.000953, allocations: 85.67 kB / 483.3 MB, free: 5.875 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.557e-05/3.561e-05, allocations: 4.719 kB / 0.5601 GB, free: 87.88 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1577, allocations: 82.3 MB / 0.6405 GB, free: 7.742 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6125/0.7702, allocations: 112.5 MB / 0.7504 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002222/0.7705, allocations: 67.7 kB / 0.7504 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.006608/0.7771, allocations: 2.354 MB / 0.7527 GB, free: 27.72 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.154e-06/0.7772, allocations: 0 / 0.7527 GB, free: 27.72 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 8.186e-06/0.7772, allocations: 0.9844 kB / 0.7527 GB, free: 27.72 MB / 0.5105 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.0006086/0.7778, allocations: 461.6 kB / 0.7532 GB, free: 27.29 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.7779, allocations: 11.75 kB / 0.7532 GB, free: 27.29 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.197e-05/0.7779, allocations: 33.8 kB / 0.7532 GB, free: 27.25 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.02e-05/0.7779, allocations: 11.59 kB / 0.7532 GB, free: 27.24 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000188/0.7781, allocations: 196.1 kB / 0.7534 GB, free: 27.04 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.31e-05/0.7782, allocations: 40.55 kB / 0.7535 GB, free: 27 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.396e-05/0.7783, allocations: 7.531 kB / 0.7535 GB, free: 27 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001531/0.7784, allocations: 76.61 kB / 0.7535 GB, free: 26.96 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.7784, allocations: 0 / 0.7535 GB, free: 26.96 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.7785, allocations: 0 / 0.7535 GB, free: 26.96 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.7785, allocations: 3.719 kB / 0.7535 GB, free: 26.96 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.022e-05/0.7786, allocations: 30.06 kB / 0.7536 GB, free: 26.96 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005122/0.7791, allocations: 340.7 kB / 0.7539 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001975/0.7793, allocations: 60.14 kB / 0.754 GB, free: 26.67 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.597e-05/0.7794, allocations: 23.67 kB / 0.754 GB, free: 26.66 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.7794, allocations: 3.188 kB / 0.754 GB, free: 26.66 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001813/0.7796, allocations: 103.3 kB / 0.7541 GB, free: 26.61 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=9): time 2.685e-06/0.7796, allocations: 0 / 0.7541 GB, free: 26.61 MB / 0.5105 GB Notification: Performance of matching and sorting (n=9): time 0.0002193/0.7798, allocations: 91.98 kB / 0.7542 GB, free: 26.57 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.592e-05/0.7799, allocations: 55.36 kB / 0.7542 GB, free: 26.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.89e-05/0.7799, allocations: 117.9 kB / 0.7543 GB, free: 26.4 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.78, allocations: 33.11 kB / 0.7544 GB, free: 26.37 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 5.69e-05/0.78, allocations: 87.73 kB / 0.7545 GB, free: 26.29 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.594e-05/0.7801, allocations: 41.34 kB / 0.7545 GB, free: 26.26 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-06/0.7801, allocations: 3.688 kB / 0.7545 GB, free: 26.26 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001123/0.7802, allocations: 321.2 kB / 0.7548 GB, free: 25.95 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.955e-05/0.7803, allocations: 28.97 kB / 0.7548 GB, free: 25.95 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.32e-05/0.7803, allocations: 49.48 kB / 0.7549 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.954e-05/0.7804, allocations: 82.8 kB / 0.755 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.7804, allocations: 3.938 kB / 0.755 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000211/0.7807, allocations: 184.9 kB / 0.7551 GB, free: 25.76 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.944e-05/0.7807, allocations: 62.19 kB / 0.7552 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.7807, allocations: 0 / 0.7552 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.7807, allocations: 3.875 kB / 0.7552 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.7809, allocations: 24.83 kB / 0.7552 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.7809, allocations: 3.812 kB / 0.7552 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001261/0.781, allocations: 29.25 kB / 0.7553 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.571e-05/0.781, allocations: 6.656 kB / 0.7553 GB, free: 25.68 MB / 0.5105 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 () * 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 8.584e-05/0.7811, allocations: 115.4 kB / 0.7554 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.714e-05/0.7812, allocations: 7.75 kB / 0.7554 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.822e-05/0.7812, allocations: 15.09 kB / 0.7554 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.7812, allocations: 0 / 0.7554 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.7812, allocations: 0 / 0.7554 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.7812, allocations: 2.812 kB / 0.7554 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.7814, allocations: 200.8 kB / 0.7556 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.7814, allocations: 7.844 kB / 0.7556 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000135/0.7815, allocations: 18.52 kB / 0.7556 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.7815, allocations: 0 / 0.7556 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.7816, allocations: 9.797 kB / 0.7556 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.7816, allocations: 0 / 0.7556 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.7816, allocations: 0 / 0.7556 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002478/0.7818, allocations: 162.7 kB / 0.7558 GB, free: 25.28 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 3.91e-05/0.7819, allocations: 81.3 kB / 0.7559 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.625e-05/0.7819, allocations: 10.52 kB / 0.7559 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.782, allocations: 21.75 kB / 0.7559 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.554e-05/0.7821, allocations: 16.78 kB / 0.7559 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.7821, allocations: 0 / 0.7559 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 5.499e-05/0.7822, allocations: 98.39 kB / 0.756 GB, free: 25.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.412e-06/0.7822, allocations: 0 / 0.756 GB, free: 25.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002019/0.7824, allocations: 35.94 kB / 0.756 GB, free: 25.09 MB / 0.5105 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) * 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.0005096/0.7829, allocations: 0.7032 MB / 0.7567 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0002133/0.7832, allocations: 183.7 kB / 0.7569 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.7832, allocations: 0 / 0.7569 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 6.573e-05/0.7832, allocations: 29.97 kB / 0.7569 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002142/0.7835, allocations: 20.95 kB / 0.7569 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005757/0.784, allocations: 222.3 kB / 0.7571 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002327/0.7843, allocations: 0.7015 MB / 0.7578 GB, free: 23.52 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 5.534e-05/0.7843, allocations: 10.62 kB / 0.7578 GB, free: 23.51 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.519e-05/0.7844, allocations: 27.48 kB / 0.7579 GB, free: 23.5 MB / 0.5105 GB Notification: Performance of SimCode: time 2.4e-07/0.7844, allocations: 0 / 0.7579 GB, free: 23.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01198/0.7964, allocations: 2.339 MB / 0.7602 GB, free: 22.89 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001391/0.7966, allocations: 146 kB / 0.7603 GB, free: 22.66 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.517/2.314, allocations: 3.938 kB / 0.7603 GB, free: 22.66 MB / 0.5105 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_MovingAverage_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_MovingAverage.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1)