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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 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) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009929/0.000993, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 191.8 kB / 16.25 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.199/1.199, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8717/0.8717, allocations: 135.1 MB / 425.2 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 60.09 kB / 0.505 GB, free: 5.562 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1365, allocations: 80.94 MB / 0.584 GB, free: 4.789 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002691/0.1392, allocations: 1.628 MB / 0.5856 GB, free: 3.145 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008352/0.1401, allocations: 0.5183 MB / 0.5861 GB, free: 2.621 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.762e-05/0.1402, allocations: 0 / 0.5861 GB, free: 2.621 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.286e-05/0.1402, allocations: 3.938 kB / 0.5861 GB, free: 2.617 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.73e-05/0.1403, allocations: 11.91 kB / 0.5861 GB, free: 2.605 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000279/0.1406, allocations: 51.89 kB / 0.5862 GB, free: 2.555 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001753/0.1408, allocations: 103.8 kB / 0.5863 GB, free: 2.453 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.295e-05/0.1409, allocations: 16.17 kB / 0.5863 GB, free: 2.438 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.842e-05/0.141, allocations: 39.84 kB / 0.5863 GB, free: 2.398 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.972e-05/0.1411, allocations: 43.81 kB / 0.5863 GB, free: 2.355 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.576e-05/0.1411, allocations: 12 kB / 0.5864 GB, free: 2.344 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.848e-05/0.1411, allocations: 8 kB / 0.5864 GB, free: 2.336 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.84e-05/0.1412, allocations: 15.92 kB / 0.5864 GB, free: 2.32 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.943e-05/0.1412, allocations: 35.86 kB / 0.5864 GB, free: 2.285 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000127/0.1413, allocations: 87.91 kB / 0.5865 GB, free: 2.199 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1414, allocations: 4 kB / 0.5865 GB, free: 2.195 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1414, allocations: 4 kB / 0.5865 GB, free: 2.191 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.1414, allocations: 0 / 0.5865 GB, free: 2.191 MB / 494.1 MB 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.0007001/0.1421, allocations: 458.6 kB / 0.5869 GB, free: 1.684 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.1421, allocations: 8.031 kB / 0.587 GB, free: 1.676 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.68e-05/0.1422, allocations: 34.75 kB / 0.587 GB, free: 1.633 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.48e-05/0.1422, allocations: 12.84 kB / 0.587 GB, free: 1.621 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001791/0.1424, allocations: 196.1 kB / 0.5872 GB, free: 1.391 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.867e-05/0.1425, allocations: 38.25 kB / 0.5872 GB, free: 1.348 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.685e-05/0.1425, allocations: 12.12 kB / 0.5872 GB, free: 1.336 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002674/0.1428, allocations: 93.62 kB / 0.5873 GB, free: 1.238 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.1428, allocations: 0 / 0.5873 GB, free: 1.238 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.1428, allocations: 0 / 0.5873 GB, free: 1.238 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.1429, allocations: 4 kB / 0.5873 GB, free: 1.234 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002841/0.1431, allocations: 83.86 kB / 0.5874 GB, free: 1.152 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005163/0.1437, allocations: 332.7 kB / 0.5877 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003611/0.144, allocations: 98.59 kB / 0.5878 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001484/0.1442, allocations: 48.77 kB / 0.5879 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.1442, allocations: 3.984 kB / 0.5879 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003276/0.1446, allocations: 123.3 kB / 0.588 GB, free: 496 kB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.583e-06/0.1446, allocations: 0 / 0.588 GB, free: 496 kB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005713/0.1452, allocations: 173.7 kB / 0.5882 GB, free: 316 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/0.1452, allocations: 55.41 kB / 0.5882 GB, free: 248 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.632e-05/0.1453, allocations: 122.2 kB / 0.5883 GB, free: 116 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.099e-05/0.1453, allocations: 37.64 kB / 0.5884 GB, free: 72 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.222e-05/0.1454, allocations: 99.98 kB / 0.5885 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.988e-05/0.1454, allocations: 27.61 kB / 0.5885 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.98e-05/0.1455, allocations: 37.64 kB / 0.5885 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.918e-05/0.1456, allocations: 322.8 kB / 0.5888 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001781/0.1458, allocations: 51.95 kB / 0.5889 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001829/0.146, allocations: 76.48 kB / 0.5889 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003284/0.1463, allocations: 161 kB / 0.5891 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.1463, allocations: 4 kB / 0.5891 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004416/0.1468, allocations: 228.9 kB / 0.5893 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.231e-05/0.1468, allocations: 59.41 kB / 0.5894 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1468, allocations: 0 / 0.5894 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.1468, allocations: 0 / 0.5894 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.147, allocations: 23.97 kB / 0.5894 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.147, allocations: 3.984 kB / 0.5894 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001292/0.1471, allocations: 23.92 kB / 0.5894 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/0.1471, allocations: 8.031 kB / 0.5894 GB, free: 14.89 MB / 0.4981 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,step.count,$PRE.step.count,step.T_start,$PRE.step.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.206e-05/0.1472, allocations: 117.8 kB / 0.5895 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.968e-05/0.1472, allocations: 7.906 kB / 0.5896 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.225e-05/0.1473, allocations: 20.36 kB / 0.5896 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.1473, allocations: 0 / 0.5896 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1473, allocations: 0 / 0.5896 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1473, allocations: 3.938 kB / 0.5896 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001547/0.1475, allocations: 193.5 kB / 0.5898 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1475, allocations: 0 / 0.5898 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001355/0.1476, allocations: 23.98 kB / 0.5898 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.1476, allocations: 0 / 0.5898 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/0.1477, allocations: 4 kB / 0.5898 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.1477, allocations: 3.938 kB / 0.5898 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1477, allocations: 0 / 0.5898 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005552/0.1482, allocations: 224.8 kB / 0.59 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.112e-05/0.1483, allocations: 92.95 kB / 0.5901 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.371e-05/0.1483, allocations: 0 / 0.5901 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.1485, allocations: 16.02 kB / 0.5901 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.665e-05/0.1485, allocations: 24.02 kB / 0.5901 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.1486, allocations: 15.88 kB / 0.5901 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.896e-05/0.1486, allocations: 94.64 kB / 0.5902 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1486, allocations: 4 kB / 0.5902 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002068/0.1488, allocations: 24 kB / 0.5903 GB, free: 13.94 MB / 0.4981 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007933/0.1496, allocations: 0.7529 MB / 0.591 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004332/0.1501, allocations: 230.7 kB / 0.5912 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.1501, allocations: 4 kB / 0.5912 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001826/0.1503, allocations: 51.91 kB / 0.5913 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002405/0.1505, allocations: 23.98 kB / 0.5913 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002214/0.1528, allocations: 1.714 MB / 0.593 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002112/0.153, allocations: 0.7001 MB / 0.5937 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.978e-05/0.153, allocations: 8.422 kB / 0.5937 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.408e-05/0.1531, allocations: 27.72 kB / 0.5937 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1531, allocations: 0 / 0.5937 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.675/2.828, allocations: 2.597 MB / 0.5962 GB, free: 7.801 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002029/2.828, allocations: 188.2 kB / 0.5964 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.168/4.996, allocations: 0 / 0.5964 GB, free: 7.543 MB / 0.4981 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/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)