Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001129/0.00113, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001362/0.001362, allocations: 195.8 kB / 16.25 MB, free: 6.621 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.385/1.385, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.751/2.751, allocations: 472.6 MB / 0.7448 GB, free: 4.852 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 62.47 kB / 0.9115 GB, free: 33.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3198, allocations: 159.9 MB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002391/0.3222, allocations: 1.468 MB / 1.069 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000528/0.3228, allocations: 275.2 kB / 1.069 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.139e-05/0.3228, allocations: 0 / 1.069 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 8.49e-05/0.3229, allocations: 0 / 1.069 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001282/0.3231, allocations: 15.91 kB / 1.069 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001338/0.3232, allocations: 35.86 kB / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001258/0.3233, allocations: 63.84 kB / 1.07 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.025e-05/0.3234, allocations: 11.98 kB / 1.07 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.899e-05/0.3235, allocations: 23.92 kB / 1.07 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.3236, allocations: 35.84 kB / 1.07 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.944e-05/0.3237, allocations: 4 kB / 1.07 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.407e-05/0.3237, allocations: 4 kB / 1.07 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.747e-05/0.3237, allocations: 11.92 kB / 1.07 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.107e-05/0.3238, allocations: 31.86 kB / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001044/0.3239, allocations: 59.8 kB / 1.07 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3239, allocations: 0 / 1.07 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3239, allocations: 0 / 1.07 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.3239, allocations: 0 / 1.07 GB, free: 8.703 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005075/0.3244, allocations: 399 kB / 1.07 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.3245, allocations: 8.031 kB / 1.07 GB, free: 8.25 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.973e-05/0.3245, allocations: 8.844 kB / 1.07 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001661/0.3247, allocations: 180.3 kB / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.3247, allocations: 8.375 kB / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.676e-05/0.3247, allocations: 4.375 kB / 1.07 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001932/0.3249, allocations: 66.23 kB / 1.07 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.325, allocations: 8.062 kB / 1.07 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.325, allocations: 3.938 kB / 1.07 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.325, allocations: 0 / 1.07 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001189/0.3251, allocations: 47.91 kB / 1.07 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004351/0.3255, allocations: 288.8 kB / 1.071 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001208/0.3257, allocations: 70.5 kB / 1.071 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.121e-05/0.3258, allocations: 52.89 kB / 1.071 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.021e-05/0.3258, allocations: 4.031 kB / 1.071 GB, free: 7.418 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002044/0.326, allocations: 113.1 kB / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.322e-06/0.326, allocations: 4 kB / 1.071 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0003973/0.3264, allocations: 191.3 kB / 1.071 GB, free: 7.086 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.349e-05/0.3265, allocations: 118.8 kB / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.3266, allocations: 121.7 kB / 1.071 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.3267, allocations: 25.7 kB / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.176e-05/0.3267, allocations: 92.08 kB / 1.071 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.25e-05/0.3268, allocations: 35.62 kB / 1.071 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.894e-05/0.3268, allocations: 33.7 kB / 1.071 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.3269, allocations: 322.8 kB / 1.072 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.859e-05/0.327, allocations: 39.97 kB / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.3272, allocations: 96.56 kB / 1.072 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002416/0.3274, allocations: 211.8 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.3274, allocations: 7.938 kB / 1.072 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003074/0.3277, allocations: 199 kB / 1.072 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.485e-05/0.3278, allocations: 33.7 kB / 1.072 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.3278, allocations: 8.266 kB / 1.072 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.3278, allocations: 4 kB / 1.072 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.3279, allocations: 20 kB / 1.072 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.3279, allocations: 11.92 kB / 1.072 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.972e-05/0.328, allocations: 7.906 kB / 1.072 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.328, allocations: 12 kB / 1.072 GB, free: 5.562 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 (movMea.iSample,$PRE.movMea.iSample,movMea.counter,$PRE.movMea.counter,movMea.ySample[4],$PRE.movMea.ySample[4],movMea.ySample[3],$PRE.movMea.ySample[3],movMea.ySample[2],$PRE.movMea.ySample[2],movMea.ySample[1],$PRE.movMea.ySample[1],movMea.index,$PRE.movMea.index,movMea.y,$PRE.movMea.y,movMea.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001376/0.3282, allocations: 175.5 kB / 1.073 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.939e-05/0.3282, allocations: 11.98 kB / 1.073 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.321e-05/0.3282, allocations: 4.375 kB / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.3282, allocations: 3.938 kB / 1.073 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.3283, allocations: 4 kB / 1.073 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.3283, allocations: 3.938 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001342/0.3284, allocations: 189.5 kB / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3284, allocations: 0 / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.234e-05/0.3285, allocations: 7.984 kB / 1.073 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.3285, allocations: 0 / 1.073 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.3285, allocations: 8 kB / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3285, allocations: 0 / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3285, allocations: 4 kB / 1.073 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000352/0.3289, allocations: 230.6 kB / 1.073 GB, free: 4.844 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.367e-05/0.3289, allocations: 81.02 kB / 1.073 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.2e-05/0.3289, allocations: 11.98 kB / 1.073 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.225e-05/0.329, allocations: 4 kB / 1.073 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.654e-05/0.3291, allocations: 7.984 kB / 1.073 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.3291, allocations: 4 kB / 1.073 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.223e-05/0.3291, allocations: 87.28 kB / 1.073 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.403e-06/0.3291, allocations: 7.938 kB / 1.073 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003092/0.3294, allocations: 19.94 kB / 1.073 GB, free: 4.605 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,movMea.y,movMea.sampleTrigger,movMea.iSample,movMea.counter,movMea.index,movMea.ySample[1],movMea.ySample[2],movMea.ySample[3],movMea.ySample[4]) * Number of discrete states: 9 (movMea.iSample,movMea.y,movMea.counter,movMea.ySample[4],movMea.ySample[3],movMea.ySample[2],movMea.ySample[1],movMea.index,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0001257/0.3296, allocations: 115.2 kB / 1.073 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002905/0.3299, allocations: 175.6 kB / 1.074 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3299, allocations: 0 / 1.074 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001736/0.3301, allocations: 179.4 kB / 1.074 GB, free: 4.113 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000199/0.3303, allocations: 18.05 kB / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003828/0.3307, allocations: 199.2 kB / 1.074 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000239/0.3309, allocations: 0.6924 MB / 1.075 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.192e-05/0.331, allocations: 8.672 kB / 1.075 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.975e-05/0.331, allocations: 15.42 kB / 1.075 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.331, allocations: 0 / 1.075 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of Templates: time 0.003161/0.3342, allocations: 0.9486 MB / 1.076 GB, free: 2.195 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)