Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.311/2.311, allocations: 251.1 MB / 266.1 MB, free: 11.54 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001457/0.001457, allocations: 176.9 kB / 325.6 MB, free: 2.781 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.685/2.685, allocations: 205.4 MB / 0.5766 GB, free: 21.11 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001572/0.001572, allocations: 103.7 kB / 0.6811 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004666/0.0004667, allocations: 16.59 kB / 0.7951 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2584, allocations: 106.3 MB / 0.8989 GB, free: 65.88 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.01604/0.2745, allocations: 1.311 MB / 0.9002 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001071/0.2756, allocations: 365.8 kB / 0.9005 GB, free: 64.2 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.348e-05/0.2757, allocations: 0 / 0.9005 GB, free: 64.2 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001129/0.2759, allocations: 19.86 kB / 0.9005 GB, free: 64.18 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001896/0.2761, allocations: 27.94 kB / 0.9006 GB, free: 64.15 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003391/0.2764, allocations: 67.8 kB / 0.9006 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002197/0.2767, allocations: 107.8 kB / 0.9007 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.2768, allocations: 25.42 kB / 0.9008 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001925/0.2771, allocations: 67.77 kB / 0.9008 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002162/0.2773, allocations: 79.7 kB / 0.9009 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 4.008e-05/0.2774, allocations: 4 kB / 0.9009 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 4.538e-05/0.2774, allocations: 12 kB / 0.9009 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 8.581e-05/0.2775, allocations: 35.89 kB / 0.901 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 7.367e-05/0.2776, allocations: 49.64 kB / 0.901 GB, free: 63.7 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002215/0.2778, allocations: 115.7 kB / 0.9011 GB, free: 63.58 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.2779, allocations: 3.938 kB / 0.9011 GB, free: 63.58 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.427e-06/0.2779, allocations: 0 / 0.9011 GB, free: 63.58 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.2779, allocations: 3.938 kB / 0.9011 GB, free: 63.57 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.001332/0.2792, allocations: 471.1 kB / 0.9016 GB, free: 63.07 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.2793, allocations: 8.031 kB / 0.9016 GB, free: 63.06 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01311/0.2924, allocations: 15.81 kB / 0.9016 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003869/0.2929, allocations: 212.2 kB / 0.9018 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.79e-05/0.2929, allocations: 11.98 kB / 0.9018 GB, free: 62.79 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.046e-05/0.293, allocations: 19.94 kB / 0.9018 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007438/0.2938, allocations: 193.5 kB / 0.902 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.2938, allocations: 0 / 0.902 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.427e-05/0.2938, allocations: 0 / 0.902 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.2939, allocations: 7.984 kB / 0.902 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005051/0.2944, allocations: 99.89 kB / 0.9021 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.2954, allocations: 420.4 kB / 0.9025 GB, free: 62 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005502/0.296, allocations: 154.3 kB / 0.9027 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.654e-05/0.2961, allocations: 4 kB / 0.9027 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006461/0.2967, allocations: 195.9 kB / 0.9028 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=28): time 3.677e-06/0.2967, allocations: 0 / 0.9028 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of matching and sorting (n=28): time 0.001725/0.2985, allocations: 0.5895 MB / 0.9034 GB, free: 61.01 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.551e-05/0.2986, allocations: 59.39 kB / 0.9035 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001695/0.2987, allocations: 150.9 kB / 0.9036 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 6.471e-05/0.2988, allocations: 45.62 kB / 0.9037 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.262e-05/0.2989, allocations: 100.5 kB / 0.9038 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.299, allocations: 71.23 kB / 0.9038 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.272e-05/0.2991, allocations: 4 kB / 0.9038 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.108e-05/0.2992, allocations: 334.9 kB / 0.9042 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0019/0.3011, allocations: 104.3 kB / 0.9043 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005037/0.3016, allocations: 171.3 kB / 0.9044 GB, free: 59.92 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004718/0.3021, allocations: 125 kB / 0.9045 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.3021, allocations: 0 / 0.9045 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001165/0.3033, allocations: 347 kB / 0.9049 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.3034, allocations: 4 kB / 0.9049 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/0.3034, allocations: 4 kB / 0.9049 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.446e-05/0.3034, allocations: 8 kB / 0.9049 GB, free: 59.44 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005774/0.304, allocations: 64.06 kB / 0.9049 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/0.3041, allocations: 4 kB / 0.9049 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003937/0.3045, allocations: 43.66 kB / 0.905 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.67e-05/0.3045, allocations: 16 kB / 0.905 GB, free: 59.32 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition4,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition3,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,triMovMea.y,$PRE.triMovMea.iSample,triMovMea.iSample,$PRE.triMovMea.counter,triMovMea.counter,triMovMea.index,$PRE.triMovMea.ySample[1],triMovMea.ySample[1],$PRE.triMovMea.ySample[2],triMovMea.ySample[2],$PRE.triMovMea.ySample[3],triMovMea.ySample[3],triMovMea1.y,$PRE.triMovMea1.iSample,triMovMea1.iSample,$PRE.triMovMea1.counter,triMovMea1.counter,triMovMea1.index,$PRE.triMovMea1.ySample[1],triMovMea1.ySample[1],triMovMea2.y,$PRE.triMovMea2.iSample,triMovMea2.iSample,$PRE.triMovMea2.counter,triMovMea2.counter,triMovMea2.index,$PRE.triMovMea2.ySample[1],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002399/0.3048, allocations: 167.7 kB / 0.9052 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.616e-05/0.3049, allocations: 23.8 kB / 0.9052 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.828e-05/0.3049, allocations: 9.875 kB / 0.9052 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.305, allocations: 4 kB / 0.9052 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.305, allocations: 0 / 0.9052 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.305, allocations: 0 / 0.9052 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/0.307, allocations: 0.7268 MB / 0.9059 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.307, allocations: 0 / 0.9059 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.126e-05/0.3071, allocations: 8 kB / 0.9059 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.142e-06/0.3071, allocations: 0 / 0.9059 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.203e-05/0.3072, allocations: 11.97 kB / 0.9059 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/0.3072, allocations: 3.938 kB / 0.9059 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3072, allocations: 3.938 kB / 0.9059 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01914/0.3264, allocations: 451.9 kB / 0.9064 GB, free: 57.84 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 7.195e-05/0.3265, allocations: 92.91 kB / 0.9065 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.3266, allocations: 15.98 kB / 0.9065 GB, free: 57.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004441/0.3271, allocations: 19.98 kB / 0.9065 GB, free: 57.7 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.3272, allocations: 23.97 kB / 0.9065 GB, free: 57.67 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.707e-05/0.3273, allocations: 19.97 kB / 0.9065 GB, free: 57.65 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001319/0.3275, allocations: 103.3 kB / 0.9066 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of sort global known variables: time 7.21e-07/0.3275, allocations: 0 / 0.9066 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0007715/0.3283, allocations: 51.95 kB / 0.9067 GB, free: 57.5 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 27 (booPul.y,booPul1.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booPul.pulseStart,triMovMea.y,triMovMea.iSample,triMovMea.counter,triMovMea.index,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.y,triMovMea1.iSample,triMovMea1.counter,triMovMea1.index,triMovMea1.ySample[1],triMovMea2.y,triMovMea2.iSample,triMovMea2.counter,triMovMea2.index,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],booPul1.pulseStart) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002508/0.3286, allocations: 129.4 kB / 0.9068 GB, free: 57.37 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001154/0.3297, allocations: 267.7 kB / 0.9071 GB, free: 57.11 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.349e-06/0.3298, allocations: 0 / 0.9071 GB, free: 57.11 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0004992/0.3303, allocations: 123.8 kB / 0.9072 GB, free: 56.98 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005905/0.3309, allocations: 26.98 kB / 0.9072 GB, free: 56.96 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.3321, allocations: 359.2 kB / 0.9075 GB, free: 56.58 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/0.3323, allocations: 0.7247 MB / 0.9083 GB, free: 55.83 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001709/0.3325, allocations: 21.94 kB / 0.9083 GB, free: 55.81 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.3327, allocations: 27.42 kB / 0.9083 GB, free: 55.78 MB / 0.6042 GB Notification: Performance of SimCode: time 1.032e-06/0.3327, allocations: 4 kB / 0.9083 GB, free: 55.78 MB / 0.6042 GB Notification: Performance of Templates: time 0.01014/0.3428, allocations: 2.422 MB / 0.9107 GB, free: 53.37 MB / 0.6042 GB