Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.427/1.427, allocations: 249.5 MB / 257 MB, free: 6.867 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.001035/0.001035, allocations: 180.8 kB / 316.3 MB, free: 3.242 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.633/1.633, allocations: 205.3 MB / 0.5671 GB, free: 15.86 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.0008977/0.0008979, allocations: 92.28 kB / 0.6714 GB, free: 4.98 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.339e-05/2.341e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2312, allocations: 106.3 MB / 0.8853 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8081/1.039, allocations: 132.5 MB / 1.015 GB, free: 4.875 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/1.04, allocations: 73.39 kB / 1.015 GB, free: 4.836 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01013/1.05, allocations: 3.621 MB / 1.018 GB, free: 1.836 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.063e-06/1.05, allocations: 0 / 1.018 GB, free: 1.836 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.081e-05/1.05, allocations: 7.938 kB / 1.018 GB, free: 1.828 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.0007182/1.051, allocations: 461.5 kB / 1.019 GB, free: 1.344 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/1.051, allocations: 12.02 kB / 1.019 GB, free: 1.332 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.412e-05/1.051, allocations: 27.7 kB / 1.019 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003081/1.051, allocations: 229.5 kB / 1.019 GB, free: 1.051 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.562e-05/1.051, allocations: 4 kB / 1.019 GB, free: 1.047 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.685e-05/1.051, allocations: 19.48 kB / 1.019 GB, free: 1.031 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002035/1.051, allocations: 76.55 kB / 1.019 GB, free: 0.9844 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002917/1.052, allocations: 177.3 kB / 1.019 GB, free: 0.8398 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/1.052, allocations: 0 / 1.019 GB, free: 0.8398 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.071e-05/1.052, allocations: 15.31 kB / 1.019 GB, free: 0.8281 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/1.052, allocations: 0 / 1.019 GB, free: 0.8281 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006331/1.052, allocations: 392.2 kB / 1.02 GB, free: 460 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002024/1.053, allocations: 130.3 kB / 1.02 GB, free: 360 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001224/1.053, allocations: 87.61 kB / 1.02 GB, free: 300 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.605e-05/1.053, allocations: 4 kB / 1.02 GB, free: 296 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002904/1.053, allocations: 187.2 kB / 1.02 GB, free: 136 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=28): time 4.168e-06/1.053, allocations: 0 / 1.02 GB, free: 136 kB / 0.6355 GB Notification: Performance of matching and sorting (n=28): time 0.0005616/1.054, allocations: 343.2 kB / 1.02 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/1.054, allocations: 54.72 kB / 1.02 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/1.054, allocations: 136 kB / 1.021 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.67e-05/1.054, allocations: 33.69 kB / 1.021 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.598e-05/1.054, allocations: 101.4 kB / 1.021 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 6.929e-05/1.054, allocations: 63.31 kB / 1.021 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.403e-05/1.054, allocations: 0 / 1.021 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001326/1.054, allocations: 333.5 kB / 1.021 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/1.054, allocations: 82.36 kB / 1.021 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/1.054, allocations: 143 kB / 1.021 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001531/1.055, allocations: 113.8 kB / 1.021 GB, free: 14.9 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/1.055, allocations: 0 / 1.021 GB, free: 14.9 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004016/1.055, allocations: 297.6 kB / 1.022 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/1.055, allocations: 7.984 kB / 1.022 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/1.055, allocations: 4.156 kB / 1.022 GB, free: 14.65 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/1.055, allocations: 4 kB / 1.022 GB, free: 14.65 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002826/1.055, allocations: 71.53 kB / 1.022 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/1.055, allocations: 0 / 1.022 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/1.056, allocations: 31.77 kB / 1.022 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.712e-05/1.056, allocations: 12 kB / 1.022 GB, free: 14.54 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.0001405/1.056, allocations: 145.5 kB / 1.022 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004744/1.056, allocations: 334.6 kB / 1.022 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.208e-05/1.056, allocations: 15.81 kB / 1.022 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.484e-05/1.056, allocations: 21.2 kB / 1.022 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/1.056, allocations: 4 kB / 1.022 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/1.056, allocations: 0 / 1.022 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/1.056, allocations: 0 / 1.022 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008827/1.057, allocations: 0.6782 MB / 1.023 GB, free: 13.47 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/1.057, allocations: 0 / 1.023 GB, free: 13.47 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.683e-05/1.057, allocations: 7.984 kB / 1.023 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.182e-06/1.057, allocations: 7.938 kB / 1.023 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.745e-05/1.057, allocations: 11.97 kB / 1.023 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/1.057, allocations: 0 / 1.023 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/1.057, allocations: 4 kB / 1.023 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005202/1.058, allocations: 432.8 kB / 1.023 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.714e-05/1.058, allocations: 92.92 kB / 1.023 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.244e-05/1.058, allocations: 14.8 kB / 1.023 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001774/1.058, allocations: 23.78 kB / 1.024 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.885e-05/1.058, allocations: 27.91 kB / 1.024 GB, free: 12.9 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.727e-05/1.058, allocations: 14.61 kB / 1.024 GB, free: 12.89 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.717e-05/1.058, allocations: 105.2 kB / 1.024 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.2e-07/1.058, allocations: 0 / 1.024 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002808/1.059, allocations: 40 kB / 1.024 GB, free: 12.76 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.0008776/1.06, allocations: 0.9975 MB / 1.025 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003938/1.06, allocations: 227.3 kB / 1.025 GB, free: 11.66 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/1.06, allocations: 0 / 1.025 GB, free: 11.66 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000159/1.06, allocations: 113.5 kB / 1.025 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/1.06, allocations: 30.39 kB / 1.025 GB, free: 11.55 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006628/1.061, allocations: 257.6 kB / 1.025 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/1.062, allocations: 0.7207 MB / 1.026 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 7.26e-05/1.062, allocations: 22.08 kB / 1.026 GB, free: 10.52 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.574e-05/1.062, allocations: 55.86 kB / 1.026 GB, free: 10.5 MB / 0.6511 GB Notification: Performance of SimCode: time 2.6e-07/1.062, allocations: 0 / 1.026 GB, free: 10.5 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02257/1.084, allocations: 3.674 MB / 1.03 GB, free: 6.848 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002266/1.085, allocations: 164.5 kB / 1.03 GB, free: 6.656 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.596/2.681, allocations: 1.719 kB / 1.03 GB, free: 6.656 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)