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.0008937/0.0008938, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.006826/0.006826, allocations: 168.9 kB / 16.26 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.468/1.468, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.968/0.968, allocations: 135.3 MB / 426.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000357/0.0003569, allocations: 8.625 kB / 0.5077 GB, free: 4.68 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.1985, allocations: 82.32 MB / 0.5881 GB, free: 2.527 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.001976/0.2005, allocations: 1.294 MB / 0.5893 GB, free: 1.219 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.2016, allocations: 0.5144 MB / 0.5898 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.591e-05/0.2017, allocations: 0 / 0.5898 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.455e-05/0.2017, allocations: 3.938 kB / 0.5899 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001187/0.2018, allocations: 7.938 kB / 0.5899 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000274/0.2021, allocations: 51.88 kB / 0.5899 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001733/0.2023, allocations: 91.77 kB / 0.59 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.2024, allocations: 12.17 kB / 0.59 GB, free: 0.5352 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.53e-05/0.2025, allocations: 35.83 kB / 0.59 GB, free: 0.5 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.243e-05/0.2026, allocations: 39.83 kB / 0.5901 GB, free: 472 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.65e-05/0.2027, allocations: 4 kB / 0.5901 GB, free: 468 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.922e-05/0.2027, allocations: 8 kB / 0.5901 GB, free: 460 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.18e-05/0.2027, allocations: 15.92 kB / 0.5901 GB, free: 444 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.177e-05/0.2028, allocations: 61.53 kB / 0.5902 GB, free: 376 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001334/0.2029, allocations: 79.97 kB / 0.5902 GB, free: 296 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.2029, allocations: 0 / 0.5902 GB, free: 296 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.203, allocations: 0 / 0.5902 GB, free: 296 kB / 494.1 MB Notification: Performance of Transformations before backend: time 5.481e-06/0.203, allocations: 0 / 0.5902 GB, free: 296 kB / 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.000774/0.2037, allocations: 446.7 kB / 0.5907 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.2038, allocations: 12.03 kB / 0.5907 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.266e-05/0.2039, allocations: 38.73 kB / 0.5907 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.329e-05/0.2039, allocations: 12.84 kB / 0.5907 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002159/0.2041, allocations: 196.1 kB / 0.5909 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.261e-05/0.2042, allocations: 34.27 kB / 0.5909 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.317e-05/0.2043, allocations: 16.12 kB / 0.591 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002963/0.2046, allocations: 101.6 kB / 0.5911 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.2046, allocations: 0 / 0.5911 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.824e-05/0.2046, allocations: 7.984 kB / 0.5911 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.2046, allocations: 4 kB / 0.5911 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003283/0.205, allocations: 95.81 kB / 0.5912 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005834/0.2056, allocations: 344.6 kB / 0.5915 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004064/0.206, allocations: 102.6 kB / 0.5916 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/0.2062, allocations: 64.78 kB / 0.5917 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.2062, allocations: 0 / 0.5917 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003365/0.2066, allocations: 127.3 kB / 0.5918 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/0.2066, allocations: 0 / 0.5918 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0006425/0.2072, allocations: 201.4 kB / 0.592 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.583e-05/0.2073, allocations: 63.39 kB / 0.592 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.955e-05/0.2074, allocations: 122.1 kB / 0.5921 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.2074, allocations: 29.7 kB / 0.5922 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.506e-05/0.2075, allocations: 99.97 kB / 0.5923 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.153e-05/0.2075, allocations: 23.7 kB / 0.5923 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.623e-05/0.2076, allocations: 21.7 kB / 0.5923 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.2077, allocations: 326.8 kB / 0.5926 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001958/0.2079, allocations: 63.91 kB / 0.5927 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000205/0.2081, allocations: 85.59 kB / 0.5928 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003685/0.2085, allocations: 176.2 kB / 0.5929 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2085, allocations: 8 kB / 0.5929 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004986/0.209, allocations: 236.9 kB / 0.5932 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.712e-05/0.209, allocations: 61 kB / 0.5932 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.2091, allocations: 7.984 kB / 0.5932 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.2091, allocations: 0 / 0.5932 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.2092, allocations: 27.98 kB / 0.5933 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.2092, allocations: 0 / 0.5933 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001391/0.2094, allocations: 27.83 kB / 0.5933 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/0.2094, allocations: 8.375 kB / 0.5933 GB, free: 12.87 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 0.0001112/0.2095, allocations: 125.8 kB / 0.5934 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.999e-05/0.2095, allocations: 7.906 kB / 0.5934 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.085e-05/0.2096, allocations: 12.38 kB / 0.5934 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.2096, allocations: 7.922 kB / 0.5934 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.2096, allocations: 0 / 0.5934 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.2096, allocations: 3.938 kB / 0.5934 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001709/0.2098, allocations: 193.6 kB / 0.5936 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.2098, allocations: 0 / 0.5936 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001428/0.21, allocations: 27.98 kB / 0.5937 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.21, allocations: 0 / 0.5937 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.678e-05/0.21, allocations: 3.984 kB / 0.5937 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.21, allocations: 3.938 kB / 0.5937 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.21, allocations: 0 / 0.5937 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006313/0.2106, allocations: 252.8 kB / 0.5939 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.06e-05/0.2107, allocations: 88.95 kB / 0.594 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.354e-05/0.2107, allocations: 4.031 kB / 0.594 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/0.2109, allocations: 19.98 kB / 0.594 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.016e-05/0.2109, allocations: 15.97 kB / 0.594 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.448e-05/0.211, allocations: 15.88 kB / 0.594 GB, free: 12 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.115e-05/0.211, allocations: 91.27 kB / 0.5941 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.211, allocations: 4 kB / 0.5941 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002102/0.2112, allocations: 24 kB / 0.5942 GB, free: 11.88 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.000886/0.2121, allocations: 0.7724 MB / 0.5949 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004764/0.2126, allocations: 250.5 kB / 0.5951 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2126, allocations: 192 / 0.5951 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002019/0.2128, allocations: 75.89 kB / 0.5952 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.2131, allocations: 31.58 kB / 0.5952 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002417/0.2155, allocations: 1.774 MB / 0.597 GB, free: 8.836 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002629/0.2158, allocations: 0.6926 MB / 0.5977 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.376e-05/0.2159, allocations: 16.36 kB / 0.5977 GB, free: 8.102 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.524e-05/0.216, allocations: 23.44 kB / 0.5977 GB, free: 8.078 MB / 0.4981 GB Notification: Performance of SimCode: time 4.2e-07/0.216, allocations: 0 / 0.5977 GB, free: 8.078 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2732/0.4892, allocations: 2.422 MB / 0.6001 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002864/0.4895, allocations: 182.8 kB / 0.6002 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.651/2.14, allocations: 4 kB / 0.6002 GB, free: 5.539 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)