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.001173/0.001174, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001134/0.001133, allocations: 194.8 kB / 16.53 MB, free: 6.699 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.565/1.565, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8258/0.8258, allocations: 132.2 MB / 422.6 MB, free: 1.754 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 64.86 kB / 0.5019 GB, free: 3.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3999/0.4011, allocations: 80.2 MB / 0.5802 GB, free: 4.57 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.00324/0.4044, allocations: 1.577 MB / 0.5817 GB, free: 3.469 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001143/0.4056, allocations: 0.538 MB / 0.5823 GB, free: 3.09 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.642e-05/0.4057, allocations: 1.125 kB / 0.5823 GB, free: 3.09 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 3.978e-05/0.4057, allocations: 4.594 kB / 0.5823 GB, free: 3.086 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.4059, allocations: 15.59 kB / 0.5823 GB, free: 3.074 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003362/0.4062, allocations: 54.95 kB / 0.5823 GB, free: 3.043 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002059/0.4064, allocations: 108.4 kB / 0.5824 GB, free: 2.992 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.4066, allocations: 16.02 kB / 0.5824 GB, free: 2.984 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.087e-05/0.4066, allocations: 33.66 kB / 0.5825 GB, free: 2.973 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.946e-05/0.4068, allocations: 42.75 kB / 0.5825 GB, free: 2.953 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.169e-05/0.4068, allocations: 8.531 kB / 0.5825 GB, free: 2.953 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.162e-05/0.4068, allocations: 8.938 kB / 0.5825 GB, free: 2.953 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.393e-05/0.4069, allocations: 19.27 kB / 0.5826 GB, free: 2.941 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.24e-05/0.4069, allocations: 37.81 kB / 0.5826 GB, free: 2.918 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001705/0.4071, allocations: 84.59 kB / 0.5827 GB, free: 2.883 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.4071, allocations: 4 kB / 0.5827 GB, free: 2.879 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.4071, allocations: 0 / 0.5827 GB, free: 2.879 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.4071, allocations: 3.938 kB / 0.5827 GB, free: 2.875 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.0007053/0.4078, allocations: 461 kB / 0.5831 GB, free: 2.43 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.4079, allocations: 9.062 kB / 0.5831 GB, free: 2.43 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.957e-05/0.4079, allocations: 38.56 kB / 0.5832 GB, free: 2.387 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.618e-05/0.408, allocations: 10.67 kB / 0.5832 GB, free: 2.383 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000172/0.4082, allocations: 188.3 kB / 0.5834 GB, free: 2.176 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.548e-05/0.4083, allocations: 41.86 kB / 0.5834 GB, free: 2.137 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.886e-05/0.4083, allocations: 10.3 kB / 0.5834 GB, free: 2.133 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003063/0.4086, allocations: 97.22 kB / 0.5835 GB, free: 2.082 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.4086, allocations: 1.344 kB / 0.5835 GB, free: 2.082 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.4087, allocations: 0.6875 kB / 0.5835 GB, free: 2.082 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.4087, allocations: 1.891 kB / 0.5835 GB, free: 2.082 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003422/0.409, allocations: 75.22 kB / 0.5836 GB, free: 2.066 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005959/0.4096, allocations: 339.7 kB / 0.5839 GB, free: 1.766 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004074/0.41, allocations: 95.23 kB / 0.584 GB, free: 1.723 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001709/0.4102, allocations: 49.62 kB / 0.584 GB, free: 1.703 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.521e-05/0.4103, allocations: 1.641 kB / 0.584 GB, free: 1.703 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004112/0.4107, allocations: 133.1 kB / 0.5842 GB, free: 1.625 MB / 430.1 MB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/0.4107, allocations: 0 / 0.5842 GB, free: 1.625 MB / 430.1 MB Notification: Performance of matching and sorting (n=9): time 0.0006237/0.4113, allocations: 170.7 kB / 0.5843 GB, free: 1.566 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.169e-05/0.4114, allocations: 58.47 kB / 0.5844 GB, free: 1.5 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.302e-05/0.4115, allocations: 130.7 kB / 0.5845 GB, free: 1.387 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.153e-05/0.4115, allocations: 28.45 kB / 0.5845 GB, free: 1.355 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.062e-05/0.4116, allocations: 93.58 kB / 0.5846 GB, free: 1.266 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.605e-05/0.4116, allocations: 29.88 kB / 0.5847 GB, free: 1.242 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.639e-05/0.4117, allocations: 31.53 kB / 0.5847 GB, free: 1.219 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.073e-05/0.4118, allocations: 323.5 kB / 0.585 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002208/0.412, allocations: 50.89 kB / 0.585 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002221/0.4122, allocations: 71.12 kB / 0.5851 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004023/0.4126, allocations: 161.5 kB / 0.5853 GB, free: 0.75 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.4126, allocations: 0 / 0.5853 GB, free: 0.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005751/0.4132, allocations: 228.6 kB / 0.5855 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.805e-05/0.4133, allocations: 59.61 kB / 0.5855 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.4133, allocations: 0.875 kB / 0.5855 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.059e-05/0.4134, allocations: 0.875 kB / 0.5855 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001732/0.4135, allocations: 26.42 kB / 0.5856 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.908e-06/0.4136, allocations: 2.328 kB / 0.5856 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001603/0.4137, allocations: 33.91 kB / 0.5856 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.115e-05/0.4137, allocations: 3.969 kB / 0.5856 GB, free: 0.5273 MB / 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,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.0001189/0.4139, allocations: 122.2 kB / 0.5857 GB, free: 420 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.342e-05/0.4139, allocations: 3.5 kB / 0.5857 GB, free: 420 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.814e-05/0.414, allocations: 16.09 kB / 0.5857 GB, free: 400 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.414, allocations: 4.922 kB / 0.5857 GB, free: 396 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.414, allocations: 0.6562 kB / 0.5857 GB, free: 396 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.414, allocations: 5.453 kB / 0.5857 GB, free: 392 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002037/0.4142, allocations: 199.8 kB / 0.5859 GB, free: 176 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.4142, allocations: 4.641 kB / 0.5859 GB, free: 172 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000155/0.4144, allocations: 23.34 kB / 0.586 GB, free: 168 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.4144, allocations: 0 / 0.586 GB, free: 168 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.4144, allocations: 6.672 kB / 0.586 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.4144, allocations: 1.391 kB / 0.586 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.4144, allocations: 0 / 0.586 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000718/0.4151, allocations: 224.6 kB / 0.5862 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.432e-05/0.4153, allocations: 89.19 kB / 0.5863 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.422e-05/0.4153, allocations: 5.875 kB / 0.5863 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.4154, allocations: 13.78 kB / 0.5863 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.911e-05/0.4155, allocations: 16.81 kB / 0.5863 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.4156, allocations: 8.984 kB / 0.5863 GB, free: 15.93 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.798e-05/0.4157, allocations: 101.7 kB / 0.5864 GB, free: 15.85 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4157, allocations: 0 / 0.5864 GB, free: 15.85 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002482/0.4159, allocations: 23.05 kB / 0.5864 GB, free: 15.84 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 (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.001009/0.4169, allocations: 0.749 MB / 0.5872 GB, free: 15.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006137/0.4176, allocations: 231.8 kB / 0.5874 GB, free: 15.05 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.4176, allocations: 0.5938 kB / 0.5874 GB, free: 15.05 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002305/0.4178, allocations: 60.5 kB / 0.5874 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002938/0.4181, allocations: 26.47 kB / 0.5875 GB, free: 15.03 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002725/0.4208, allocations: 1.701 MB / 0.5891 GB, free: 13.67 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002482/0.4211, allocations: 0.696 MB / 0.5898 GB, free: 12.97 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.383e-05/0.4212, allocations: 8.047 kB / 0.5898 GB, free: 12.97 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.644e-05/0.4213, allocations: 28.36 kB / 0.5898 GB, free: 12.95 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4213, allocations: 0 / 0.5898 GB, free: 12.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01982/0.4411, allocations: 2.754 MB / 0.5925 GB, free: 12.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.444/7.885, allocations: 2.281 kB / 0.5925 GB, free: 12.52 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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage.fmu > IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1)