Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_8_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001607/0.001606, allocations: 98.45 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.291/2.291, allocations: 205.4 MB / 222.1 MB, free: 5.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.689/1.689, allocations: 292.6 MB / 0.5497 GB, free: 14.61 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004666/0.0004667, allocations: 13.06 kB / 0.6737 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1698/0.1702, allocations: 116.3 MB / 0.7872 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.0008014/0.1711, allocations: 0.5765 MB / 0.7878 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001184/0.1723, allocations: 1.25 MB / 0.789 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.164e-05/0.1723, allocations: 4 kB / 0.789 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 6.495e-05/0.1724, allocations: 7.938 kB / 0.789 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.865e-05/0.1725, allocations: 31.88 kB / 0.7891 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005352/0.1731, allocations: 237.3 kB / 0.7893 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001517/0.1732, allocations: 147.8 kB / 0.7894 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.809e-05/0.1733, allocations: 33.09 kB / 0.7895 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001257/0.1734, allocations: 95.78 kB / 0.7896 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001505/0.1736, allocations: 103.7 kB / 0.7897 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.067e-05/0.1736, allocations: 15.94 kB / 0.7897 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.727e-05/0.1737, allocations: 27.98 kB / 0.7897 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.951e-05/0.1738, allocations: 31.89 kB / 0.7897 GB, free: 9.316 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.959e-05/0.1738, allocations: 61.56 kB / 0.7898 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001639/0.174, allocations: 183.8 kB / 0.79 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 1.733e-06/0.174, allocations: 0 / 0.79 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.353e-06/0.174, allocations: 0 / 0.79 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.377e-06/0.174, allocations: 0 / 0.79 GB, free: 9.07 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.000616/0.1747, allocations: 0.4908 MB / 0.7904 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.1747, allocations: 8.031 kB / 0.7904 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.408e-05/0.1747, allocations: 50.47 kB / 0.7905 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.393e-05/0.1748, allocations: 19.81 kB / 0.7905 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002056/0.175, allocations: 238.7 kB / 0.7907 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.452e-05/0.175, allocations: 16 kB / 0.7908 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.937e-05/0.1751, allocations: 19.98 kB / 0.7908 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002917/0.1754, allocations: 178.2 kB / 0.7909 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.1754, allocations: 4 kB / 0.791 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.18e-05/0.1754, allocations: 15.92 kB / 0.791 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.1754, allocations: 0 / 0.791 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001782/0.1756, allocations: 96.17 kB / 0.7911 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005021/0.1761, allocations: 468.7 kB / 0.7915 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002086/0.1763, allocations: 138.6 kB / 0.7916 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.1764, allocations: 4 kB / 0.7916 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002768/0.1767, allocations: 215.8 kB / 0.7918 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=28): time 1.523e-06/0.1767, allocations: 0 / 0.7918 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.000745/0.1774, allocations: 0.5955 MB / 0.7924 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.1775, allocations: 71.33 kB / 0.7925 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.7e-05/0.1776, allocations: 144.8 kB / 0.7926 GB, free: 6.078 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.616e-05/0.1776, allocations: 45.69 kB / 0.7927 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.104e-05/0.1777, allocations: 92.7 kB / 0.7928 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.13e-05/0.1777, allocations: 75.17 kB / 0.7928 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.515e-05/0.1778, allocations: 8 kB / 0.7928 GB, free: 5.852 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.26e-05/0.1778, allocations: 330.8 kB / 0.7932 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002467/0.1781, allocations: 148.7 kB / 0.7933 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002698/0.1784, allocations: 213.1 kB / 0.7935 GB, free: 5.141 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002661/0.1786, allocations: 212.5 kB / 0.7937 GB, free: 4.922 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1787, allocations: 0 / 0.7937 GB, free: 4.922 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000676/0.1793, allocations: 0.4937 MB / 0.7942 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.178e-05/0.1794, allocations: 67.39 kB / 0.7943 GB, free: 4.332 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.1794, allocations: 7.938 kB / 0.7943 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.118e-05/0.1794, allocations: 4 kB / 0.7943 GB, free: 4.32 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001963/0.1796, allocations: 52.03 kB / 0.7943 GB, free: 4.27 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.1796, allocations: 7.953 kB / 0.7943 GB, free: 4.262 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003745/0.18, allocations: 95.67 kB / 0.7944 GB, free: 4.168 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.212e-05/0.1801, allocations: 23.98 kB / 0.7944 GB, free: 4.145 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition5,$whenCondition6,$whenCondition4,$PRE.booPul1.y,booPul1.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2,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 (39): * Single equations (assignments): 35 * Array equations: 2 * Algorithm blocks: 2 * 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.0001336/0.1802, allocations: 165.8 kB / 0.7946 GB, free: 3.973 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.555e-05/0.1802, allocations: 19.83 kB / 0.7946 GB, free: 3.953 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.498e-05/0.1803, allocations: 13.88 kB / 0.7946 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.1803, allocations: 4 kB / 0.7946 GB, free: 3.934 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1803, allocations: 3.938 kB / 0.7946 GB, free: 3.93 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.1803, allocations: 3.953 kB / 0.7946 GB, free: 3.926 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006539/0.1809, allocations: 0.6668 MB / 0.7953 GB, free: 3.203 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.181, allocations: 0 / 0.7953 GB, free: 3.203 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.035e-05/0.181, allocations: 8 kB / 0.7953 GB, free: 3.195 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.181, allocations: 8 kB / 0.7953 GB, free: 3.188 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.333e-05/0.181, allocations: 15.97 kB / 0.7953 GB, free: 3.172 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.1811, allocations: 0 / 0.7953 GB, free: 3.172 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.1811, allocations: 3.953 kB / 0.7953 GB, free: 3.168 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004914/0.1816, allocations: 455 kB / 0.7958 GB, free: 2.707 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.277e-05/0.1816, allocations: 88.92 kB / 0.7958 GB, free: 2.602 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.667e-05/0.1817, allocations: 19.98 kB / 0.7959 GB, free: 2.582 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.1818, allocations: 15.92 kB / 0.7959 GB, free: 2.566 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.776e-05/0.1818, allocations: 15.94 kB / 0.7959 GB, free: 2.551 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.191e-05/0.1818, allocations: 27.97 kB / 0.7959 GB, free: 2.523 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.418e-05/0.1819, allocations: 99.2 kB / 0.796 GB, free: 2.426 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1819, allocations: 0 / 0.796 GB, free: 2.426 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002894/0.1822, allocations: 64 kB / 0.7961 GB, free: 2.363 MB / 0.6075 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 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,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.y) * 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.0007428/0.1829, allocations: 1.019 MB / 0.7971 GB, free: 1.324 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000561/0.1835, allocations: 462.4 kB / 0.7975 GB, free: 0.8477 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.1835, allocations: 0 / 0.7975 GB, free: 0.8477 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001768/0.1837, allocations: 119.9 kB / 0.7976 GB, free: 0.7305 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002257/0.1839, allocations: 35.92 kB / 0.7977 GB, free: 0.6953 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009111/0.1849, allocations: 1.502 MB / 0.7991 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001947/0.1851, allocations: 0.7245 MB / 0.7998 GB, free: 14.37 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 5.841e-05/0.1851, allocations: 25.72 kB / 0.7999 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.625e-05/0.1852, allocations: 43.42 kB / 0.7999 GB, free: 14.3 MB / 0.6231 GB Notification: Performance of SimCode: time 2.2e-07/0.1852, allocations: 0 / 0.7999 GB, free: 14.3 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3194/0.5046, allocations: 4.755 MB / 0.8045 GB, free: 9.73 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001764/0.5048, allocations: 200.2 kB / 0.8047 GB, free: 9.484 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.003/2.508, allocations: 0 / 0.8047 GB, free: 9.484 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) Environment - environmentSimulation: