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.008423/0.008423, allocations: 172.8 kB / 15.12 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.7862/0.7862, allocations: 135.2 MB / 151 MB, free: 13.85 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.494/1.494, allocations: 223.2 MB / 406.8 MB, free: 3.246 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.001039/0.001039, allocations: 99.23 kB / 489.9 MB, free: 10.92 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00034/0.0003402, allocations: 15.98 kB / 0.5691 GB, free: 14.09 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3858/0.3861, allocations: 82.3 MB / 0.6495 GB, free: 36.15 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1437/0.5299, allocations: 112.6 MB / 0.7595 GB, free: 3.414 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002687/0.5303, allocations: 79.94 kB / 0.7595 GB, free: 3.336 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.007048/0.5373, allocations: 2.355 MB / 0.7618 GB, free: 0.9727 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.144e-06/0.5374, allocations: 0 / 0.7618 GB, free: 0.9727 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.568e-06/0.5374, allocations: 4 kB / 0.7618 GB, free: 0.9688 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.0006795/0.5381, allocations: 471.1 kB / 0.7623 GB, free: 460 kB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.5381, allocations: 8.031 kB / 0.7623 GB, free: 452 kB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.69e-05/0.5382, allocations: 42.55 kB / 0.7623 GB, free: 400 kB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.684e-05/0.5382, allocations: 7.906 kB / 0.7624 GB, free: 392 kB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002065/0.5384, allocations: 194.8 kB / 0.7625 GB, free: 156 kB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.037e-05/0.5385, allocations: 41.7 kB / 0.7626 GB, free: 108 kB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.717e-05/0.5386, allocations: 4 kB / 0.7626 GB, free: 104 kB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002984/0.5389, allocations: 105.6 kB / 0.7627 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.5389, allocations: 0 / 0.7627 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/0.5389, allocations: 0 / 0.7627 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-06/0.5389, allocations: 11.92 kB / 0.7627 GB, free: 15.98 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003303/0.5393, allocations: 91.92 kB / 0.7628 GB, free: 15.89 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005792/0.5399, allocations: 340.8 kB / 0.7631 GB, free: 15.51 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000403/0.5403, allocations: 110.6 kB / 0.7632 GB, free: 15.39 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.5403, allocations: 4 kB / 0.7632 GB, free: 15.39 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003342/0.5406, allocations: 127.5 kB / 0.7633 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=9): time 1.422e-06/0.5407, allocations: 0 / 0.7633 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of matching and sorting (n=9): time 0.0006332/0.5413, allocations: 205.4 kB / 0.7635 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/0.5413, allocations: 55.36 kB / 0.7636 GB, free: 14.98 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.51e-05/0.5414, allocations: 114.1 kB / 0.7637 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.534e-05/0.5415, allocations: 33.7 kB / 0.7637 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 6.733e-05/0.5415, allocations: 99.97 kB / 0.7638 GB, free: 14.71 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.114e-05/0.5416, allocations: 23.62 kB / 0.7638 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.958e-06/0.5416, allocations: 7.938 kB / 0.7639 GB, free: 14.68 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001146/0.5417, allocations: 322.8 kB / 0.7642 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001903/0.5419, allocations: 63.95 kB / 0.7642 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001935/0.5421, allocations: 69.67 kB / 0.7643 GB, free: 14.22 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002044/0.5423, allocations: 122.6 kB / 0.7644 GB, free: 14.09 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.5423, allocations: 384 / 0.7644 GB, free: 14.09 MB / 0.5417 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000478/0.5428, allocations: 244.9 kB / 0.7646 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 5.097e-05/0.5429, allocations: 59.39 kB / 0.7647 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.5429, allocations: 0 / 0.7647 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.5429, allocations: 7.938 kB / 0.7647 GB, free: 13.76 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.5431, allocations: 23.98 kB / 0.7647 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.5431, allocations: 0 / 0.7647 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001424/0.5432, allocations: 35.88 kB / 0.7648 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.5432, allocations: 4 kB / 0.7648 GB, free: 13.7 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.0001041/0.5433, allocations: 121.8 kB / 0.7649 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.125e-05/0.5434, allocations: 11.91 kB / 0.7649 GB, free: 13.55 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.32e-05/0.5434, allocations: 8.375 kB / 0.7649 GB, free: 13.55 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.5434, allocations: 4 kB / 0.7649 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.5434, allocations: 0 / 0.7649 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.5434, allocations: 4 kB / 0.7649 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001849/0.5436, allocations: 197.5 kB / 0.7651 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.5436, allocations: 0 / 0.7651 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001508/0.5438, allocations: 23.98 kB / 0.7651 GB, free: 13.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.5438, allocations: 4 kB / 0.7651 GB, free: 13.27 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.08e-05/0.5439, allocations: 3.984 kB / 0.7651 GB, free: 13.27 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.5439, allocations: 4 kB / 0.7651 GB, free: 13.26 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.5439, allocations: 0 / 0.7651 GB, free: 13.26 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006413/0.5445, allocations: 256.8 kB / 0.7654 GB, free: 12.99 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.437e-05/0.5446, allocations: 85.05 kB / 0.7655 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.516e-05/0.5446, allocations: 4 kB / 0.7655 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001434/0.5448, allocations: 15.98 kB / 0.7655 GB, free: 12.87 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.837e-05/0.5449, allocations: 15.97 kB / 0.7655 GB, free: 12.86 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.5449, allocations: 8 kB / 0.7655 GB, free: 12.85 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 7.361e-05/0.545, allocations: 99.27 kB / 0.7656 GB, free: 12.75 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.41e-07/0.545, allocations: 3.938 kB / 0.7656 GB, free: 12.75 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002301/0.5452, allocations: 27.94 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.001066/0.5463, allocations: 0.7958 MB / 0.7664 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005316/0.5468, allocations: 242.7 kB / 0.7666 GB, free: 11.63 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.5468, allocations: 0 / 0.7666 GB, free: 11.63 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002104/0.547, allocations: 63.95 kB / 0.7667 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002284/0.5473, allocations: 15.92 kB / 0.7667 GB, free: 11.55 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001804/0.5491, allocations: 0.9428 MB / 0.7676 GB, free: 10.56 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.5494, allocations: 0.7004 MB / 0.7683 GB, free: 9.832 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 5.546e-05/0.5495, allocations: 4.438 kB / 0.7683 GB, free: 9.828 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.9e-05/0.5495, allocations: 27.48 kB / 0.7683 GB, free: 9.801 MB / 0.5417 GB Notification: Performance of SimCode: time 5.41e-07/0.5495, allocations: 0 / 0.7683 GB, free: 9.801 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01274/0.5623, allocations: 2.339 MB / 0.7706 GB, free: 7.578 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001736/0.5625, allocations: 163.8 kB / 0.7708 GB, free: 7.34 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.587/2.15, allocations: 0 / 0.7708 GB, free: 7.34 MB / 0.5417 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)