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.001792/0.001792, allocations: 172.5 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8145/0.8145, allocations: 133.6 MB / 141.6 MB, free: 2.863 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.529/1.529, allocations: 221.5 MB / 395.5 MB, free: 10.85 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.001074/0.001074, allocations: 104.2 kB / 478.2 MB, free: 1.332 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.04e-05/2.046e-05, allocations: 4 kB / 0.5535 GB, free: 8.984 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4251/0.4251, allocations: 82.3 MB / 0.6339 GB, free: 40.76 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1438/0.569, allocations: 111.9 MB / 0.7432 GB, free: 10.82 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.5693, allocations: 71.97 kB / 0.7432 GB, free: 10.75 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.006935/0.5762, allocations: 2.339 MB / 0.7455 GB, free: 8.41 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.533e-06/0.5763, allocations: 0 / 0.7455 GB, free: 8.41 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.036e-05/0.5763, allocations: 4 kB / 0.7455 GB, free: 8.406 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.0007108/0.577, allocations: 453.7 kB / 0.7459 GB, free: 7.906 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.577, allocations: 15.97 kB / 0.746 GB, free: 7.891 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.727e-05/0.5771, allocations: 7.906 kB / 0.746 GB, free: 7.883 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002305/0.5773, allocations: 186.9 kB / 0.7461 GB, free: 7.66 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.218e-05/0.5775, allocations: 41.62 kB / 0.7462 GB, free: 7.613 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.588e-05/0.5775, allocations: 4 kB / 0.7462 GB, free: 7.609 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001133/0.5776, allocations: 28 kB / 0.7462 GB, free: 7.582 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001384/0.5777, allocations: 73.59 kB / 0.7463 GB, free: 7.504 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.5778, allocations: 0 / 0.7463 GB, free: 7.504 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.536e-05/0.5778, allocations: 4 kB / 0.7463 GB, free: 7.5 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.5778, allocations: 4 kB / 0.7463 GB, free: 7.496 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005665/0.5784, allocations: 317.2 kB / 0.7466 GB, free: 7.148 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002188/0.5786, allocations: 54.62 kB / 0.7466 GB, free: 7.086 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.008e-05/0.5787, allocations: 24.86 kB / 0.7467 GB, free: 7.059 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.15e-05/0.5787, allocations: 0 / 0.7467 GB, free: 7.059 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002005/0.5789, allocations: 103.3 kB / 0.7468 GB, free: 6.945 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/0.5789, allocations: 0 / 0.7468 GB, free: 6.945 MB / 0.5261 GB Notification: Performance of matching and sorting (n=9): time 0.0002159/0.5792, allocations: 77.69 kB / 0.7468 GB, free: 6.863 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.5792, allocations: 55.41 kB / 0.7469 GB, free: 6.797 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.897e-05/0.5793, allocations: 121.1 kB / 0.747 GB, free: 6.668 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/0.5793, allocations: 25.7 kB / 0.747 GB, free: 6.637 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 6.843e-05/0.5794, allocations: 92.12 kB / 0.7471 GB, free: 6.543 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.005e-05/0.5795, allocations: 31.56 kB / 0.7472 GB, free: 6.512 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.977e-06/0.5795, allocations: 0 / 0.7472 GB, free: 6.512 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.5796, allocations: 326.8 kB / 0.7475 GB, free: 6.184 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.486e-05/0.5797, allocations: 20 kB / 0.7475 GB, free: 6.164 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.821e-05/0.5797, allocations: 53.7 kB / 0.7475 GB, free: 6.105 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.481e-05/0.5798, allocations: 25.23 kB / 0.7476 GB, free: 6.082 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.5798, allocations: 0 / 0.7476 GB, free: 6.082 MB / 0.5261 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001934/0.58, allocations: 124.3 kB / 0.7477 GB, free: 5.957 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.049e-05/0.5801, allocations: 63.39 kB / 0.7477 GB, free: 5.883 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.5801, allocations: 0 / 0.7477 GB, free: 5.883 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.5801, allocations: 4 kB / 0.7477 GB, free: 5.879 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.5803, allocations: 28.02 kB / 0.7478 GB, free: 5.852 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.5803, allocations: 0 / 0.7478 GB, free: 5.852 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000128/0.5804, allocations: 19.92 kB / 0.7478 GB, free: 5.832 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.5804, allocations: 4.094 kB / 0.7478 GB, free: 5.828 MB / 0.5261 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.954e-05/0.5805, allocations: 118.8 kB / 0.7479 GB, free: 5.707 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001498/0.5807, allocations: 89.53 kB / 0.748 GB, free: 5.613 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.599e-05/0.5807, allocations: 7.906 kB / 0.748 GB, free: 5.605 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.06e-05/0.5808, allocations: 20.61 kB / 0.748 GB, free: 5.586 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.5808, allocations: 0 / 0.748 GB, free: 5.586 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.5808, allocations: 0 / 0.748 GB, free: 5.586 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.5808, allocations: 0 / 0.748 GB, free: 5.586 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00017/0.581, allocations: 178.2 kB / 0.7482 GB, free: 5.375 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.581, allocations: 4 kB / 0.7482 GB, free: 5.371 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001506/0.5811, allocations: 27.91 kB / 0.7482 GB, free: 5.344 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.5811, allocations: 0 / 0.7482 GB, free: 5.344 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.5812, allocations: 8 kB / 0.7482 GB, free: 5.336 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.5812, allocations: 0 / 0.7482 GB, free: 5.336 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5812, allocations: 0 / 0.7482 GB, free: 5.336 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002678/0.5814, allocations: 156.9 kB / 0.7484 GB, free: 5.164 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.773e-05/0.5815, allocations: 85.02 kB / 0.7485 GB, free: 5.062 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.452e-05/0.5815, allocations: 0 / 0.7485 GB, free: 5.062 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.5817, allocations: 24.02 kB / 0.7485 GB, free: 5.039 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.541e-05/0.5817, allocations: 19.97 kB / 0.7485 GB, free: 5.02 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.5818, allocations: 0 / 0.7485 GB, free: 5.02 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 5.939e-05/0.5818, allocations: 91.28 kB / 0.7486 GB, free: 4.93 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.295e-06/0.5818, allocations: 0 / 0.7486 GB, free: 4.93 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.000216/0.5821, allocations: 31.92 kB / 0.7486 GB, free: 4.898 MB / 0.5261 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.0006174/0.5827, allocations: 0.6944 MB / 0.7493 GB, free: 4.172 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0002345/0.5829, allocations: 178.8 kB / 0.7495 GB, free: 3.973 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.5829, allocations: 0 / 0.7495 GB, free: 3.973 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 6.92e-05/0.583, allocations: 31.94 kB / 0.7495 GB, free: 3.941 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002204/0.5832, allocations: 17.55 kB / 0.7495 GB, free: 3.926 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006268/0.5839, allocations: 216 kB / 0.7497 GB, free: 3.68 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003075/0.5842, allocations: 0.6963 MB / 0.7504 GB, free: 2.957 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 5.662e-05/0.5843, allocations: 12.42 kB / 0.7504 GB, free: 2.945 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.903e-05/0.5843, allocations: 19.44 kB / 0.7504 GB, free: 2.926 MB / 0.5261 GB Notification: Performance of SimCode: time 2.5e-07/0.5843, allocations: 0 / 0.7504 GB, free: 2.926 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02241/0.6067, allocations: 1.982 MB / 0.7524 GB, free: 0.9609 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002671/0.6071, allocations: 117.5 kB / 0.7525 GB, free: 0.7734 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.598/2.205, allocations: 0 / 0.7525 GB, free: 0.7734 MB / 0.5261 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)