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.0007822/0.0007856, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.0008875/0.0008874, allocations: 172.7 kB / 15.95 MB, free: 208 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.324/1.324, allocations: 223.2 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7469/0.7469, allocations: 132.3 MB / 423.4 MB, free: 2.07 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003047/0.0003049, allocations: 8.219 kB / 0.5035 GB, free: 4.141 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4258/0.4262, allocations: 81.58 MB / 0.5832 GB, free: 3.984 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.00173/0.4279, allocations: 1.276 MB / 0.5844 GB, free: 3.059 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007735/0.4287, allocations: 0.5063 MB / 0.5849 GB, free: 2.699 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.298e-05/0.4288, allocations: 1.938 kB / 0.5849 GB, free: 2.699 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.451e-05/0.4289, allocations: 5.391 kB / 0.5849 GB, free: 2.695 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001027/0.429, allocations: 11.33 kB / 0.5849 GB, free: 2.688 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002422/0.4292, allocations: 41.81 kB / 0.585 GB, free: 2.664 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001864/0.4294, allocations: 90.92 kB / 0.585 GB, free: 2.621 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.4295, allocations: 7.844 kB / 0.585 GB, free: 2.621 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.292e-05/0.4296, allocations: 32.88 kB / 0.5851 GB, free: 2.609 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.07e-05/0.4297, allocations: 42.39 kB / 0.5851 GB, free: 2.59 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.014e-05/0.4297, allocations: 3.906 kB / 0.5851 GB, free: 2.59 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.589e-05/0.4298, allocations: 4.312 kB / 0.5851 GB, free: 2.59 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.877e-05/0.4298, allocations: 16.16 kB / 0.5851 GB, free: 2.582 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.332e-05/0.4298, allocations: 35.53 kB / 0.5852 GB, free: 2.547 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001003/0.4299, allocations: 46.45 kB / 0.5852 GB, free: 2.543 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.4299, allocations: 4 kB / 0.5852 GB, free: 2.539 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.43, allocations: 5.031 kB / 0.5852 GB, free: 2.535 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.43, allocations: 0 / 0.5852 GB, free: 2.535 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.0006176/0.4306, allocations: 455 kB / 0.5857 GB, free: 2.094 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.4306, allocations: 14.3 kB / 0.5857 GB, free: 2.09 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.631e-05/0.4307, allocations: 42.03 kB / 0.5857 GB, free: 2.043 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.14e-05/0.4307, allocations: 13.95 kB / 0.5857 GB, free: 2.035 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001655/0.4309, allocations: 181.6 kB / 0.5859 GB, free: 1.832 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.618e-05/0.431, allocations: 39.81 kB / 0.5859 GB, free: 1.797 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.618e-05/0.431, allocations: 5.625 kB / 0.5859 GB, free: 1.797 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002785/0.4313, allocations: 113.8 kB / 0.5861 GB, free: 1.738 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.4313, allocations: 0.6562 kB / 0.5861 GB, free: 1.738 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.4313, allocations: 2.203 kB / 0.5861 GB, free: 1.738 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.4314, allocations: 0 / 0.5861 GB, free: 1.738 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003075/0.4317, allocations: 92.61 kB / 0.5861 GB, free: 1.723 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005005/0.4322, allocations: 344.1 kB / 0.5865 GB, free: 1.422 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00037/0.4326, allocations: 111.8 kB / 0.5866 GB, free: 1.375 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.4327, allocations: 57.11 kB / 0.5866 GB, free: 1.355 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.4328, allocations: 1.859 kB / 0.5866 GB, free: 1.355 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003389/0.4331, allocations: 128.6 kB / 0.5868 GB, free: 1.289 MB / 430.1 MB Notification: Performance of pre-optimization done (n=9): time 1.523e-06/0.4331, allocations: 0 / 0.5868 GB, free: 1.289 MB / 430.1 MB Notification: Performance of matching and sorting (n=9): time 0.0006028/0.4337, allocations: 201.9 kB / 0.587 GB, free: 1.223 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.974e-05/0.4338, allocations: 58.16 kB / 0.587 GB, free: 1.156 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.373e-05/0.4339, allocations: 128.7 kB / 0.5871 GB, free: 1.043 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.4339, allocations: 31.88 kB / 0.5872 GB, free: 1.008 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.019e-05/0.4339, allocations: 93.88 kB / 0.5873 GB, free: 0.918 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.752e-05/0.434, allocations: 33.56 kB / 0.5873 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.826e-06/0.434, allocations: 1.156 kB / 0.5873 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.022e-05/0.434, allocations: 320 kB / 0.5876 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000183/0.4342, allocations: 62.95 kB / 0.5876 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.4344, allocations: 73.58 kB / 0.5877 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002011/0.4346, allocations: 121.1 kB / 0.5878 GB, free: 456 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.4346, allocations: 0 / 0.5878 GB, free: 456 kB / 430.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004568/0.4351, allocations: 240.5 kB / 0.5881 GB, free: 320 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.52e-05/0.4351, allocations: 63 kB / 0.5881 GB, free: 252 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.279e-06/0.4352, allocations: 0.7969 kB / 0.5881 GB, free: 252 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.4352, allocations: 5.203 kB / 0.5881 GB, free: 248 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/0.4353, allocations: 31.08 kB / 0.5882 GB, free: 244 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.4353, allocations: 2.125 kB / 0.5882 GB, free: 244 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001276/0.4355, allocations: 33.92 kB / 0.5882 GB, free: 228 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.4355, allocations: 6.938 kB / 0.5882 GB, free: 224 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 7.15e-05/0.4356, allocations: 126.6 kB / 0.5883 GB, free: 96 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.69e-05/0.4356, allocations: 3.844 kB / 0.5883 GB, free: 96 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.637e-05/0.4356, allocations: 11.92 kB / 0.5883 GB, free: 80 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.4356, allocations: 5.391 kB / 0.5883 GB, free: 76 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.4356, allocations: 0 / 0.5883 GB, free: 76 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.4356, allocations: 6.125 kB / 0.5883 GB, free: 72 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001836/0.4358, allocations: 195.6 kB / 0.5885 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.4358, allocations: 0 / 0.5885 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001433/0.436, allocations: 23.83 kB / 0.5886 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.436, allocations: 1 kB / 0.5886 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.436, allocations: 1.719 kB / 0.5886 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.436, allocations: 1.031 kB / 0.5886 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.436, allocations: 3.953 kB / 0.5886 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006189/0.4367, allocations: 248.8 kB / 0.5888 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.586e-05/0.4367, allocations: 84.42 kB / 0.5889 GB, free: 15.65 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.496e-05/0.4368, allocations: 2.172 kB / 0.5889 GB, free: 15.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.4369, allocations: 20.8 kB / 0.5889 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.383e-05/0.437, allocations: 19.12 kB / 0.5889 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.705e-05/0.437, allocations: 11.23 kB / 0.5889 GB, free: 15.63 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.088e-05/0.4371, allocations: 94.52 kB / 0.589 GB, free: 15.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.014e-06/0.4371, allocations: 0 / 0.589 GB, free: 15.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002162/0.4373, allocations: 27.16 kB / 0.589 GB, free: 15.55 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.0008678/0.4382, allocations: 0.7756 MB / 0.5898 GB, free: 14.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004805/0.4387, allocations: 247.8 kB / 0.59 GB, free: 14.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.4387, allocations: 1.5 kB / 0.59 GB, free: 14.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002005/0.4389, allocations: 67 kB / 0.5901 GB, free: 14.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002571/0.4391, allocations: 24.34 kB / 0.5901 GB, free: 14.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001586/0.4407, allocations: 0.7888 MB / 0.5909 GB, free: 14.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.441, allocations: 0.6933 MB / 0.5916 GB, free: 13.54 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.725e-05/0.4411, allocations: 6.938 kB / 0.5916 GB, free: 13.54 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.102e-05/0.4412, allocations: 27.2 kB / 0.5916 GB, free: 13.52 MB / 446.1 MB Notification: Performance of SimCode: time 5.49e-06/0.4412, allocations: 4 kB / 0.5916 GB, free: 13.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01338/0.4546, allocations: 2.346 MB / 0.5939 GB, free: 13.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002049/0.4548, allocations: 164.5 kB / 0.5941 GB, free: 13.07 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.685/2.14, allocations: 0 / 0.5941 GB, free: 13.07 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: