Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS_Utilities_Math_Examples_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.MovingAverage,fileNamePrefix="IDEAS_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.001484/0.001484, allocations: 100.2 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.001708/0.001709, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.578/2.578, allocations: 223.2 MB / 239.9 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.395/1.395, allocations: 132.3 MB / 423.2 MB, free: 2.188 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003564/0.0003566, allocations: 8 kB / 0.5033 GB, free: 4.223 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6251/0.6254, allocations: 81.57 MB / 0.583 GB, free: 3.898 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002063/0.6276, allocations: 1.274 MB / 0.5842 GB, free: 2.977 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009242/0.6285, allocations: 0.501 MB / 0.5847 GB, free: 2.625 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.234e-05/0.6286, allocations: 4.812 kB / 0.5847 GB, free: 2.621 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.067e-05/0.6287, allocations: 1.953 kB / 0.5847 GB, free: 2.621 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001141/0.6288, allocations: 13.12 kB / 0.5847 GB, free: 2.613 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003031/0.6291, allocations: 39.52 kB / 0.5848 GB, free: 2.594 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001739/0.6293, allocations: 69.09 kB / 0.5848 GB, free: 2.555 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.6294, allocations: 10.2 kB / 0.5848 GB, free: 2.551 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.61e-05/0.6295, allocations: 32.66 kB / 0.5849 GB, free: 2.539 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.6296, allocations: 38.98 kB / 0.5849 GB, free: 2.523 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.439e-05/0.6297, allocations: 3.656 kB / 0.5849 GB, free: 2.523 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.008e-05/0.6297, allocations: 4.75 kB / 0.5849 GB, free: 2.523 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.502e-05/0.6297, allocations: 16.47 kB / 0.5849 GB, free: 2.516 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.918e-05/0.6298, allocations: 34.94 kB / 0.585 GB, free: 2.48 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001567/0.63, allocations: 58.61 kB / 0.585 GB, free: 2.465 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.63, allocations: 4 kB / 0.585 GB, free: 2.461 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.63, allocations: 0 / 0.585 GB, free: 2.461 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.63, allocations: 1.156 kB / 0.585 GB, free: 2.461 MB / 430.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.0007668/0.6308, allocations: 451.5 kB / 0.5854 GB, free: 2.023 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.6309, allocations: 13.09 kB / 0.5855 GB, free: 2.02 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.395e-05/0.6309, allocations: 34.08 kB / 0.5855 GB, free: 1.98 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.054e-05/0.631, allocations: 9.953 kB / 0.5855 GB, free: 1.977 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/0.6312, allocations: 193.8 kB / 0.5857 GB, free: 1.762 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.786e-05/0.6313, allocations: 36.09 kB / 0.5857 GB, free: 1.73 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.513e-05/0.6313, allocations: 4.781 kB / 0.5857 GB, free: 1.73 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003427/0.6317, allocations: 108.8 kB / 0.5858 GB, free: 1.676 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.6317, allocations: 0.75 kB / 0.5858 GB, free: 1.676 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.655e-05/0.6317, allocations: 5.531 kB / 0.5858 GB, free: 1.672 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.6317, allocations: 1.531 kB / 0.5858 GB, free: 1.672 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003676/0.6321, allocations: 92.09 kB / 0.5859 GB, free: 1.656 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000599/0.6327, allocations: 348.3 kB / 0.5863 GB, free: 1.352 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004809/0.6332, allocations: 100.2 kB / 0.5864 GB, free: 1.316 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.409e-05/0.6332, allocations: 9.5 kB / 0.5864 GB, free: 1.309 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000411/0.6337, allocations: 128.7 kB / 0.5865 GB, free: 1.242 MB / 430.1 MB Notification: Performance of pre-optimization done (n=9): time 1.683e-06/0.6337, allocations: 0 / 0.5865 GB, free: 1.242 MB / 430.1 MB Notification: Performance of matching and sorting (n=9): time 0.0007779/0.6344, allocations: 210.4 kB / 0.5867 GB, free: 1.168 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/0.6345, allocations: 54.19 kB / 0.5867 GB, free: 1.105 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.6346, allocations: 127.6 kB / 0.5869 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.434e-05/0.6346, allocations: 31.42 kB / 0.5869 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.189e-05/0.6347, allocations: 93.44 kB / 0.587 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.584e-05/0.6347, allocations: 29.66 kB / 0.587 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.032e-05/0.6348, allocations: 4.75 kB / 0.587 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.238e-05/0.6348, allocations: 324.6 kB / 0.5873 GB, free: 0.5234 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002144/0.6351, allocations: 54.25 kB / 0.5874 GB, free: 0.5156 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.6353, allocations: 85.27 kB / 0.5875 GB, free: 488 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002281/0.6355, allocations: 113.8 kB / 0.5876 GB, free: 408 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.6355, allocations: 0 / 0.5876 GB, free: 408 kB / 430.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005597/0.6361, allocations: 237 kB / 0.5878 GB, free: 272 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.094e-05/0.6362, allocations: 60.75 kB / 0.5878 GB, free: 208 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.6362, allocations: 0 / 0.5878 GB, free: 208 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.6362, allocations: 5.438 kB / 0.5879 GB, free: 204 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001561/0.6364, allocations: 33.3 kB / 0.5879 GB, free: 196 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/0.6364, allocations: 6.234 kB / 0.5879 GB, free: 192 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001554/0.6366, allocations: 31.81 kB / 0.5879 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.6366, allocations: 2.438 kB / 0.5879 GB, free: 180 kB / 430.1 MB 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.273e-05/0.6367, allocations: 124.8 kB / 0.588 GB, free: 56 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.939e-05/0.6367, allocations: 4.031 kB / 0.588 GB, free: 56 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.506e-05/0.6368, allocations: 15.83 kB / 0.5881 GB, free: 36 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.6368, allocations: 0.5 kB / 0.5881 GB, free: 36 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.6368, allocations: 1.156 kB / 0.5881 GB, free: 36 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.6368, allocations: 8.641 kB / 0.5881 GB, free: 28 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002669/0.6371, allocations: 192.8 kB / 0.5883 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.6371, allocations: 0 / 0.5883 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001628/0.6372, allocations: 30.77 kB / 0.5883 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.6373, allocations: 4.703 kB / 0.5883 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.703e-05/0.6373, allocations: 6.188 kB / 0.5883 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.668e-06/0.6373, allocations: 5.391 kB / 0.5883 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.6373, allocations: 0.6562 kB / 0.5883 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007186/0.638, allocations: 247.9 kB / 0.5885 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.549e-05/0.6381, allocations: 84.08 kB / 0.5886 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.655e-05/0.6381, allocations: 7.547 kB / 0.5886 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001355/0.6383, allocations: 16.69 kB / 0.5886 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.957e-05/0.6384, allocations: 18.75 kB / 0.5887 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/0.6384, allocations: 7.906 kB / 0.5887 GB, free: 15.58 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.354e-05/0.6385, allocations: 99.95 kB / 0.5888 GB, free: 15.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6385, allocations: 0 / 0.5888 GB, free: 15.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002338/0.6387, allocations: 18.09 kB / 0.5888 GB, free: 15.5 MB / 446.1 MB 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.001128/0.6399, allocations: 0.7914 MB / 0.5895 GB, free: 14.85 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006055/0.6405, allocations: 246.1 kB / 0.5898 GB, free: 14.69 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.6405, allocations: 3.938 kB / 0.5898 GB, free: 14.69 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002298/0.6407, allocations: 62.94 kB / 0.5898 GB, free: 14.68 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002369/0.641, allocations: 17.34 kB / 0.5899 GB, free: 14.67 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.6429, allocations: 0.9415 MB / 0.5908 GB, free: 14.03 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.6433, allocations: 0.701 MB / 0.5915 GB, free: 13.33 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.749e-05/0.6433, allocations: 7.5 kB / 0.5915 GB, free: 13.33 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.336e-05/0.6434, allocations: 22.03 kB / 0.5915 GB, free: 13.31 MB / 446.1 MB Notification: Performance of SimCode: time 4.1e-07/0.6434, allocations: 0.5 kB / 0.5915 GB, free: 13.31 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0144/0.6578, allocations: 2.322 MB / 0.5938 GB, free: 13.11 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002034/0.6581, allocations: 164.2 kB / 0.5939 GB, free: 12.87 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.723/3.381, allocations: 0 / 0.5939 GB, free: 12.87 MB / 446.1 MB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage.fmu > IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1) Environment - environmentSimulation: