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.004794/0.004794, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001317/0.001317, allocations: 198.1 kB / 16.68 MB, free: 5.977 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.501/1.501, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9743/0.9743, allocations: 135.6 MB / 426.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 67.89 kB / 0.5858 GB, free: 3.215 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.389/0.3909, allocations: 81.02 MB / 0.6649 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002188/0.3932, allocations: 1.563 MB / 0.6664 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000715/0.3939, allocations: 0.5307 MB / 0.6669 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.257e-05/0.394, allocations: 1.188 kB / 0.6669 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.741e-05/0.394, allocations: 7.875 kB / 0.6669 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.4e-05/0.3941, allocations: 18.2 kB / 0.6669 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002238/0.3943, allocations: 57.33 kB / 0.667 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001535/0.3945, allocations: 102.3 kB / 0.6671 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.239e-05/0.3946, allocations: 17.73 kB / 0.6671 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.287e-05/0.3947, allocations: 37.97 kB / 0.6672 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.377e-05/0.3947, allocations: 43.75 kB / 0.6672 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.538e-05/0.3948, allocations: 7.469 kB / 0.6672 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.905e-05/0.3948, allocations: 9.5 kB / 0.6672 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.147e-05/0.3948, allocations: 22.42 kB / 0.6672 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.125e-05/0.3949, allocations: 40 kB / 0.6673 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001239/0.395, allocations: 83.27 kB / 0.6674 GB, free: 4.875 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.395, allocations: 1.281 kB / 0.6674 GB, free: 4.875 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.453e-06/0.395, allocations: 4 kB / 0.6674 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.395, allocations: 0 / 0.6674 GB, free: 4.871 MB / 0.4981 GB 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.00062/0.3957, allocations: 458.8 kB / 0.6678 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.3957, allocations: 9.312 kB / 0.6678 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.072e-05/0.3957, allocations: 37.31 kB / 0.6678 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.714e-05/0.3958, allocations: 9.609 kB / 0.6678 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001654/0.396, allocations: 193.1 kB / 0.668 GB, free: 4.141 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.852e-05/0.396, allocations: 43.78 kB / 0.6681 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.333e-05/0.3961, allocations: 13.17 kB / 0.6681 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002525/0.3963, allocations: 98.44 kB / 0.6682 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.3963, allocations: 0 / 0.6682 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.3964, allocations: 1.281 kB / 0.6682 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.3964, allocations: 1.344 kB / 0.6682 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002928/0.3967, allocations: 76.77 kB / 0.6683 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000448/0.3971, allocations: 336.2 kB / 0.6686 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003646/0.3975, allocations: 94.05 kB / 0.6687 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001508/0.3977, allocations: 43.11 kB / 0.6687 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.3977, allocations: 1.625 kB / 0.6687 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000272/0.398, allocations: 122.4 kB / 0.6688 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.452e-06/0.398, allocations: 4 kB / 0.6688 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0005692/0.3985, allocations: 175.6 kB / 0.669 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.037e-05/0.3986, allocations: 57.91 kB / 0.6691 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.648e-05/0.3987, allocations: 126.3 kB / 0.6692 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.3987, allocations: 28.39 kB / 0.6692 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.362e-05/0.3987, allocations: 99.11 kB / 0.6693 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.3987, allocations: 31.5 kB / 0.6693 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.105e-05/0.3988, allocations: 32.05 kB / 0.6694 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.174e-05/0.3988, allocations: 325.1 kB / 0.6697 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001785/0.399, allocations: 47.56 kB / 0.6697 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/0.3992, allocations: 73.48 kB / 0.6698 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003158/0.3995, allocations: 169 kB / 0.6699 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3995, allocations: 1.781 kB / 0.6699 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000416/0.4, allocations: 229.9 kB / 0.6702 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.498e-05/0.4, allocations: 57.75 kB / 0.6702 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.4, allocations: 0 / 0.6702 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/0.4001, allocations: 5.203 kB / 0.6702 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.4002, allocations: 30.06 kB / 0.6703 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.4002, allocations: 0 / 0.6703 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.4003, allocations: 26.14 kB / 0.6703 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.434e-05/0.4004, allocations: 4 kB / 0.6703 GB, free: 2.227 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 7.39e-05/0.4004, allocations: 118.8 kB / 0.6704 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.827e-05/0.4005, allocations: 12.47 kB / 0.6704 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.146e-05/0.4005, allocations: 13.22 kB / 0.6704 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.4005, allocations: 2.5 kB / 0.6704 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.4005, allocations: 0 / 0.6704 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.4005, allocations: 3.938 kB / 0.6704 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001206/0.4007, allocations: 189.5 kB / 0.6706 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.4007, allocations: 3.938 kB / 0.6706 GB, free: 1.859 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001329/0.4008, allocations: 22.33 kB / 0.6706 GB, free: 1.852 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.4008, allocations: 1.375 kB / 0.6706 GB, free: 1.852 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.4008, allocations: 5.438 kB / 0.6706 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.4008, allocations: 3.984 kB / 0.6706 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4008, allocations: 3.984 kB / 0.6706 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000564/0.4014, allocations: 226.9 kB / 0.6709 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.906e-05/0.4014, allocations: 91.81 kB / 0.6709 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.404e-05/0.4015, allocations: 1.062 kB / 0.6709 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/0.4016, allocations: 20.58 kB / 0.671 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.653e-05/0.4017, allocations: 16.11 kB / 0.671 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/0.4017, allocations: 10.86 kB / 0.671 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.62e-05/0.4017, allocations: 99.02 kB / 0.6711 GB, free: 1.473 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.21e-07/0.4017, allocations: 4 kB / 0.6711 GB, free: 1.469 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000205/0.402, allocations: 23 kB / 0.6711 GB, free: 1.465 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.0007623/0.4027, allocations: 0.754 MB / 0.6719 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004561/0.4032, allocations: 226.4 kB / 0.6721 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4032, allocations: 0 / 0.6721 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001848/0.4034, allocations: 57.66 kB / 0.6721 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002536/0.4037, allocations: 26.95 kB / 0.6721 GB, free: 0.5781 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002426/0.4061, allocations: 1.719 MB / 0.6738 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.4064, allocations: 0.6917 MB / 0.6745 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 5.545e-05/0.4065, allocations: 6.156 kB / 0.6745 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.873e-05/0.4066, allocations: 29.45 kB / 0.6745 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of SimCode: time 9.42e-07/0.4066, allocations: 3.938 kB / 0.6745 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02602/0.4326, allocations: 2.793 MB / 0.6773 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.064/8.496, allocations: 10.28 kB / 0.6773 GB, free: 12.91 MB / 0.5137 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 & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Utilities_Math_Examples_MovingAverage.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1)