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.0009661/0.0009662, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001074/0.001074, allocations: 195.4 kB / 16.14 MB, free: 6.707 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.219/1.219, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6601/0.6601, allocations: 132.2 MB / 422.1 MB, free: 2.027 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001077/0.001077, allocations: 67.33 kB / 0.5012 GB, free: 4.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.2779, allocations: 80.2 MB / 0.5795 GB, free: 4.566 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002183/0.2801, allocations: 1.637 MB / 0.5811 GB, free: 3.43 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007053/0.2809, allocations: 0.5402 MB / 0.5816 GB, free: 3.047 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.356e-05/0.2809, allocations: 0.8438 kB / 0.5816 GB, free: 3.047 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.988e-05/0.281, allocations: 1.406 kB / 0.5816 GB, free: 3.047 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 7.151e-05/0.281, allocations: 11.17 kB / 0.5816 GB, free: 3.039 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001885/0.2812, allocations: 46.97 kB / 0.5817 GB, free: 3.012 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001138/0.2814, allocations: 92.3 kB / 0.5818 GB, free: 2.973 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.553e-05/0.2814, allocations: 15.42 kB / 0.5818 GB, free: 2.965 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.957e-05/0.2815, allocations: 41.11 kB / 0.5818 GB, free: 2.945 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.755e-05/0.2816, allocations: 38.66 kB / 0.5819 GB, free: 2.93 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.081e-05/0.2816, allocations: 5.219 kB / 0.5819 GB, free: 2.93 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.729e-05/0.2816, allocations: 4.656 kB / 0.5819 GB, free: 2.93 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.666e-05/0.2817, allocations: 16.55 kB / 0.5819 GB, free: 2.922 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.567e-05/0.2817, allocations: 33.92 kB / 0.5819 GB, free: 2.902 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001031/0.2818, allocations: 79.66 kB / 0.582 GB, free: 2.871 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2818, allocations: 5.312 kB / 0.582 GB, free: 2.867 MB / 430.1 MB Notification: Performance of FrontEnd: time 6.11e-07/0.2818, allocations: 0 / 0.582 GB, free: 2.867 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.577e-06/0.2818, allocations: 4 kB / 0.582 GB, free: 2.863 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.0005653/0.2824, allocations: 459.9 kB / 0.5824 GB, free: 2.418 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.2825, allocations: 9.781 kB / 0.5824 GB, free: 2.418 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.717e-05/0.2825, allocations: 34.97 kB / 0.5825 GB, free: 2.379 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.73e-05/0.2825, allocations: 10.08 kB / 0.5825 GB, free: 2.375 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.2827, allocations: 195.7 kB / 0.5827 GB, free: 2.16 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.346e-05/0.2827, allocations: 34.92 kB / 0.5827 GB, free: 2.129 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.346e-05/0.2828, allocations: 17.06 kB / 0.5827 GB, free: 2.117 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002448/0.283, allocations: 94.36 kB / 0.5828 GB, free: 2.07 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.283, allocations: 0 / 0.5828 GB, free: 2.07 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.283, allocations: 6.516 kB / 0.5828 GB, free: 2.066 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.283, allocations: 4.734 kB / 0.5828 GB, free: 2.062 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002807/0.2833, allocations: 75.78 kB / 0.5829 GB, free: 2.047 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004371/0.2838, allocations: 339 kB / 0.5832 GB, free: 1.746 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003346/0.2841, allocations: 91.95 kB / 0.5833 GB, free: 1.707 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001421/0.2843, allocations: 44.81 kB / 0.5834 GB, free: 1.691 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.2843, allocations: 6.062 kB / 0.5834 GB, free: 1.688 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002818/0.2846, allocations: 124.7 kB / 0.5835 GB, free: 1.617 MB / 430.1 MB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.2846, allocations: 0 / 0.5835 GB, free: 1.617 MB / 430.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005302/0.2851, allocations: 175.5 kB / 0.5836 GB, free: 1.555 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.724e-05/0.2852, allocations: 54.05 kB / 0.5837 GB, free: 1.492 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.522e-05/0.2852, allocations: 127.6 kB / 0.5838 GB, free: 1.383 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.2853, allocations: 35.36 kB / 0.5839 GB, free: 1.344 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.396e-05/0.2853, allocations: 94.17 kB / 0.5839 GB, free: 1.254 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.486e-05/0.2853, allocations: 33.62 kB / 0.584 GB, free: 1.227 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.651e-05/0.2854, allocations: 31.95 kB / 0.584 GB, free: 1.203 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.042e-05/0.2854, allocations: 323.6 kB / 0.5843 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000185/0.2856, allocations: 51.56 kB / 0.5844 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001754/0.2858, allocations: 78.22 kB / 0.5844 GB, free: 0.832 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000309/0.2861, allocations: 153.5 kB / 0.5846 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2861, allocations: 0 / 0.5846 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004164/0.2866, allocations: 229.8 kB / 0.5848 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.144e-05/0.2866, allocations: 59.75 kB / 0.5849 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2866, allocations: 1.406 kB / 0.5849 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.2866, allocations: 0 / 0.5849 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.2868, allocations: 23.02 kB / 0.5849 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.2868, allocations: 1.719 kB / 0.5849 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001267/0.2869, allocations: 30.81 kB / 0.5849 GB, free: 0.5156 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.37e-05/0.2869, allocations: 2.781 kB / 0.5849 GB, free: 0.5156 MB / 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.05e-05/0.287, allocations: 126.7 kB / 0.585 GB, free: 400 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.886e-05/0.287, allocations: 9.125 kB / 0.585 GB, free: 396 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.005e-05/0.287, allocations: 10.41 kB / 0.5851 GB, free: 380 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.287, allocations: 1.469 kB / 0.5851 GB, free: 380 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.2871, allocations: 4.547 kB / 0.5851 GB, free: 376 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.2871, allocations: 5.516 kB / 0.5851 GB, free: 372 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001156/0.2872, allocations: 192.4 kB / 0.5853 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.2872, allocations: 0.5156 kB / 0.5853 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001315/0.2873, allocations: 21.92 kB / 0.5853 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.2873, allocations: 5.359 kB / 0.5853 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.2874, allocations: 2.812 kB / 0.5853 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.2874, allocations: 1.156 kB / 0.5853 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2874, allocations: 0 / 0.5853 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005345/0.2879, allocations: 225 kB / 0.5855 GB, free: 40 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.393e-05/0.288, allocations: 84.73 kB / 0.5856 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.322e-05/0.288, allocations: 1.625 kB / 0.5856 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.2881, allocations: 17.42 kB / 0.5856 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.154e-05/0.2882, allocations: 14 kB / 0.5856 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.339e-05/0.2882, allocations: 12.73 kB / 0.5856 GB, free: 15.93 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.104e-05/0.2883, allocations: 100.2 kB / 0.5857 GB, free: 15.85 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2883, allocations: 3.938 kB / 0.5857 GB, free: 15.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0001992/0.2885, allocations: 27.47 kB / 0.5857 GB, free: 15.84 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.0008147/0.2893, allocations: 0.7531 MB / 0.5865 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004542/0.2898, allocations: 225.4 kB / 0.5867 GB, free: 15.05 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2898, allocations: 1.094 kB / 0.5867 GB, free: 15.05 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001872/0.29, allocations: 56.22 kB / 0.5868 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002274/0.2902, allocations: 31.5 kB / 0.5868 GB, free: 15.03 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002249/0.2925, allocations: 1.727 MB / 0.5885 GB, free: 13.64 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.2927, allocations: 0.6934 MB / 0.5891 GB, free: 12.95 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.098e-05/0.2928, allocations: 11.61 kB / 0.5892 GB, free: 12.94 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.043e-05/0.2929, allocations: 22.86 kB / 0.5892 GB, free: 12.93 MB / 446.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2929, allocations: 0 / 0.5892 GB, free: 12.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.326/3.619, allocations: 2.478 MB / 0.5916 GB, free: 12.62 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.005244/3.624, allocations: 185.8 kB / 0.5918 GB, free: 12.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.715/5.339, allocations: 3.938 kB / 0.5918 GB, free: 12.36 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)