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.007839/0.007839, allocations: 100.2 kB / 15.73 MB, free: 6.031 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.002477/0.002477, allocations: 187.7 kB / 16.67 MB, free: 5.965 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.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 4.152 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7691/0.7691, allocations: 132.2 MB / 422.7 MB, free: 1.625 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 63.91 kB / 0.5809 GB, free: 8.02 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4645/0.4658, allocations: 80.2 MB / 0.6592 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002911/0.4687, allocations: 1.575 MB / 0.6607 GB, free: 8.727 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001073/0.4698, allocations: 0.5276 MB / 0.6612 GB, free: 8.355 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.47, allocations: 4.906 kB / 0.6613 GB, free: 8.352 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.661e-05/0.4701, allocations: 9.141 kB / 0.6613 GB, free: 8.344 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001159/0.4702, allocations: 19.38 kB / 0.6613 GB, free: 8.328 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003423/0.4705, allocations: 46.98 kB / 0.6613 GB, free: 8.305 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002272/0.4708, allocations: 108.9 kB / 0.6614 GB, free: 8.254 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.4709, allocations: 12.8 kB / 0.6614 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.471, allocations: 40.41 kB / 0.6615 GB, free: 8.23 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000109/0.4711, allocations: 39.27 kB / 0.6615 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.191e-05/0.4711, allocations: 12.11 kB / 0.6615 GB, free: 8.211 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.152e-05/0.4712, allocations: 12.25 kB / 0.6615 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.714e-05/0.4712, allocations: 21.05 kB / 0.6616 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.322e-05/0.4713, allocations: 42.03 kB / 0.6616 GB, free: 8.168 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001933/0.4715, allocations: 87.41 kB / 0.6617 GB, free: 8.129 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.4715, allocations: 0 / 0.6617 GB, free: 8.129 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.834e-06/0.4715, allocations: 1.125 kB / 0.6617 GB, free: 8.129 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.055e-06/0.4715, allocations: 0.6094 kB / 0.6617 GB, free: 8.129 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.0008081/0.4723, allocations: 455.7 kB / 0.6621 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.4724, allocations: 10.2 kB / 0.6621 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.482e-05/0.4724, allocations: 33.5 kB / 0.6622 GB, free: 7.648 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.996e-05/0.4725, allocations: 15.33 kB / 0.6622 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002646/0.4728, allocations: 192.1 kB / 0.6624 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.43e-05/0.4729, allocations: 35.53 kB / 0.6624 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.597e-05/0.4729, allocations: 12.5 kB / 0.6624 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003035/0.4732, allocations: 90.8 kB / 0.6625 GB, free: 7.348 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.4733, allocations: 0 / 0.6625 GB, free: 7.348 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.4733, allocations: 5.844 kB / 0.6625 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.4733, allocations: 6.109 kB / 0.6625 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003021/0.4736, allocations: 71.03 kB / 0.6626 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005595/0.4742, allocations: 345.6 kB / 0.6629 GB, free: 7.02 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004148/0.4746, allocations: 92.42 kB / 0.663 GB, free: 6.98 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001646/0.4748, allocations: 45.48 kB / 0.663 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/0.4748, allocations: 5.703 kB / 0.663 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003511/0.4752, allocations: 120.6 kB / 0.6632 GB, free: 6.895 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.673e-06/0.4752, allocations: 0 / 0.6632 GB, free: 6.895 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0006599/0.4758, allocations: 179.9 kB / 0.6633 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.4759, allocations: 53.36 kB / 0.6634 GB, free: 6.766 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.476, allocations: 131.3 kB / 0.6635 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.476, allocations: 30.89 kB / 0.6635 GB, free: 6.617 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.293e-05/0.4761, allocations: 90.67 kB / 0.6636 GB, free: 6.527 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.342e-05/0.4761, allocations: 28.17 kB / 0.6636 GB, free: 6.504 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.903e-05/0.4762, allocations: 35.98 kB / 0.6637 GB, free: 6.473 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 7.817e-05/0.4763, allocations: 325 kB / 0.664 GB, free: 6.148 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001978/0.4765, allocations: 48.59 kB / 0.664 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.4767, allocations: 80.8 kB / 0.6641 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000342/0.477, allocations: 163.4 kB / 0.6643 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.477, allocations: 0 / 0.6643 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004569/0.4775, allocations: 230.4 kB / 0.6645 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.412e-05/0.4776, allocations: 57.56 kB / 0.6645 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.4776, allocations: 0 / 0.6645 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.4776, allocations: 1.125 kB / 0.6645 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.4777, allocations: 25.62 kB / 0.6646 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.4778, allocations: 0.5625 kB / 0.6646 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001364/0.4779, allocations: 29.92 kB / 0.6646 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.892e-05/0.4779, allocations: 4.531 kB / 0.6646 GB, free: 5.703 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 8.86e-05/0.478, allocations: 126.2 kB / 0.6647 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.172e-05/0.478, allocations: 16.02 kB / 0.6647 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.921e-05/0.4781, allocations: 11.16 kB / 0.6647 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.4781, allocations: 1.281 kB / 0.6647 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.4781, allocations: 0 / 0.6647 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.4781, allocations: 7.922 kB / 0.6648 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001416/0.4783, allocations: 197.6 kB / 0.6649 GB, free: 5.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.4783, allocations: 1.312 kB / 0.6649 GB, free: 5.32 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001389/0.4784, allocations: 20.86 kB / 0.665 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.4784, allocations: 1.312 kB / 0.665 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.4784, allocations: 1.312 kB / 0.665 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.4785, allocations: 0 / 0.665 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.4785, allocations: 5.266 kB / 0.665 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005654/0.479, allocations: 222.3 kB / 0.6652 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.686e-05/0.4791, allocations: 83.61 kB / 0.6653 GB, free: 5.066 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.444e-05/0.4791, allocations: 5.312 kB / 0.6653 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.4792, allocations: 21.27 kB / 0.6653 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.731e-05/0.4793, allocations: 14.7 kB / 0.6653 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.4793, allocations: 14.98 kB / 0.6653 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.45e-05/0.4794, allocations: 94.56 kB / 0.6654 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.1e-07/0.4794, allocations: 0 / 0.6654 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002262/0.4796, allocations: 25.45 kB / 0.6654 GB, free: 4.941 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.0007186/0.4803, allocations: 0.7621 MB / 0.6662 GB, free: 4.262 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004294/0.4808, allocations: 229.8 kB / 0.6664 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4808, allocations: 1.375 kB / 0.6664 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001832/0.481, allocations: 52.41 kB / 0.6664 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.4812, allocations: 28.23 kB / 0.6665 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003014/0.4843, allocations: 1.718 MB / 0.6682 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002808/0.4846, allocations: 0.6913 MB / 0.6688 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.067e-05/0.4847, allocations: 10.19 kB / 0.6688 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.324e-05/0.4848, allocations: 32.95 kB / 0.6689 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of SimCode: time 1.032e-06/0.4848, allocations: 0 / 0.6689 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02416/0.5089, allocations: 2.856 MB / 0.6717 GB, free: 356 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.497/8.006, allocations: 7.406 kB / 0.6717 GB, free: 356 kB / 0.4981 GB (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/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)