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.01013/0.01013, allocations: 99.42 kB / 15.73 MB, free: 6.039 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.001985/0.001985, allocations: 202.1 kB / 16.68 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9777/0.9777, allocations: 135.1 MB / 425.7 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 63.91 kB / 0.5851 GB, free: 3.836 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4287/0.4303, allocations: 80.92 MB / 0.6642 GB, free: 7.262 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002233/0.4325, allocations: 1.58 MB / 0.6657 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008593/0.4334, allocations: 0.5307 MB / 0.6662 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.095e-05/0.4335, allocations: 3.938 kB / 0.6662 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.97e-05/0.4336, allocations: 5.188 kB / 0.6662 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.619e-05/0.4337, allocations: 21.22 kB / 0.6663 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000273/0.4339, allocations: 53.53 kB / 0.6663 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001761/0.4341, allocations: 102.1 kB / 0.6664 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.4342, allocations: 11.16 kB / 0.6664 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.347e-05/0.4343, allocations: 46.16 kB / 0.6665 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.221e-05/0.4344, allocations: 41.91 kB / 0.6665 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.948e-05/0.4344, allocations: 9.438 kB / 0.6665 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.912e-05/0.4345, allocations: 7.75 kB / 0.6665 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.42e-05/0.4345, allocations: 19.2 kB / 0.6665 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.255e-05/0.4346, allocations: 40.78 kB / 0.6666 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001324/0.4347, allocations: 83.72 kB / 0.6667 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.4347, allocations: 0 / 0.6667 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.623e-06/0.4347, allocations: 0 / 0.6667 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.4347, allocations: 4 kB / 0.6667 GB, free: 5.305 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.0007313/0.4355, allocations: 458.7 kB / 0.6671 GB, free: 4.84 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.4355, allocations: 9.906 kB / 0.6671 GB, free: 4.84 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.268e-05/0.4356, allocations: 45.17 kB / 0.6671 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.854e-05/0.4356, allocations: 6.219 kB / 0.6672 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.4358, allocations: 192.7 kB / 0.6673 GB, free: 4.57 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.782e-05/0.4359, allocations: 39.86 kB / 0.6674 GB, free: 4.531 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.413e-05/0.4359, allocations: 9.5 kB / 0.6674 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002745/0.4362, allocations: 97.97 kB / 0.6675 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.4362, allocations: 0 / 0.6675 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.4363, allocations: 5.344 kB / 0.6675 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.4363, allocations: 5.609 kB / 0.6675 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003093/0.4366, allocations: 71.66 kB / 0.6676 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004793/0.4371, allocations: 336.9 kB / 0.6679 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003764/0.4375, allocations: 97.48 kB / 0.668 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.4376, allocations: 47.47 kB / 0.668 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.4376, allocations: 1.469 kB / 0.668 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002733/0.4379, allocations: 115.2 kB / 0.6681 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.493e-06/0.4379, allocations: 0 / 0.6681 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0005879/0.4385, allocations: 179.2 kB / 0.6683 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.61e-05/0.4386, allocations: 56.7 kB / 0.6683 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.228e-05/0.4386, allocations: 127.5 kB / 0.6685 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.53e-05/0.4387, allocations: 26.95 kB / 0.6685 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.211e-05/0.4387, allocations: 100 kB / 0.6686 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.853e-05/0.4387, allocations: 31.48 kB / 0.6686 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.377e-05/0.4388, allocations: 32.17 kB / 0.6687 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.574e-05/0.4389, allocations: 325.4 kB / 0.669 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001904/0.4391, allocations: 51.05 kB / 0.669 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.4392, allocations: 74.05 kB / 0.6691 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003344/0.4396, allocations: 155.1 kB / 0.6692 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.4396, allocations: 1.062 kB / 0.6692 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004537/0.4401, allocations: 232.2 kB / 0.6695 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.497e-05/0.4401, allocations: 66.45 kB / 0.6695 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.4401, allocations: 0 / 0.6695 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.4401, allocations: 1.281 kB / 0.6695 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.4403, allocations: 21.36 kB / 0.6695 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.4403, allocations: 5.812 kB / 0.6695 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/0.4404, allocations: 20.77 kB / 0.6696 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.681e-05/0.4405, allocations: 11.67 kB / 0.6696 GB, free: 2.664 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.125e-05/0.4406, allocations: 120.2 kB / 0.6697 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.968e-05/0.4406, allocations: 13.33 kB / 0.6697 GB, free: 2.535 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.409e-05/0.4406, allocations: 9.688 kB / 0.6697 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.4406, allocations: 1.5 kB / 0.6697 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.4406, allocations: 0 / 0.6697 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.4406, allocations: 3.938 kB / 0.6697 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001333/0.4408, allocations: 198.4 kB / 0.6699 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.4408, allocations: 0 / 0.6699 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.4409, allocations: 21.47 kB / 0.6699 GB, free: 2.289 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.4409, allocations: 5.375 kB / 0.6699 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.441, allocations: 5.469 kB / 0.6699 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.441, allocations: 0 / 0.6699 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.441, allocations: 3.938 kB / 0.6699 GB, free: 2.277 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005613/0.4415, allocations: 227.4 kB / 0.6702 GB, free: 2.129 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.418e-05/0.4416, allocations: 91.72 kB / 0.6702 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/0.4416, allocations: 5.375 kB / 0.6702 GB, free: 2.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001226/0.4417, allocations: 11.11 kB / 0.6703 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.546e-05/0.4418, allocations: 20.25 kB / 0.6703 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.181e-05/0.4418, allocations: 6.531 kB / 0.6703 GB, free: 2 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.756e-05/0.4419, allocations: 98.33 kB / 0.6704 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4419, allocations: 0 / 0.6704 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002116/0.4421, allocations: 23.41 kB / 0.6704 GB, free: 1.91 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.0007262/0.4428, allocations: 0.7625 MB / 0.6711 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000426/0.4433, allocations: 229.6 kB / 0.6714 GB, free: 1.055 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.4433, allocations: 3.938 kB / 0.6714 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001842/0.4435, allocations: 57.08 kB / 0.6714 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002513/0.4437, allocations: 26.05 kB / 0.6714 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002201/0.4459, allocations: 1.711 MB / 0.6731 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003084/0.4463, allocations: 0.697 MB / 0.6738 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.492e-05/0.4463, allocations: 9.391 kB / 0.6738 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.829e-05/0.4464, allocations: 21.81 kB / 0.6738 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of SimCode: time 2.174e-06/0.4464, allocations: 4 kB / 0.6738 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02063/0.467, allocations: 2.79 MB / 0.6766 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.689/8.157, allocations: 7.469 kB / 0.6766 GB, free: 13.34 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)