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.0008388/0.0008389, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.0009108/0.0009108, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.257/1.257, allocations: 223.2 MB / 239.9 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.177/1.177, allocations: 135.2 MB / 426.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003768/0.0003769, allocations: 9.156 kB / 0.5069 GB, free: 5.148 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1893/0.1897, allocations: 82.32 MB / 0.5873 GB, free: 3.004 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002413/0.1922, allocations: 1.271 MB / 0.5885 GB, free: 1.719 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.1935, allocations: 499.2 kB / 0.589 GB, free: 1.227 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.13e-05/0.1936, allocations: 7.875 kB / 0.589 GB, free: 1.219 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.462e-05/0.1936, allocations: 0 / 0.589 GB, free: 1.219 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001339/0.1938, allocations: 15.91 kB / 0.589 GB, free: 1.203 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003207/0.1941, allocations: 39.94 kB / 0.5891 GB, free: 1.164 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001737/0.1943, allocations: 63.81 kB / 0.5891 GB, free: 1.102 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.1945, allocations: 16.16 kB / 0.5891 GB, free: 1.086 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.1946, allocations: 35.89 kB / 0.5892 GB, free: 1.051 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001222/0.1947, allocations: 39.83 kB / 0.5892 GB, free: 1.012 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.136e-05/0.1948, allocations: 4 kB / 0.5892 GB, free: 1.008 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.176e-05/0.1948, allocations: 4 kB / 0.5892 GB, free: 1.004 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.437e-05/0.1948, allocations: 11.98 kB / 0.5892 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.486e-05/0.1949, allocations: 37.64 kB / 0.5893 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001185/0.195, allocations: 52.11 kB / 0.5893 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.195, allocations: 0 / 0.5893 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of FrontEnd: time 4.288e-06/0.195, allocations: 3.984 kB / 0.5893 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.927e-06/0.1951, allocations: 0 / 0.5893 GB, free: 0.8945 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.001012/0.1961, allocations: 446.5 kB / 0.5897 GB, free: 408 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.979e-05/0.1962, allocations: 15.97 kB / 0.5898 GB, free: 392 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.375e-05/0.1962, allocations: 38.55 kB / 0.5898 GB, free: 344 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.754e-05/0.1963, allocations: 11.91 kB / 0.5898 GB, free: 332 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002905/0.1966, allocations: 198.8 kB / 0.59 GB, free: 92 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/0.1968, allocations: 37.7 kB / 0.59 GB, free: 48 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.334e-05/0.1968, allocations: 4 kB / 0.59 GB, free: 44 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004653/0.1973, allocations: 101.6 kB / 0.5901 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.1974, allocations: 0 / 0.5901 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.03e-05/0.1974, allocations: 4 kB / 0.5901 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.1974, allocations: 3.984 kB / 0.5901 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005243/0.1979, allocations: 95.86 kB / 0.5902 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007654/0.1987, allocations: 344.7 kB / 0.5906 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006182/0.1994, allocations: 106.6 kB / 0.5907 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.201e-05/0.1994, allocations: 0 / 0.5907 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004873/0.1999, allocations: 135.2 kB / 0.5908 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.943e-06/0.1999, allocations: 0 / 0.5908 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.001127/0.201, allocations: 197.5 kB / 0.591 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.099e-05/0.2011, allocations: 51.41 kB / 0.591 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.2013, allocations: 145.9 kB / 0.5912 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.666e-05/0.2014, allocations: 25.7 kB / 0.5912 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.399e-05/0.2015, allocations: 100 kB / 0.5913 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.227e-05/0.2015, allocations: 27.98 kB / 0.5913 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.292e-05/0.2015, allocations: 0 / 0.5913 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001494/0.2017, allocations: 322.8 kB / 0.5916 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002772/0.202, allocations: 63.95 kB / 0.5917 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000326/0.2023, allocations: 81.2 kB / 0.5918 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000231/0.2026, allocations: 119.3 kB / 0.5919 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2026, allocations: 4 kB / 0.5919 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000526/0.2031, allocations: 236.7 kB / 0.5921 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.649e-05/0.2032, allocations: 59.41 kB / 0.5922 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.2032, allocations: 0 / 0.5922 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.2032, allocations: 4 kB / 0.5922 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002348/0.2035, allocations: 31.91 kB / 0.5922 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.176e-06/0.2035, allocations: 4.031 kB / 0.5922 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/0.2037, allocations: 27.84 kB / 0.5922 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.809e-05/0.2037, allocations: 8 kB / 0.5922 GB, free: 13.62 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,$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 9.598e-05/0.2038, allocations: 116.4 kB / 0.5923 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.931e-05/0.2038, allocations: 4 kB / 0.5923 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.959e-05/0.2039, allocations: 12.36 kB / 0.5924 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.2039, allocations: 8 kB / 0.5924 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.2039, allocations: 0 / 0.5924 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.2039, allocations: 0 / 0.5924 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001942/0.2041, allocations: 205.6 kB / 0.5926 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.2041, allocations: 0 / 0.5926 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001536/0.2043, allocations: 23.92 kB / 0.5926 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.2043, allocations: 4 kB / 0.5926 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.2043, allocations: 0 / 0.5926 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2043, allocations: 0 / 0.5926 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.2043, allocations: 8 kB / 0.5926 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006385/0.205, allocations: 252.8 kB / 0.5928 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.583e-05/0.205, allocations: 84.95 kB / 0.5929 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.078e-05/0.2051, allocations: 8 kB / 0.5929 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.2052, allocations: 24.02 kB / 0.5929 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.012e-05/0.2053, allocations: 15.97 kB / 0.593 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.228e-05/0.2053, allocations: 7.938 kB / 0.593 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.25e-05/0.2054, allocations: 95.27 kB / 0.5931 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2054, allocations: 0 / 0.5931 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002172/0.2056, allocations: 20 kB / 0.5931 GB, free: 12.65 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 (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.0009167/0.2065, allocations: 0.788 MB / 0.5938 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004831/0.207, allocations: 250.7 kB / 0.5941 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.207, allocations: 0 / 0.5941 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002065/0.2072, allocations: 63.91 kB / 0.5941 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002243/0.2075, allocations: 24.03 kB / 0.5942 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001651/0.2091, allocations: 0.9281 MB / 0.5951 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002445/0.2094, allocations: 0.7004 MB / 0.5958 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.591e-05/0.2095, allocations: 8.438 kB / 0.5958 GB, free: 9.766 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.074e-05/0.2095, allocations: 27.48 kB / 0.5958 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of SimCode: time 4.61e-07/0.2095, allocations: 0 / 0.5958 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01581/0.2254, allocations: 2.338 MB / 0.5981 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002956/0.2257, allocations: 169.2 kB / 0.5982 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.626/2.852, allocations: 0 / 0.5982 GB, free: 7.301 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/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) Environment - environmentSimulation: