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.366/2.366, allocations: 248.7 MB / 256.2 MB, free: 7.078 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.00148/0.001479, allocations: 182 kB / 315.4 MB, free: 3.992 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.145/2.145, allocations: 205.3 MB / 0.5662 GB, free: 0.5312 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 95.73 kB / 0.6704 GB, free: 5.746 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.302e-05/2.31e-05, allocations: 4 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2132/0.2132, allocations: 106.3 MB / 0.8841 GB, free: 12.96 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9505/1.164, allocations: 132.2 MB / 1.013 GB, free: 6.781 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003737/1.164, allocations: 71.83 kB / 1.013 GB, free: 6.742 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.02549/1.19, allocations: 3.639 MB / 1.017 GB, free: 3.723 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.295e-06/1.19, allocations: 3.938 kB / 1.017 GB, free: 3.719 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.176e-05/1.19, allocations: 4 kB / 1.017 GB, free: 3.715 MB / 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.001415/1.191, allocations: 454.6 kB / 1.017 GB, free: 3.234 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.7e-05/1.191, allocations: 8.031 kB / 1.017 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.094e-05/1.191, allocations: 23.77 kB / 1.017 GB, free: 3.203 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004269/1.192, allocations: 228.8 kB / 1.018 GB, free: 2.953 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.569e-05/1.192, allocations: 4 kB / 1.018 GB, free: 2.949 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.034e-05/1.192, allocations: 19.92 kB / 1.018 GB, free: 2.934 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002863/1.192, allocations: 74.98 kB / 1.018 GB, free: 2.887 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004334/1.193, allocations: 179.7 kB / 1.018 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/1.193, allocations: 3.953 kB / 1.018 GB, free: 2.738 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.02e-05/1.193, allocations: 11.92 kB / 1.018 GB, free: 2.73 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.759e-06/1.193, allocations: 8 kB / 1.018 GB, free: 2.723 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009732/1.194, allocations: 386.9 kB / 1.018 GB, free: 2.348 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003452/1.194, allocations: 132.6 kB / 1.018 GB, free: 2.246 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002088/1.194, allocations: 91.47 kB / 1.018 GB, free: 2.188 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.501e-05/1.194, allocations: 12.95 kB / 1.018 GB, free: 2.176 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004447/1.195, allocations: 180.8 kB / 1.019 GB, free: 2.023 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=28): time 3.667e-06/1.195, allocations: 4 kB / 1.019 GB, free: 2.02 MB / 0.6355 GB Notification: Performance of matching and sorting (n=28): time 0.0009298/1.196, allocations: 333.6 kB / 1.019 GB, free: 1.758 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.055e-05/1.196, allocations: 59.41 kB / 1.019 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001734/1.196, allocations: 124.6 kB / 1.019 GB, free: 1.566 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 5.287e-05/1.196, allocations: 33.52 kB / 1.019 GB, free: 1.531 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.602e-05/1.196, allocations: 99.97 kB / 1.019 GB, free: 1.438 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/1.196, allocations: 58.95 kB / 1.019 GB, free: 1.391 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.217e-05/1.196, allocations: 0 / 1.019 GB, free: 1.391 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001483/1.197, allocations: 334.4 kB / 1.02 GB, free: 1.066 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002282/1.197, allocations: 91.17 kB / 1.02 GB, free: 1.004 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002925/1.197, allocations: 154.6 kB / 1.02 GB, free: 0.8633 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002708/1.197, allocations: 103.7 kB / 1.02 GB, free: 0.793 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/1.197, allocations: 3.953 kB / 1.02 GB, free: 0.7891 MB / 0.6355 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007596/1.198, allocations: 292.7 kB / 1.02 GB, free: 0.5586 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/1.198, allocations: 4 kB / 1.02 GB, free: 0.5547 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/1.198, allocations: 4 kB / 1.02 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.494e-05/1.198, allocations: 7.938 kB / 1.02 GB, free: 0.543 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005588/1.199, allocations: 71.72 kB / 1.02 GB, free: 488 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/1.199, allocations: 4 kB / 1.02 GB, free: 484 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003065/1.199, allocations: 31.98 kB / 1.02 GB, free: 452 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.527e-05/1.199, allocations: 15.73 kB / 1.02 GB, free: 440 kB / 0.6355 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.0002177/1.2, allocations: 138 kB / 1.021 GB, free: 300 kB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008103/1.2, allocations: 345.5 kB / 1.021 GB, free: 16 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.624e-05/1.2, allocations: 19.86 kB / 1.021 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.12e-05/1.201, allocations: 13.28 kB / 1.021 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/1.201, allocations: 4 kB / 1.021 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/1.201, allocations: 4 kB / 1.021 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/1.201, allocations: 0 / 1.021 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001546/1.202, allocations: 0.6706 MB / 1.022 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/1.202, allocations: 0 / 1.022 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001014/1.202, allocations: 11.94 kB / 1.022 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.169e-05/1.202, allocations: 4 kB / 1.022 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.428e-05/1.202, allocations: 15.84 kB / 1.022 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/1.202, allocations: 0 / 1.022 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/1.202, allocations: 0 / 1.022 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008545/1.203, allocations: 432.9 kB / 1.022 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.793e-05/1.203, allocations: 88.92 kB / 1.022 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.117e-05/1.204, allocations: 19.17 kB / 1.022 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003294/1.204, allocations: 23.97 kB / 1.022 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.384e-05/1.204, allocations: 23.53 kB / 1.022 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.063e-05/1.204, allocations: 11.98 kB / 1.022 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001057/1.204, allocations: 108.4 kB / 1.022 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of sort global known variables: time 7.91e-07/1.204, allocations: 0 / 1.022 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0004959/1.205, allocations: 47.94 kB / 1.022 GB, free: 14.65 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.001265/1.206, allocations: 0.9946 MB / 1.023 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0006797/1.207, allocations: 223.4 kB / 1.023 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/1.207, allocations: 0 / 1.023 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002694/1.207, allocations: 109.7 kB / 1.024 GB, free: 13.47 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004867/1.207, allocations: 35.34 kB / 1.024 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/1.209, allocations: 253 kB / 1.024 GB, free: 13.19 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000388/1.209, allocations: 0.7207 MB / 1.025 GB, free: 12.44 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001437/1.209, allocations: 30.25 kB / 1.025 GB, free: 12.41 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/1.209, allocations: 48.97 kB / 1.025 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of SimCode: time 1.312e-06/1.209, allocations: 4 kB / 1.025 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04706/1.256, allocations: 3.669 MB / 1.028 GB, free: 8.742 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005091/1.257, allocations: 160.2 kB / 1.028 GB, free: 8.547 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.506/3.763, allocations: 6.5 kB / 1.028 GB, free: 8.543 MB / 0.6511 GB