Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.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.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_8_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_8_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",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.001161/0.001161, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 192 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.244/1.244, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.542/1.542, allocations: 292.3 MB / 0.5489 GB, free: 12.82 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.001474/0.001474, allocations: 75.98 kB / 0.6716 GB, free: 26.1 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1693/0.1708, allocations: 114.6 MB / 0.7835 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.00237/0.1732, allocations: 1.388 MB / 0.7849 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.000481/0.1737, allocations: 284 kB / 0.7851 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.729e-05/0.1737, allocations: 0 / 0.7851 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 7.528e-05/0.1738, allocations: 7.938 kB / 0.7851 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001033/0.1739, allocations: 11.88 kB / 0.7851 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001248/0.1741, allocations: 35.89 kB / 0.7852 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001232/0.1742, allocations: 63.84 kB / 0.7852 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.773e-05/0.1743, allocations: 4 kB / 0.7852 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.733e-05/0.1744, allocations: 39.84 kB / 0.7853 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.854e-05/0.1745, allocations: 31.84 kB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.656e-05/0.1745, allocations: 4 kB / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.331e-05/0.1745, allocations: 4 kB / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.208e-05/0.1746, allocations: 8 kB / 0.7853 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.614e-05/0.1746, allocations: 27.86 kB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.036e-05/0.1747, allocations: 67.98 kB / 0.7854 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.1747, allocations: 0 / 0.7854 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.022e-06/0.1747, allocations: 0 / 0.7854 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.597e-06/0.1747, allocations: 4 kB / 0.7854 GB, free: 11.36 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004278/0.1752, allocations: 397 kB / 0.7858 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.105e-05/0.1752, allocations: 8.031 kB / 0.7858 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.785e-05/0.1752, allocations: 34.75 kB / 0.7858 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.704e-05/0.1753, allocations: 8.844 kB / 0.7859 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.1754, allocations: 180.2 kB / 0.786 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.914e-06/0.1754, allocations: 384 / 0.786 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.127e-05/0.1754, allocations: 4.375 kB / 0.786 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001432/0.1756, allocations: 78.22 kB / 0.7861 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.1756, allocations: 3.938 kB / 0.7861 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.1756, allocations: 0 / 0.7861 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-06/0.1756, allocations: 0 / 0.7861 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.821e-05/0.1757, allocations: 39.97 kB / 0.7861 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003467/0.1761, allocations: 284.7 kB / 0.7864 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001105/0.1762, allocations: 82.42 kB / 0.7865 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.17e-05/0.1763, allocations: 56.89 kB / 0.7865 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.615e-05/0.1763, allocations: 3.984 kB / 0.7866 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001657/0.1765, allocations: 114.1 kB / 0.7867 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.342e-06/0.1765, allocations: 3.938 kB / 0.7867 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0003527/0.1769, allocations: 199.7 kB / 0.7869 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.437e-05/0.1769, allocations: 118.8 kB / 0.787 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.662e-05/0.177, allocations: 109.8 kB / 0.7871 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.177, allocations: 29.7 kB / 0.7871 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.702e-05/0.1771, allocations: 88.12 kB / 0.7872 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.686e-05/0.1771, allocations: 27.72 kB / 0.7872 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.619e-05/0.1772, allocations: 33.7 kB / 0.7872 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.1773, allocations: 322.8 kB / 0.7876 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8e-05/0.1774, allocations: 43.98 kB / 0.7876 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001178/0.1775, allocations: 100.5 kB / 0.7877 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/0.1777, allocations: 211.7 kB / 0.7879 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.1777, allocations: 4 kB / 0.7879 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002787/0.178, allocations: 203 kB / 0.7881 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.723e-05/0.178, allocations: 29.7 kB / 0.7881 GB, free: 8.25 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.178, allocations: 4 kB / 0.7881 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.1781, allocations: 4 kB / 0.7881 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.997e-05/0.1782, allocations: 28.2 kB / 0.7882 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.1782, allocations: 8 kB / 0.7882 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.712e-05/0.1783, allocations: 15.78 kB / 0.7882 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.353e-05/0.1783, allocations: 12 kB / 0.7882 GB, free: 8.18 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 (movMea.iSample,$PRE.movMea.iSample,movMea.counter,$PRE.movMea.counter,movMea.ySample[4],$PRE.movMea.ySample[4],movMea.ySample[3],$PRE.movMea.ySample[3],movMea.ySample[2],$PRE.movMea.ySample[2],movMea.ySample[1],$PRE.movMea.ySample[1],movMea.index,$PRE.movMea.index,movMea.y,$PRE.movMea.y,movMea.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001186/0.1784, allocations: 176.1 kB / 0.7884 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.974e-05/0.1784, allocations: 11.91 kB / 0.7884 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.756e-05/0.1784, allocations: 4.375 kB / 0.7884 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.1785, allocations: 0 / 0.7884 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.1785, allocations: 4 kB / 0.7884 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-06/0.1785, allocations: 0 / 0.7884 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000121/0.1786, allocations: 197.5 kB / 0.7886 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1786, allocations: 0 / 0.7886 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.623e-05/0.1786, allocations: 4 kB / 0.7886 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.1786, allocations: 0 / 0.7886 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.1787, allocations: 3.984 kB / 0.7886 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.1787, allocations: 4 kB / 0.7886 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1787, allocations: 0 / 0.7886 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003008/0.179, allocations: 234.5 kB / 0.7888 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.395e-05/0.179, allocations: 88.98 kB / 0.7889 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.712e-05/0.1791, allocations: 4 kB / 0.7889 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.737e-05/0.1791, allocations: 7.984 kB / 0.7889 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.761e-05/0.1792, allocations: 8 kB / 0.7889 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.879e-06/0.1792, allocations: 4 kB / 0.7889 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.64e-05/0.1792, allocations: 87.27 kB / 0.789 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.1792, allocations: 3.938 kB / 0.789 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002081/0.1794, allocations: 27.91 kB / 0.789 GB, free: 7.219 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: 10 ($whenCondition1,movMea.y,movMea.sampleTrigger,movMea.iSample,movMea.counter,movMea.index,movMea.ySample[1],movMea.ySample[2],movMea.ySample[3],movMea.ySample[4]) * Number of discrete states: 9 (movMea.iSample,movMea.y,movMea.counter,movMea.ySample[4],movMea.ySample[3],movMea.ySample[2],movMea.ySample[1],movMea.index,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005371/0.18, allocations: 0.7687 MB / 0.7898 GB, free: 6.418 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002413/0.1802, allocations: 171.3 kB / 0.7899 GB, free: 6.238 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.1802, allocations: 0 / 0.7899 GB, free: 6.238 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001659/0.1804, allocations: 191.3 kB / 0.7901 GB, free: 6.039 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001687/0.1806, allocations: 13.72 kB / 0.7901 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001395/0.182, allocations: 1.61 MB / 0.7917 GB, free: 4.277 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002105/0.1822, allocations: 0.6846 MB / 0.7924 GB, free: 3.566 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.506e-05/0.1823, allocations: 12.66 kB / 0.7924 GB, free: 3.551 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.281e-05/0.1823, allocations: 15.44 kB / 0.7924 GB, free: 3.539 MB / 0.6075 GB Notification: Performance of SimCode: time 2.21e-07/0.1823, allocations: 0 / 0.7924 GB, free: 3.539 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01656/0.1989, allocations: 2.029 MB / 0.7944 GB, free: 1.609 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.583/6.782, allocations: 17.47 kB / 0.7944 GB, free: 1.598 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean_res.csv --start-time -0.5 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.fmu > Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)