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.005562/0.005562, allocations: 100.6 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.001306/0.001306, allocations: 187.5 kB / 16.67 MB, free: 5.969 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.361/1.361, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9589/0.9589, allocations: 135.1 MB / 425.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 59.91 kB / 0.5851 GB, free: 3.871 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4254/0.4267, allocations: 80.91 MB / 0.6641 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002392/0.4292, allocations: 1.584 MB / 0.6657 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007006/0.4299, allocations: 0.5269 MB / 0.6662 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.873e-05/0.43, allocations: 5.562 kB / 0.6662 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.801e-05/0.43, allocations: 7.922 kB / 0.6662 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.909e-05/0.4301, allocations: 13.06 kB / 0.6662 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002165/0.4303, allocations: 57.33 kB / 0.6663 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001573/0.4305, allocations: 99.02 kB / 0.6664 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.898e-05/0.4306, allocations: 14.19 kB / 0.6664 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.64e-05/0.4307, allocations: 37.39 kB / 0.6664 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.875e-05/0.4307, allocations: 51.5 kB / 0.6665 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.139e-05/0.4308, allocations: 7.844 kB / 0.6665 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.695e-05/0.4308, allocations: 8.969 kB / 0.6665 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.583e-05/0.4308, allocations: 23.69 kB / 0.6665 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.744e-05/0.4309, allocations: 35.05 kB / 0.6666 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001018/0.431, allocations: 84.97 kB / 0.6666 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.431, allocations: 1.188 kB / 0.6666 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.353e-06/0.431, allocations: 0 / 0.6666 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.775e-06/0.431, allocations: 0 / 0.6666 GB, free: 5.352 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.0006213/0.4316, allocations: 460.8 kB / 0.6671 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.4317, allocations: 13.83 kB / 0.6671 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.452e-05/0.4317, allocations: 35.97 kB / 0.6671 GB, free: 4.84 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.686e-05/0.4317, allocations: 11 kB / 0.6671 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001722/0.4319, allocations: 187.5 kB / 0.6673 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.056e-05/0.432, allocations: 45.53 kB / 0.6674 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.708e-05/0.432, allocations: 8.062 kB / 0.6674 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002517/0.4323, allocations: 107.2 kB / 0.6675 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.689e-06/0.4323, allocations: 0 / 0.6675 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.4323, allocations: 1.219 kB / 0.6675 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.4323, allocations: 1.562 kB / 0.6675 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002847/0.4326, allocations: 76.58 kB / 0.6675 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004617/0.4331, allocations: 339.2 kB / 0.6679 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003563/0.4335, allocations: 95.03 kB / 0.668 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001488/0.4336, allocations: 47.64 kB / 0.668 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.841e-05/0.4336, allocations: 5.344 kB / 0.668 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002964/0.4339, allocations: 118.4 kB / 0.6681 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.643e-06/0.434, allocations: 0 / 0.6681 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0005644/0.4345, allocations: 178 kB / 0.6683 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.577e-05/0.4346, allocations: 53.72 kB / 0.6683 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.309e-05/0.4346, allocations: 123 kB / 0.6685 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.4347, allocations: 32 kB / 0.6685 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.38e-05/0.4347, allocations: 94.42 kB / 0.6686 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.192e-05/0.4347, allocations: 27.61 kB / 0.6686 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.202e-05/0.4348, allocations: 29.09 kB / 0.6686 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.333e-05/0.4348, allocations: 328.4 kB / 0.6689 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001749/0.435, allocations: 56.86 kB / 0.669 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.4352, allocations: 69.3 kB / 0.6691 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000316/0.4355, allocations: 166.7 kB / 0.6692 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4355, allocations: 384 / 0.6692 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004264/0.436, allocations: 222.2 kB / 0.6694 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.541e-05/0.436, allocations: 62.88 kB / 0.6695 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.436, allocations: 0 / 0.6695 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.436, allocations: 9.219 kB / 0.6695 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.4362, allocations: 21.05 kB / 0.6695 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.4362, allocations: 1.25 kB / 0.6695 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001261/0.4363, allocations: 29.41 kB / 0.6696 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.4363, allocations: 6.906 kB / 0.6696 GB, free: 2.707 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.108e-05/0.4364, allocations: 120.3 kB / 0.6697 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.67e-05/0.4364, allocations: 6.719 kB / 0.6697 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.2e-05/0.4365, allocations: 14.88 kB / 0.6697 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.4365, allocations: 5.391 kB / 0.6697 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.4365, allocations: 0 / 0.6697 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.4365, allocations: 3.938 kB / 0.6697 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001207/0.4366, allocations: 194.4 kB / 0.6699 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.4366, allocations: 0 / 0.6699 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.4368, allocations: 21.72 kB / 0.6699 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.4368, allocations: 1.125 kB / 0.6699 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.4368, allocations: 1.062 kB / 0.6699 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.4368, allocations: 1.344 kB / 0.6699 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4368, allocations: 4 kB / 0.6699 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005575/0.4374, allocations: 222.2 kB / 0.6701 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.584e-05/0.4374, allocations: 84.11 kB / 0.6702 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.28e-05/0.4374, allocations: 13.34 kB / 0.6702 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.4376, allocations: 12.41 kB / 0.6702 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.172e-05/0.4376, allocations: 19.06 kB / 0.6703 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.182e-05/0.4377, allocations: 6.312 kB / 0.6703 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.461e-05/0.4377, allocations: 103.1 kB / 0.6704 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9.41e-07/0.4377, allocations: 0 / 0.6704 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002085/0.4379, allocations: 21.34 kB / 0.6704 GB, free: 1.961 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.0007202/0.4387, allocations: 0.7598 MB / 0.6711 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004291/0.4391, allocations: 230.6 kB / 0.6713 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4391, allocations: 0 / 0.6713 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001811/0.4393, allocations: 52.92 kB / 0.6714 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002433/0.4396, allocations: 34.3 kB / 0.6714 GB, free: 1.062 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.4418, allocations: 1.713 MB / 0.6731 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/0.4421, allocations: 0.7 MB / 0.6738 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.363e-05/0.4422, allocations: 13.97 kB / 0.6738 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.623e-05/0.4422, allocations: 25.42 kB / 0.6738 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of SimCode: time 6.91e-07/0.4423, allocations: 0 / 0.6738 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02058/0.4628, allocations: 2.854 MB / 0.6766 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.57/8.033, allocations: 9.406 kB / 0.6766 GB, free: 13.35 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)