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.007563/0.007563, allocations: 98.56 kB / 15.73 MB, free: 6.004 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.001871/0.001871, allocations: 201.4 kB / 16.68 MB, free: 5.934 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9863/0.9863, allocations: 135.6 MB / 426.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 63.91 kB / 0.5858 GB, free: 3.23 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3939/0.3958, allocations: 81.03 MB / 0.6649 GB, free: 7.191 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002608/0.3984, allocations: 1.568 MB / 0.6664 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008512/0.3993, allocations: 0.5228 MB / 0.6669 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.996e-05/0.3994, allocations: 5.094 kB / 0.6669 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.882e-05/0.3994, allocations: 7.875 kB / 0.6669 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.814e-05/0.3995, allocations: 18.05 kB / 0.667 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002568/0.3998, allocations: 53.25 kB / 0.667 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001899/0.4, allocations: 101.6 kB / 0.6671 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.4001, allocations: 26.75 kB / 0.6671 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.636e-05/0.4002, allocations: 46.23 kB / 0.6672 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.918e-05/0.4003, allocations: 34.67 kB / 0.6672 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.605e-05/0.4003, allocations: 7.938 kB / 0.6672 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.285e-05/0.4003, allocations: 9.375 kB / 0.6672 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.202e-05/0.4004, allocations: 19.11 kB / 0.6672 GB, free: 5.336 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.623e-05/0.4004, allocations: 47.77 kB / 0.6673 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001469/0.4006, allocations: 79.97 kB / 0.6674 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.4006, allocations: 0 / 0.6674 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.286e-06/0.4006, allocations: 1.344 kB / 0.6674 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.182e-05/0.4006, allocations: 0 / 0.6674 GB, free: 5.238 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.000698/0.4013, allocations: 463 kB / 0.6678 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.4014, allocations: 9.812 kB / 0.6678 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.881e-05/0.4014, allocations: 35.64 kB / 0.6678 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.183e-05/0.4015, allocations: 14.3 kB / 0.6679 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001866/0.4017, allocations: 197 kB / 0.668 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.282e-05/0.4017, allocations: 31.8 kB / 0.6681 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.922e-05/0.4018, allocations: 21.52 kB / 0.6681 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002616/0.402, allocations: 94.16 kB / 0.6682 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.4021, allocations: 0 / 0.6682 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.4021, allocations: 5.531 kB / 0.6682 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.4021, allocations: 1.344 kB / 0.6682 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002972/0.4024, allocations: 72.11 kB / 0.6683 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000473/0.4029, allocations: 340.1 kB / 0.6686 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003703/0.4033, allocations: 86.33 kB / 0.6687 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.4034, allocations: 51.41 kB / 0.6687 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.873e-05/0.4034, allocations: 1.156 kB / 0.6687 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002708/0.4037, allocations: 122.5 kB / 0.6688 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.683e-06/0.4037, allocations: 1.062 kB / 0.6688 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0005964/0.4043, allocations: 178.6 kB / 0.669 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.39e-05/0.4044, allocations: 54.12 kB / 0.6691 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.744e-05/0.4045, allocations: 128.8 kB / 0.6692 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.4045, allocations: 32.45 kB / 0.6692 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.849e-05/0.4045, allocations: 91 kB / 0.6693 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.851e-05/0.4046, allocations: 35.8 kB / 0.6693 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.859e-05/0.4046, allocations: 31.77 kB / 0.6694 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.457e-05/0.4047, allocations: 325.5 kB / 0.6697 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002221/0.4049, allocations: 52.05 kB / 0.6697 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001883/0.4051, allocations: 65.33 kB / 0.6698 GB, free: 2.98 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003388/0.4055, allocations: 167.3 kB / 0.6699 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.4055, allocations: 0 / 0.6699 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004513/0.406, allocations: 227 kB / 0.6702 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.478e-05/0.406, allocations: 67.86 kB / 0.6702 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.406, allocations: 1.219 kB / 0.6702 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.406, allocations: 1.156 kB / 0.6702 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.4062, allocations: 24.45 kB / 0.6703 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.024e-06/0.4062, allocations: 1.219 kB / 0.6703 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001312/0.4063, allocations: 25.2 kB / 0.6703 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/0.4063, allocations: 3.844 kB / 0.6703 GB, free: 2.598 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.2e-05/0.4064, allocations: 127.9 kB / 0.6704 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.77e-05/0.4064, allocations: 7.891 kB / 0.6704 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.516e-05/0.4065, allocations: 14.62 kB / 0.6704 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.4065, allocations: 1.281 kB / 0.6704 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.4065, allocations: 0 / 0.6704 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.4065, allocations: 5.375 kB / 0.6704 GB, free: 2.449 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001276/0.4066, allocations: 193 kB / 0.6706 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.4066, allocations: 0 / 0.6706 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001354/0.4068, allocations: 21.33 kB / 0.6706 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.614e-06/0.4068, allocations: 9.391 kB / 0.6706 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.4068, allocations: 1.656 kB / 0.6706 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.4068, allocations: 0 / 0.6706 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.4068, allocations: 0 / 0.6706 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005883/0.4074, allocations: 235.9 kB / 0.6709 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.016e-05/0.4075, allocations: 87.78 kB / 0.671 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.35e-05/0.4075, allocations: 1.125 kB / 0.671 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001198/0.4076, allocations: 12.3 kB / 0.671 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.847e-05/0.4077, allocations: 27.8 kB / 0.671 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.4077, allocations: 6.062 kB / 0.671 GB, free: 1.926 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.318e-05/0.4078, allocations: 96.77 kB / 0.6711 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4078, allocations: 0 / 0.6711 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002113/0.408, allocations: 22.72 kB / 0.6711 GB, free: 1.84 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.0007663/0.4088, allocations: 0.7581 MB / 0.6719 GB, free: 1.164 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00049/0.4093, allocations: 230.3 kB / 0.6721 GB, free: 0.9844 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.4093, allocations: 3.938 kB / 0.6721 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002045/0.4095, allocations: 61.75 kB / 0.6721 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002612/0.4098, allocations: 20.52 kB / 0.6722 GB, free: 0.9414 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00234/0.4121, allocations: 1.716 MB / 0.6738 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003335/0.4125, allocations: 0.6918 MB / 0.6745 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 5.867e-05/0.4125, allocations: 9.922 kB / 0.6745 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.71e-05/0.4126, allocations: 25.41 kB / 0.6745 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of SimCode: time 7.12e-07/0.4126, allocations: 0 / 0.6745 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0904/0.503, allocations: 2.794 MB / 0.6773 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.18/9.683, allocations: 1.344 kB / 0.6773 GB, free: 13.28 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 & /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)