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.005975/0.005975, allocations: 96.94 kB / 15.73 MB, free: 6.484 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.001389/0.001389, allocations: 192 kB / 16.67 MB, free: 6.391 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.505/1.505, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7517/0.7517, allocations: 132.2 MB / 422.7 MB, free: 1.711 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001769/0.001769, allocations: 63.91 kB / 0.5809 GB, free: 8.023 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3242, allocations: 80.21 MB / 0.6592 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002114/0.3263, allocations: 1.58 MB / 0.6607 GB, free: 8.777 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0006783/0.327, allocations: 0.5308 MB / 0.6613 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.987e-05/0.3271, allocations: 1.281 kB / 0.6613 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.399e-05/0.3271, allocations: 8.688 kB / 0.6613 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.7e-05/0.3272, allocations: 19.64 kB / 0.6613 GB, free: 8.379 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002162/0.3274, allocations: 54.47 kB / 0.6613 GB, free: 8.348 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001635/0.3276, allocations: 97.14 kB / 0.6614 GB, free: 8.309 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.582e-05/0.3277, allocations: 11.92 kB / 0.6614 GB, free: 8.305 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.789e-05/0.3278, allocations: 50.14 kB / 0.6615 GB, free: 8.277 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.93e-05/0.3279, allocations: 38.27 kB / 0.6615 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.401e-05/0.3279, allocations: 9.219 kB / 0.6615 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.829e-05/0.3279, allocations: 8.25 kB / 0.6615 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.197e-05/0.3279, allocations: 25.02 kB / 0.6616 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.872e-05/0.328, allocations: 41.12 kB / 0.6616 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.3281, allocations: 78.12 kB / 0.6617 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.3281, allocations: 1.469 kB / 0.6617 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.413e-06/0.3281, allocations: 0 / 0.6617 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.3282, allocations: 0 / 0.6617 GB, free: 8.191 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.0006346/0.3288, allocations: 468.2 kB / 0.6621 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.232e-05/0.3288, allocations: 10.72 kB / 0.6621 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.543e-05/0.3289, allocations: 37.22 kB / 0.6622 GB, free: 7.695 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.885e-05/0.3289, allocations: 10.81 kB / 0.6622 GB, free: 7.691 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001663/0.3291, allocations: 192.3 kB / 0.6624 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.998e-05/0.3292, allocations: 35.23 kB / 0.6624 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.44e-05/0.3292, allocations: 17.58 kB / 0.6624 GB, free: 7.438 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002536/0.3294, allocations: 93.73 kB / 0.6625 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.3295, allocations: 0 / 0.6625 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.3295, allocations: 5.969 kB / 0.6625 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.3295, allocations: 5.469 kB / 0.6625 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002927/0.3298, allocations: 72.25 kB / 0.6626 GB, free: 7.371 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004457/0.3302, allocations: 333.5 kB / 0.6629 GB, free: 7.074 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000356/0.3306, allocations: 96 kB / 0.663 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001536/0.3308, allocations: 49.08 kB / 0.663 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.3308, allocations: 2.016 kB / 0.663 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002749/0.3311, allocations: 121.1 kB / 0.6632 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.3311, allocations: 0 / 0.6632 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0005721/0.3317, allocations: 179.1 kB / 0.6633 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.201e-05/0.3317, allocations: 54.55 kB / 0.6634 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.291e-05/0.3318, allocations: 123.5 kB / 0.6635 GB, free: 6.703 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.3318, allocations: 30.98 kB / 0.6635 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.084e-05/0.3318, allocations: 95.03 kB / 0.6636 GB, free: 6.574 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.033e-05/0.3318, allocations: 31.52 kB / 0.6637 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-05/0.3319, allocations: 36.64 kB / 0.6637 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 3.543e-05/0.3319, allocations: 325.2 kB / 0.664 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.3321, allocations: 48.72 kB / 0.664 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/0.3323, allocations: 72.84 kB / 0.6641 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003105/0.3326, allocations: 167.5 kB / 0.6643 GB, free: 6 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3326, allocations: 384 / 0.6643 GB, free: 6 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004038/0.333, allocations: 229.1 kB / 0.6645 GB, free: 5.84 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.3331, allocations: 62.91 kB / 0.6646 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.3331, allocations: 0 / 0.6646 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.3331, allocations: 5.281 kB / 0.6646 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.3332, allocations: 28.06 kB / 0.6646 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.3332, allocations: 2.062 kB / 0.6646 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/0.3333, allocations: 20.64 kB / 0.6646 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.3334, allocations: 4.375 kB / 0.6646 GB, free: 5.746 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 5.76e-05/0.3334, allocations: 127.2 kB / 0.6647 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.701e-05/0.3335, allocations: 12.25 kB / 0.6647 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.793e-05/0.3335, allocations: 9.844 kB / 0.6648 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.3335, allocations: 1.375 kB / 0.6648 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.3335, allocations: 1.281 kB / 0.6648 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.3335, allocations: 3.938 kB / 0.6648 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001016/0.3336, allocations: 197.3 kB / 0.6649 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3336, allocations: 5.219 kB / 0.665 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001277/0.3338, allocations: 17.05 kB / 0.665 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.3338, allocations: 1.312 kB / 0.665 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.3338, allocations: 5.812 kB / 0.665 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3338, allocations: 0 / 0.665 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3338, allocations: 3.984 kB / 0.665 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005295/0.3343, allocations: 218.6 kB / 0.6652 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.012e-05/0.3344, allocations: 91.94 kB / 0.6653 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.147e-05/0.3344, allocations: 1.375 kB / 0.6653 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.3345, allocations: 24.11 kB / 0.6653 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.965e-05/0.3346, allocations: 15.23 kB / 0.6653 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.167e-05/0.3346, allocations: 11.83 kB / 0.6653 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.398e-05/0.3346, allocations: 93.08 kB / 0.6654 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3346, allocations: 0 / 0.6654 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001938/0.3348, allocations: 23.06 kB / 0.6654 GB, free: 4.988 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.0006617/0.3355, allocations: 0.7651 MB / 0.6662 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004014/0.3359, allocations: 231 kB / 0.6664 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3359, allocations: 0 / 0.6664 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001751/0.3361, allocations: 52.25 kB / 0.6665 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002168/0.3363, allocations: 21.52 kB / 0.6665 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001783/0.3381, allocations: 1.716 MB / 0.6681 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.726e-05/0.3382, allocations: 0.6921 MB / 0.6688 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.796e-05/0.3383, allocations: 9.172 kB / 0.6688 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.254e-05/0.3383, allocations: 29.27 kB / 0.6689 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.3383, allocations: 1.406 kB / 0.6689 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2582/0.5965, allocations: 2.8 MB / 0.6716 GB, free: 456 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.374/8.971, allocations: 3.75 kB / 0.6716 GB, free: 456 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)