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.001161/0.001161, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001062/0.001062, allocations: 191.4 kB / 16.25 MB, free: 6.629 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.304/1.304, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7301/0.7301, allocations: 132.2 MB / 422.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 58.84 kB / 0.5013 GB, free: 4.129 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3614/0.3626, allocations: 80.2 MB / 0.5797 GB, free: 4.559 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002439/0.365, allocations: 1.648 MB / 0.5813 GB, free: 3.414 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007161/0.3658, allocations: 0.5266 MB / 0.5818 GB, free: 3.043 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.874e-05/0.3659, allocations: 0 / 0.5818 GB, free: 3.043 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 3.126e-05/0.3659, allocations: 4.734 kB / 0.5818 GB, free: 3.039 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 7.659e-05/0.366, allocations: 7.594 kB / 0.5818 GB, free: 3.035 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002222/0.3662, allocations: 54.75 kB / 0.5819 GB, free: 3 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001629/0.3664, allocations: 104.2 kB / 0.582 GB, free: 2.953 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.273e-05/0.3665, allocations: 16.03 kB / 0.582 GB, free: 2.945 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.42e-05/0.3665, allocations: 33.22 kB / 0.582 GB, free: 2.934 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.876e-05/0.3666, allocations: 46.52 kB / 0.5821 GB, free: 2.91 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.276e-05/0.3667, allocations: 8.5 kB / 0.5821 GB, free: 2.91 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.076e-05/0.3667, allocations: 9.062 kB / 0.5821 GB, free: 2.91 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.826e-05/0.3667, allocations: 24.36 kB / 0.5821 GB, free: 2.895 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.025e-05/0.3668, allocations: 37.98 kB / 0.5821 GB, free: 2.871 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00012/0.3669, allocations: 83.56 kB / 0.5822 GB, free: 2.836 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.3669, allocations: 0.8438 kB / 0.5822 GB, free: 2.836 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3669, allocations: 0 / 0.5822 GB, free: 2.836 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.3669, allocations: 0 / 0.5822 GB, free: 2.836 MB / 430.1 MB 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.0006337/0.3676, allocations: 461.3 kB / 0.5826 GB, free: 2.391 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.3676, allocations: 17.12 kB / 0.5827 GB, free: 2.383 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.072e-05/0.3676, allocations: 39.67 kB / 0.5827 GB, free: 2.34 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.141e-05/0.3677, allocations: 9.062 kB / 0.5827 GB, free: 2.336 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.3678, allocations: 184 kB / 0.5829 GB, free: 2.133 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.879e-05/0.3679, allocations: 38.98 kB / 0.5829 GB, free: 2.098 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.882e-05/0.3679, allocations: 9.156 kB / 0.5829 GB, free: 2.094 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002655/0.3682, allocations: 98.11 kB / 0.583 GB, free: 2.043 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.3682, allocations: 1.188 kB / 0.583 GB, free: 2.043 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.3683, allocations: 4.656 kB / 0.583 GB, free: 2.039 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.3683, allocations: 2.219 kB / 0.583 GB, free: 2.039 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002889/0.3686, allocations: 71.19 kB / 0.5831 GB, free: 2.027 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005142/0.3691, allocations: 339.1 kB / 0.5834 GB, free: 1.727 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003633/0.3694, allocations: 100.6 kB / 0.5835 GB, free: 1.68 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/0.3696, allocations: 44.64 kB / 0.5836 GB, free: 1.664 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.908e-05/0.3696, allocations: 1.219 kB / 0.5836 GB, free: 1.664 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003056/0.3699, allocations: 125.6 kB / 0.5837 GB, free: 1.594 MB / 430.1 MB Notification: Performance of pre-optimization done (n=9): time 1.373e-06/0.37, allocations: 3.938 kB / 0.5837 GB, free: 1.59 MB / 430.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005684/0.3705, allocations: 174.9 kB / 0.5839 GB, free: 1.527 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.046e-05/0.3706, allocations: 62.42 kB / 0.5839 GB, free: 1.457 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.426e-05/0.3707, allocations: 128.9 kB / 0.584 GB, free: 1.344 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.3707, allocations: 27.33 kB / 0.5841 GB, free: 1.312 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.475e-05/0.3707, allocations: 92.86 kB / 0.5842 GB, free: 1.223 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.549e-05/0.3708, allocations: 30.22 kB / 0.5842 GB, free: 1.199 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.321e-05/0.3708, allocations: 31.52 kB / 0.5842 GB, free: 1.176 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.285e-05/0.3709, allocations: 324.7 kB / 0.5845 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.371, allocations: 54.28 kB / 0.5846 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001746/0.3712, allocations: 66.73 kB / 0.5846 GB, free: 0.8125 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003127/0.3715, allocations: 165 kB / 0.5848 GB, free: 0.707 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3715, allocations: 0 / 0.5848 GB, free: 0.707 MB / 430.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000418/0.372, allocations: 221 kB / 0.585 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.173e-05/0.372, allocations: 63.97 kB / 0.5851 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.372, allocations: 0 / 0.5851 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.372, allocations: 2.672 kB / 0.5851 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.3722, allocations: 29.47 kB / 0.5851 GB, free: 0.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.3722, allocations: 1.578 kB / 0.5851 GB, free: 0.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001269/0.3723, allocations: 27 kB / 0.5851 GB, free: 500 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.3723, allocations: 11.5 kB / 0.5851 GB, free: 492 kB / 430.1 MB 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 6.957e-05/0.3724, allocations: 118.2 kB / 0.5852 GB, free: 372 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.791e-05/0.3724, allocations: 4.172 kB / 0.5853 GB, free: 372 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.287e-05/0.3725, allocations: 15.11 kB / 0.5853 GB, free: 352 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3725, allocations: 1.875 kB / 0.5853 GB, free: 352 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.3725, allocations: 5.125 kB / 0.5853 GB, free: 348 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.3725, allocations: 4.688 kB / 0.5853 GB, free: 344 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.3726, allocations: 196.6 kB / 0.5855 GB, free: 132 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3726, allocations: 0 / 0.5855 GB, free: 132 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001351/0.3728, allocations: 18.75 kB / 0.5855 GB, free: 132 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.3728, allocations: 0.8125 kB / 0.5855 GB, free: 132 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.3728, allocations: 6.531 kB / 0.5855 GB, free: 128 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.3728, allocations: 4.828 kB / 0.5855 GB, free: 124 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3728, allocations: 0.8438 kB / 0.5855 GB, free: 124 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005584/0.3734, allocations: 228.8 kB / 0.5857 GB, free: 4 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.006e-05/0.3735, allocations: 84.42 kB / 0.5858 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.536e-05/0.3735, allocations: 6.328 kB / 0.5858 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001235/0.3736, allocations: 13.83 kB / 0.5858 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.643e-05/0.3737, allocations: 20.86 kB / 0.5858 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.265e-05/0.3737, allocations: 7.516 kB / 0.5858 GB, free: 15.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.721e-05/0.3738, allocations: 100.7 kB / 0.5859 GB, free: 15.81 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3738, allocations: 0.625 kB / 0.5859 GB, free: 15.81 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002066/0.374, allocations: 22.81 kB / 0.586 GB, free: 15.8 MB / 446.1 MB 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.0008059/0.3748, allocations: 0.7502 MB / 0.5867 GB, free: 15.17 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004621/0.3753, allocations: 226.9 kB / 0.5869 GB, free: 15.02 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3753, allocations: 4.562 kB / 0.5869 GB, free: 15.02 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001919/0.3755, allocations: 60.62 kB / 0.587 GB, free: 15 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002343/0.3757, allocations: 23.75 kB / 0.587 GB, free: 14.99 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002279/0.378, allocations: 1.723 MB / 0.5887 GB, free: 13.61 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002304/0.3783, allocations: 0.6976 MB / 0.5894 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.712e-05/0.3783, allocations: 6.703 kB / 0.5894 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.006e-05/0.3784, allocations: 28 kB / 0.5894 GB, free: 12.89 MB / 446.1 MB Notification: Performance of SimCode: time 4.7e-07/0.3784, allocations: 0 / 0.5894 GB, free: 12.89 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1168/0.4952, allocations: 2.583 MB / 0.5919 GB, free: 12.58 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002039/0.4955, allocations: 189.5 kB / 0.5921 GB, free: 12.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.874/2.37, allocations: 0 / 0.5921 GB, free: 12.32 MB / 446.1 MB (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)