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.008079/0.008079, allocations: 101.5 kB / 15.73 MB, free: 5.586 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.001888/0.001888, allocations: 188.7 kB / 16.67 MB, free: 5.523 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7859/0.7859, allocations: 135.1 MB / 425.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 59.72 kB / 0.5851 GB, free: 21.78 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.151, allocations: 80.93 MB / 0.6642 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002866/0.1539, allocations: 1.577 MB / 0.6657 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001017/0.155, allocations: 0.5299 MB / 0.6662 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.1551, allocations: 3.938 kB / 0.6662 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.834e-05/0.1552, allocations: 3.938 kB / 0.6662 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001258/0.1553, allocations: 15.86 kB / 0.6662 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003393/0.1557, allocations: 55.88 kB / 0.6663 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002336/0.1559, allocations: 103.7 kB / 0.6664 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.156, allocations: 16.17 kB / 0.6664 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.1561, allocations: 39.91 kB / 0.6664 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.1563, allocations: 39.77 kB / 0.6665 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.896e-05/0.1563, allocations: 8 kB / 0.6665 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.888e-05/0.1563, allocations: 12 kB / 0.6665 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.583e-05/0.1564, allocations: 19.92 kB / 0.6665 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.462e-05/0.1564, allocations: 43.83 kB / 0.6666 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001558/0.1566, allocations: 78.58 kB / 0.6666 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1566, allocations: 0 / 0.6666 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.503e-06/0.1566, allocations: 3.938 kB / 0.6666 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.236e-06/0.1566, allocations: 3.984 kB / 0.6666 GB, free: 3.734 MB / 0.4981 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.0008539/0.1575, allocations: 455.5 kB / 0.6671 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.1576, allocations: 21.05 kB / 0.6671 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.07e-05/0.1576, allocations: 30.75 kB / 0.6671 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.534e-05/0.1577, allocations: 16.84 kB / 0.6671 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002867/0.158, allocations: 196.1 kB / 0.6673 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.147e-05/0.1581, allocations: 34.25 kB / 0.6674 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.512e-05/0.1581, allocations: 12.12 kB / 0.6674 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000279/0.1584, allocations: 93.62 kB / 0.6675 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.1584, allocations: 0 / 0.6675 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.1584, allocations: 8 kB / 0.6675 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.1584, allocations: 0 / 0.6675 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003014/0.1588, allocations: 79.84 kB / 0.6675 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005664/0.1593, allocations: 336.6 kB / 0.6679 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003755/0.1597, allocations: 90.58 kB / 0.668 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.1599, allocations: 44.83 kB / 0.668 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.492e-05/0.1599, allocations: 8.016 kB / 0.668 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002887/0.1602, allocations: 119.3 kB / 0.6681 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.533e-06/0.1602, allocations: 0 / 0.6681 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0005913/0.1608, allocations: 181.4 kB / 0.6683 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/0.1609, allocations: 55.78 kB / 0.6683 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.161, allocations: 128.8 kB / 0.6685 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.161, allocations: 33.7 kB / 0.6685 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.813e-05/0.1611, allocations: 92.03 kB / 0.6686 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.928e-05/0.1611, allocations: 27.59 kB / 0.6686 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.962e-05/0.1612, allocations: 33.7 kB / 0.6686 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001195/0.1613, allocations: 326.8 kB / 0.669 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001873/0.1615, allocations: 55.97 kB / 0.669 GB, free: 1.066 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001862/0.1617, allocations: 77.59 kB / 0.6691 GB, free: 0.9844 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003266/0.162, allocations: 153.1 kB / 0.6692 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1621, allocations: 4 kB / 0.6692 GB, free: 0.8125 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004677/0.1625, allocations: 228.4 kB / 0.6695 GB, free: 0.5742 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.162e-05/0.1626, allocations: 55.41 kB / 0.6695 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.759e-06/0.1626, allocations: 4 kB / 0.6695 GB, free: 0.5039 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.131e-05/0.1626, allocations: 3.938 kB / 0.6695 GB, free: 0.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.1628, allocations: 23.97 kB / 0.6695 GB, free: 488 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.1628, allocations: 4.031 kB / 0.6695 GB, free: 484 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001311/0.1629, allocations: 27.83 kB / 0.6696 GB, free: 456 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.1629, allocations: 4 kB / 0.6696 GB, free: 452 kB / 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 0.000111/0.1631, allocations: 125.8 kB / 0.6697 GB, free: 316 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.446e-05/0.1631, allocations: 7.906 kB / 0.6697 GB, free: 308 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.049e-05/0.1631, allocations: 12.38 kB / 0.6697 GB, free: 296 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1631, allocations: 0 / 0.6697 GB, free: 296 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.1632, allocations: 0 / 0.6697 GB, free: 296 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1632, allocations: 7.938 kB / 0.6697 GB, free: 288 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001814/0.1634, allocations: 193.6 kB / 0.6699 GB, free: 44 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.1634, allocations: 0 / 0.6699 GB, free: 44 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001334/0.1635, allocations: 23.98 kB / 0.6699 GB, free: 20 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.1635, allocations: 0 / 0.6699 GB, free: 20 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.821e-05/0.1635, allocations: 3.984 kB / 0.6699 GB, free: 16 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1635, allocations: 0 / 0.6699 GB, free: 16 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1635, allocations: 0 / 0.6699 GB, free: 16 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005965/0.1641, allocations: 224.8 kB / 0.6701 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.226e-05/0.1642, allocations: 88.95 kB / 0.6702 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.205e-05/0.1642, allocations: 4.031 kB / 0.6702 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.1644, allocations: 15.98 kB / 0.6702 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.831e-05/0.1645, allocations: 19.98 kB / 0.6703 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.479e-05/0.1645, allocations: 11.92 kB / 0.6703 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 5.632e-05/0.1645, allocations: 91.36 kB / 0.6704 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1645, allocations: 7.875 kB / 0.6704 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000219/0.1648, allocations: 24 kB / 0.6704 GB, free: 15.5 MB / 0.5137 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.0008895/0.1657, allocations: 0.7502 MB / 0.6711 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004565/0.1661, allocations: 230.7 kB / 0.6713 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1661, allocations: 64 / 0.6713 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001757/0.1663, allocations: 51.97 kB / 0.6714 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.1666, allocations: 33.62 kB / 0.6714 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002471/0.1691, allocations: 1.724 MB / 0.6731 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/0.1693, allocations: 0.6929 MB / 0.6738 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 5.443e-05/0.1694, allocations: 12.42 kB / 0.6738 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.897e-05/0.1695, allocations: 27.44 kB / 0.6738 GB, free: 11.81 MB / 0.5137 GB Notification: Performance of SimCode: time 1.9e-07/0.1695, allocations: 0 / 0.6738 GB, free: 11.81 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02217/0.1917, allocations: 2.788 MB / 0.6765 GB, free: 9.102 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.479/7.671, allocations: 15.81 kB / 0.6766 GB, free: 9.086 MB / 0.5137 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)