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.0009565/0.0009566, 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.7612/0.7612, allocations: 133.6 MB / 141.6 MB, free: 2.883 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.441/1.441, allocations: 221.5 MB / 395.4 MB, free: 10.8 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.0009146/0.0009146, allocations: 98.83 kB / 478.2 MB, free: 1.309 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.088e-05/3.09e-05, allocations: 11.98 kB / 0.5536 GB, free: 8.969 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5016/0.5016, allocations: 82.29 MB / 0.6339 GB, free: 40.82 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.14/0.6417, allocations: 111.9 MB / 0.7432 GB, free: 10.84 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001905/0.6419, allocations: 71.97 kB / 0.7432 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.006481/0.6484, allocations: 2.335 MB / 0.7455 GB, free: 8.426 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.042e-06/0.6485, allocations: 0 / 0.7455 GB, free: 8.426 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.003e-06/0.6485, allocations: 0 / 0.7455 GB, free: 8.426 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.0006294/0.6491, allocations: 457.7 kB / 0.7459 GB, free: 7.922 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.6492, allocations: 12.03 kB / 0.746 GB, free: 7.91 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.191e-05/0.6492, allocations: 15.84 kB / 0.746 GB, free: 7.895 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002073/0.6494, allocations: 190.8 kB / 0.7461 GB, free: 7.668 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.578e-05/0.6495, allocations: 37.69 kB / 0.7462 GB, free: 7.625 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.834e-05/0.6496, allocations: 4 kB / 0.7462 GB, free: 7.621 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00011/0.6497, allocations: 28 kB / 0.7462 GB, free: 7.594 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001319/0.6498, allocations: 73.66 kB / 0.7463 GB, free: 7.516 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.6498, allocations: 0 / 0.7463 GB, free: 7.516 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.558e-05/0.6499, allocations: 0 / 0.7463 GB, free: 7.516 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.6499, allocations: 4 kB / 0.7463 GB, free: 7.512 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005311/0.6504, allocations: 317.2 kB / 0.7466 GB, free: 7.164 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001855/0.6506, allocations: 58.62 kB / 0.7466 GB, free: 7.098 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.74e-05/0.6507, allocations: 20.86 kB / 0.7467 GB, free: 7.074 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.6507, allocations: 4 kB / 0.7467 GB, free: 7.07 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001882/0.6509, allocations: 99.3 kB / 0.7468 GB, free: 6.961 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=9): time 2.946e-06/0.6509, allocations: 7.984 kB / 0.7468 GB, free: 6.953 MB / 0.5261 GB Notification: Performance of matching and sorting (n=9): time 0.0002098/0.6511, allocations: 85.56 kB / 0.7469 GB, free: 6.863 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.609e-05/0.6512, allocations: 51.41 kB / 0.7469 GB, free: 6.801 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.15e-05/0.6512, allocations: 120.2 kB / 0.747 GB, free: 6.676 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.6513, allocations: 25.7 kB / 0.747 GB, free: 6.645 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 4.867e-05/0.6513, allocations: 96.12 kB / 0.7471 GB, free: 6.547 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.795e-05/0.6514, allocations: 27.56 kB / 0.7472 GB, free: 6.52 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.837e-06/0.6514, allocations: 0 / 0.7472 GB, free: 6.52 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.852e-05/0.6515, allocations: 322.8 kB / 0.7475 GB, free: 6.195 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.288e-05/0.6515, allocations: 32 kB / 0.7475 GB, free: 6.164 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.394e-05/0.6516, allocations: 47.25 kB / 0.7475 GB, free: 6.113 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.405e-05/0.6517, allocations: 23.98 kB / 0.7476 GB, free: 6.09 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.6517, allocations: 0 / 0.7476 GB, free: 6.09 MB / 0.5261 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000221/0.6519, allocations: 117.5 kB / 0.7477 GB, free: 5.969 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 4.195e-05/0.6519, allocations: 67.33 kB / 0.7477 GB, free: 5.891 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.652, allocations: 0 / 0.7477 GB, free: 5.891 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.652, allocations: 32 / 0.7477 GB, free: 5.891 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.6521, allocations: 31.98 kB / 0.7478 GB, free: 5.859 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.6521, allocations: 0 / 0.7478 GB, free: 5.859 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001265/0.6523, allocations: 19.92 kB / 0.7478 GB, free: 5.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.506e-05/0.6523, allocations: 4 kB / 0.7478 GB, free: 5.836 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.065e-05/0.6524, allocations: 124.9 kB / 0.7479 GB, free: 5.707 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001363/0.6525, allocations: 81.59 kB / 0.748 GB, free: 5.621 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.541e-05/0.6525, allocations: 7.906 kB / 0.748 GB, free: 5.613 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.738e-05/0.6526, allocations: 12.61 kB / 0.748 GB, free: 5.602 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.6526, allocations: 4 kB / 0.748 GB, free: 5.598 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.6526, allocations: 3.938 kB / 0.748 GB, free: 5.594 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.656e-06/0.6526, allocations: 0 / 0.748 GB, free: 5.594 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001517/0.6528, allocations: 174.2 kB / 0.7482 GB, free: 5.387 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.6528, allocations: 4 kB / 0.7482 GB, free: 5.383 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001441/0.6529, allocations: 27.97 kB / 0.7482 GB, free: 5.355 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.6529, allocations: 0 / 0.7482 GB, free: 5.355 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.653, allocations: 0 / 0.7482 GB, free: 5.355 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.297e-06/0.653, allocations: 4 kB / 0.7482 GB, free: 5.352 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.653, allocations: 0 / 0.7482 GB, free: 5.352 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002476/0.6532, allocations: 157 kB / 0.7484 GB, free: 5.18 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.141e-05/0.6533, allocations: 81.02 kB / 0.7484 GB, free: 5.082 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.633e-05/0.6533, allocations: 8 kB / 0.7485 GB, free: 5.074 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/0.6534, allocations: 24.02 kB / 0.7485 GB, free: 5.051 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.169e-05/0.6535, allocations: 15.97 kB / 0.7485 GB, free: 5.035 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.161e-05/0.6535, allocations: 4 kB / 0.7485 GB, free: 5.031 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 4.211e-05/0.6536, allocations: 91.28 kB / 0.7486 GB, free: 4.941 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6536, allocations: 0 / 0.7486 GB, free: 4.941 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002088/0.6538, allocations: 27.92 kB / 0.7486 GB, free: 4.914 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.0005192/0.6543, allocations: 0.6931 MB / 0.7493 GB, free: 4.191 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0002033/0.6545, allocations: 182.8 kB / 0.7495 GB, free: 3.988 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.6545, allocations: 0 / 0.7495 GB, free: 3.988 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 6.309e-05/0.6546, allocations: 31.94 kB / 0.7495 GB, free: 3.957 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002053/0.6548, allocations: 15.98 kB / 0.7495 GB, free: 3.941 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005796/0.6554, allocations: 216 kB / 0.7497 GB, free: 3.695 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002294/0.6557, allocations: 0.6963 MB / 0.7504 GB, free: 2.973 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 5.278e-05/0.6557, allocations: 8.422 kB / 0.7504 GB, free: 2.965 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.351e-05/0.6558, allocations: 31.44 kB / 0.7504 GB, free: 2.934 MB / 0.5261 GB Notification: Performance of SimCode: time 2.71e-07/0.6558, allocations: 0 / 0.7504 GB, free: 2.934 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01786/0.6737, allocations: 1.981 MB / 0.7524 GB, free: 0.9727 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00015/0.6739, allocations: 127.3 kB / 0.7525 GB, free: 0.7812 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.493/2.167, allocations: 0 / 0.7525 GB, free: 0.7812 MB / 0.5261 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)