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.342/2.342, allocations: 248.5 MB / 261.1 MB, free: 5.996 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001419/0.001419, allocations: 182.6 kB / 320.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.995/1.995, allocations: 205.2 MB / 0.571 GB, free: 11.82 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.001165/0.001165, allocations: 101.6 kB / 0.6754 GB, free: 0.9023 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.633e-05/3.647e-05, allocations: 4 kB / 0.7869 GB, free: 97.8 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2114/0.2114, allocations: 106.3 MB / 0.8907 GB, free: 7.449 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8847/1.096, allocations: 132 MB / 1.02 GB, free: 3.246 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/1.097, allocations: 71.27 kB / 1.02 GB, free: 3.207 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01742/1.114, allocations: 3.653 MB / 1.023 GB, free: 116 kB / 0.6355 GB Notification: Performance of FrontEnd: time 1.934e-06/1.114, allocations: 7.875 kB / 1.023 GB, free: 108 kB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.804e-05/1.114, allocations: 4 kB / 1.023 GB, free: 104 kB / 0.6355 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.001079/1.115, allocations: 462.5 kB / 1.024 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/1.115, allocations: 12.03 kB / 1.024 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.323e-05/1.115, allocations: 42.3 kB / 1.024 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.752e-05/1.115, allocations: 19.77 kB / 1.024 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003977/1.116, allocations: 225 kB / 1.024 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.84e-05/1.116, allocations: 11.86 kB / 1.024 GB, free: 15.28 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.006e-05/1.116, allocations: 15.69 kB / 1.024 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000512/1.117, allocations: 194.1 kB / 1.024 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/1.117, allocations: 3.984 kB / 1.024 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.144e-05/1.117, allocations: 19.31 kB / 1.024 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/1.117, allocations: 0 / 1.024 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003035/1.117, allocations: 90.47 kB / 1.024 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009767/1.118, allocations: 428.4 kB / 1.025 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003865/1.118, allocations: 143.3 kB / 1.025 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002867/1.119, allocations: 93.39 kB / 1.025 GB, free: 14.44 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/1.119, allocations: 4 kB / 1.025 GB, free: 14.44 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005022/1.119, allocations: 193.8 kB / 1.025 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=28): time 3.847e-06/1.119, allocations: 0 / 1.025 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of matching and sorting (n=28): time 0.001004/1.12, allocations: 351.2 kB / 1.025 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.378e-05/1.12, allocations: 61.16 kB / 1.026 GB, free: 13.92 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/1.12, allocations: 132.5 kB / 1.026 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.591e-05/1.121, allocations: 36.58 kB / 1.026 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.208e-05/1.121, allocations: 99.22 kB / 1.026 GB, free: 13.67 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 9.205e-05/1.121, allocations: 64.88 kB / 1.026 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.722e-05/1.121, allocations: 11.19 kB / 1.026 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001489/1.121, allocations: 333.8 kB / 1.026 GB, free: 13.29 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002704/1.121, allocations: 93.48 kB / 1.026 GB, free: 13.22 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003286/1.122, allocations: 164.6 kB / 1.026 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003063/1.122, allocations: 112.5 kB / 1.027 GB, free: 13 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/1.122, allocations: 0 / 1.027 GB, free: 13 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008223/1.123, allocations: 320 kB / 1.027 GB, free: 12.75 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.778e-05/1.123, allocations: 11.94 kB / 1.027 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/1.123, allocations: 0 / 1.027 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.378e-05/1.123, allocations: 7.938 kB / 1.027 GB, free: 12.73 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005594/1.123, allocations: 67.34 kB / 1.027 GB, free: 12.67 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.951e-05/1.123, allocations: 4 kB / 1.027 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003134/1.124, allocations: 42.34 kB / 1.027 GB, free: 12.63 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.442e-05/1.124, allocations: 15 kB / 1.027 GB, free: 12.62 MB / 0.6511 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 () * 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.0002147/1.124, allocations: 151.4 kB / 1.027 GB, free: 12.47 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.525e-05/1.124, allocations: 19.8 kB / 1.027 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.474e-05/1.124, allocations: 16.72 kB / 1.027 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/1.124, allocations: 8 kB / 1.027 GB, free: 12.44 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/1.124, allocations: 0 / 1.027 GB, free: 12.44 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/1.124, allocations: 3.938 kB / 1.027 GB, free: 12.44 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001623/1.126, allocations: 0.7178 MB / 1.028 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/1.126, allocations: 0 / 1.028 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.368e-05/1.126, allocations: 19.92 kB / 1.028 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.316e-06/1.126, allocations: 0 / 1.028 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.324e-05/1.126, allocations: 11.73 kB / 1.028 GB, free: 11.74 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.713e-06/1.126, allocations: 4 kB / 1.028 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/1.126, allocations: 0 / 1.028 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000929/1.127, allocations: 445.7 kB / 1.028 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.993e-05/1.127, allocations: 88.92 kB / 1.028 GB, free: 11.25 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.049e-05/1.127, allocations: 19.17 kB / 1.028 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003191/1.128, allocations: 27.84 kB / 1.028 GB, free: 11.21 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.906e-05/1.128, allocations: 19.41 kB / 1.028 GB, free: 11.2 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.782e-05/1.128, allocations: 11.98 kB / 1.028 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001095/1.128, allocations: 117.6 kB / 1.029 GB, free: 11.08 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.01e-07/1.128, allocations: 0 / 1.029 GB, free: 11.08 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000462/1.128, allocations: 55.05 kB / 1.029 GB, free: 11.04 MB / 0.6511 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]) * 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.001453/1.13, allocations: 1.007 MB / 1.03 GB, free: 10.07 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0008124/1.131, allocations: 250.2 kB / 1.03 GB, free: 9.895 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/1.131, allocations: 320 / 1.03 GB, free: 9.895 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0003218/1.131, allocations: 116.2 kB / 1.03 GB, free: 9.812 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004873/1.132, allocations: 31.47 kB / 1.03 GB, free: 9.785 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/1.133, allocations: 272 kB / 1.03 GB, free: 9.523 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/1.133, allocations: 0.7286 MB / 1.031 GB, free: 8.77 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001445/1.133, allocations: 22.06 kB / 1.031 GB, free: 8.75 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/1.134, allocations: 51.67 kB / 1.031 GB, free: 8.727 MB / 0.6511 GB Notification: Performance of SimCode: time 1.433e-06/1.134, allocations: 0 / 1.031 GB, free: 8.727 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03003/1.164, allocations: 4.05 MB / 1.035 GB, free: 4.832 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003541/1.164, allocations: 174.6 kB / 1.035 GB, free: 4.605 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.548/3.712, allocations: 0 / 1.035 GB, free: 4.605 MB / 0.6511 GB