Running: ./testmodel.py --libraries=/home/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 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.195/2.195, allocations: 251 MB / 265.9 MB, free: 11.7 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001668/0.001668, allocations: 171.3 kB / 325.5 MB, free: 2.91 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.348/2.348, allocations: 205.4 MB / 0.5764 GB, free: 21.16 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 100.1 kB / 0.6809 GB, free: 14.08 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004784/0.0004785, allocations: 8.844 kB / 0.7951 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.227/0.2276, allocations: 106.3 MB / 0.8988 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2488/0.4764, allocations: 132.1 MB / 1.028 GB, free: 13.7 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003996/0.4769, allocations: 75.94 kB / 1.028 GB, free: 13.62 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02721/0.5041, allocations: 3.663 MB / 1.031 GB, free: 9.953 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.557e-06/0.5042, allocations: 0 / 1.031 GB, free: 9.953 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.679e-05/0.5042, allocations: 4 kB / 1.031 GB, free: 9.949 MB / 0.6823 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.001532/0.5058, allocations: 484 kB / 1.032 GB, free: 9.426 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/0.5059, allocations: 12.03 kB / 1.032 GB, free: 9.414 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001046/0.506, allocations: 42.55 kB / 1.032 GB, free: 9.363 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001132/0.5061, allocations: 27.75 kB / 1.032 GB, free: 9.336 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005496/0.5067, allocations: 218.8 kB / 1.032 GB, free: 9.082 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.709e-05/0.5068, allocations: 16 kB / 1.032 GB, free: 9.066 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.664e-05/0.5069, allocations: 19.97 kB / 1.032 GB, free: 9.047 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009115/0.5078, allocations: 189.5 kB / 1.032 GB, free: 8.855 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.5079, allocations: 0 / 1.032 GB, free: 8.855 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.697e-05/0.5079, allocations: 15.94 kB / 1.032 GB, free: 8.84 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.508, allocations: 4 kB / 1.032 GB, free: 8.836 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006564/0.5086, allocations: 107.8 kB / 1.033 GB, free: 8.73 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001384/0.51, allocations: 428.4 kB / 1.033 GB, free: 8.262 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007173/0.5108, allocations: 150.5 kB / 1.033 GB, free: 8.105 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.906e-05/0.5108, allocations: 0 / 1.033 GB, free: 8.105 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008755/0.5117, allocations: 210.7 kB / 1.033 GB, free: 7.887 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=28): time 4.348e-06/0.5118, allocations: 0 / 1.033 GB, free: 7.887 MB / 0.6823 GB Notification: Performance of matching and sorting (n=28): time 0.00225/0.514, allocations: 454.9 kB / 1.034 GB, free: 7.441 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.966e-05/0.5142, allocations: 67.31 kB / 1.034 GB, free: 7.363 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002272/0.5144, allocations: 130.8 kB / 1.034 GB, free: 7.227 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 9.146e-05/0.5145, allocations: 41.7 kB / 1.034 GB, free: 7.18 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.5147, allocations: 108.5 kB / 1.034 GB, free: 7.07 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.5148, allocations: 67.27 kB / 1.034 GB, free: 7.004 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-05/0.5149, allocations: 8 kB / 1.034 GB, free: 6.996 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001918/0.5151, allocations: 330.8 kB / 1.034 GB, free: 6.664 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005621/0.5157, allocations: 104.7 kB / 1.035 GB, free: 6.559 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000632/0.5163, allocations: 172.3 kB / 1.035 GB, free: 6.363 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005868/0.5169, allocations: 109.4 kB / 1.035 GB, free: 6.258 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.052e-06/0.517, allocations: 3.938 kB / 1.035 GB, free: 6.254 MB / 0.6823 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001399/0.5184, allocations: 343.3 kB / 1.035 GB, free: 5.914 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.894e-05/0.5184, allocations: 4 kB / 1.035 GB, free: 5.91 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.5185, allocations: 4 kB / 1.035 GB, free: 5.906 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.773e-05/0.5185, allocations: 7.984 kB / 1.035 GB, free: 5.898 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007076/0.5192, allocations: 71.84 kB / 1.035 GB, free: 5.828 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.304e-05/0.5193, allocations: 4 kB / 1.035 GB, free: 5.824 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004819/0.5198, allocations: 47.83 kB / 1.035 GB, free: 5.777 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.534e-05/0.5198, allocations: 12 kB / 1.035 GB, free: 5.766 MB / 0.6823 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 (46): * Single equations (assignments): 46 * Array equations: 0 * 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.000345/0.5202, allocations: 169.8 kB / 1.035 GB, free: 5.59 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.227e-05/0.5203, allocations: 15.81 kB / 1.035 GB, free: 5.574 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.373e-05/0.5204, allocations: 17.86 kB / 1.035 GB, free: 5.562 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.377e-06/0.5204, allocations: 4 kB / 1.035 GB, free: 5.559 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-06/0.5204, allocations: 4 kB / 1.035 GB, free: 5.555 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.5205, allocations: 0 / 1.035 GB, free: 5.555 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002505/0.523, allocations: 0.7324 MB / 1.036 GB, free: 4.766 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.523, allocations: 0 / 1.036 GB, free: 4.766 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.5232, allocations: 11.98 kB / 1.036 GB, free: 4.754 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.167e-06/0.5232, allocations: 0 / 1.036 GB, free: 4.754 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.714e-05/0.5233, allocations: 7.984 kB / 1.036 GB, free: 4.746 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.532e-06/0.5233, allocations: 0 / 1.036 GB, free: 4.746 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.5233, allocations: 4 kB / 1.036 GB, free: 4.742 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001601/0.5249, allocations: 472.2 kB / 1.037 GB, free: 4.266 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001198/0.5251, allocations: 100.8 kB / 1.037 GB, free: 4.148 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.5252, allocations: 15.98 kB / 1.037 GB, free: 4.133 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007146/0.526, allocations: 27.92 kB / 1.037 GB, free: 4.105 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002131/0.5262, allocations: 23.95 kB / 1.037 GB, free: 4.082 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001295/0.5264, allocations: 11.98 kB / 1.037 GB, free: 4.07 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0003206/0.5267, allocations: 110.9 kB / 1.037 GB, free: 3.965 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.193e-06/0.5268, allocations: 0 / 1.037 GB, free: 3.965 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001435/0.5282, allocations: 59.94 kB / 1.037 GB, free: 3.906 MB / 0.6823 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[3],triMovMea.ySample[2],triMovMea.ySample[1],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 21 * 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.001746/0.53, allocations: 1.023 MB / 1.038 GB, free: 2.859 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0008766/0.5309, allocations: 259.7 kB / 1.038 GB, free: 2.605 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.728e-06/0.5309, allocations: 0 / 1.038 GB, free: 2.605 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003929/0.5313, allocations: 119.9 kB / 1.038 GB, free: 2.488 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004619/0.5318, allocations: 36.28 kB / 1.038 GB, free: 2.453 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.5336, allocations: 1.657 MB / 1.04 GB, free: 0.7109 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003684/0.534, allocations: 0.7249 MB / 1.041 GB, free: 15.95 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001592/0.5342, allocations: 21.95 kB / 1.041 GB, free: 15.93 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001509/0.5343, allocations: 51.3 kB / 1.041 GB, free: 15.89 MB / 0.698 GB Notification: Performance of SimCode: time 1.302e-06/0.5343, allocations: 0 / 1.041 GB, free: 15.89 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03157/0.5659, allocations: 4.028 MB / 1.045 GB, free: 12.04 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003225/0.5663, allocations: 195.7 kB / 1.045 GB, free: 11.8 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.551/3.118, allocations: 0 / 1.045 GB, free: 11.8 MB / 0.698 GB