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.001464/0.001464, allocations: 109.4 kB / 15.69 MB, free: 124 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.001702/0.001703, allocations: 188.6 kB / 16.62 MB, free: 6.578 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.638/1.638, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.802/1.802, allocations: 292.3 MB / 0.549 GB, free: 12.76 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.001574/0.001574, allocations: 68.31 kB / 0.6718 GB, free: 26.06 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2704, allocations: 114.5 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002221/0.2726, allocations: 0.8799 MB / 0.7845 GB, free: 12.37 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001756/0.2744, allocations: 1.305 MB / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.559e-05/0.2745, allocations: 0 / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001113/0.2747, allocations: 15.81 kB / 0.7858 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001389/0.2748, allocations: 27.78 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007456/0.2756, allocations: 269.2 kB / 0.7861 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000344/0.2759, allocations: 303.4 kB / 0.7864 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.276, allocations: 29.12 kB / 0.7864 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001883/0.2762, allocations: 131.7 kB / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002324/0.2765, allocations: 127.6 kB / 0.7866 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.451e-05/0.2765, allocations: 24 kB / 0.7867 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.162e-05/0.2766, allocations: 35.97 kB / 0.7867 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.385e-05/0.2767, allocations: 39.91 kB / 0.7867 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.2768, allocations: 99.61 kB / 0.7868 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003085/0.2772, allocations: 271.3 kB / 0.7871 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2772, allocations: 4 kB / 0.7871 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.352e-06/0.2772, allocations: 0 / 0.7871 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.2772, allocations: 0 / 0.7871 GB, free: 9.699 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.0009264/0.2781, allocations: 0.5416 MB / 0.7876 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.2782, allocations: 12.03 kB / 0.7876 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.217e-05/0.2782, allocations: 46.67 kB / 0.7877 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.065e-05/0.2783, allocations: 20.75 kB / 0.7877 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002727/0.2786, allocations: 228.9 kB / 0.7879 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.2786, allocations: 24.34 kB / 0.7879 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.32e-05/0.2787, allocations: 20.38 kB / 0.788 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003594/0.279, allocations: 185.8 kB / 0.7881 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.2791, allocations: 3.938 kB / 0.7881 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.993e-05/0.2791, allocations: 4 kB / 0.7881 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.2791, allocations: 4 kB / 0.7881 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002048/0.2793, allocations: 88.17 kB / 0.7882 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006081/0.2799, allocations: 480.5 kB / 0.7887 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002494/0.2802, allocations: 138.5 kB / 0.7888 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.2803, allocations: 96.75 kB / 0.7889 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.512e-05/0.2804, allocations: 0 / 0.7889 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003364/0.2807, allocations: 217 kB / 0.7891 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=28): time 1.403e-06/0.2807, allocations: 0 / 0.7891 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.0008203/0.2815, allocations: 449.7 kB / 0.7895 GB, free: 6.992 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.536e-05/0.2816, allocations: 63.33 kB / 0.7896 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.2817, allocations: 140.5 kB / 0.7897 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.965e-05/0.2818, allocations: 45.69 kB / 0.7898 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.609e-05/0.2819, allocations: 104.6 kB / 0.7899 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.651e-05/0.2819, allocations: 67.23 kB / 0.7899 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001381/0.2821, allocations: 90 kB / 0.79 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001249/0.2822, allocations: 330.8 kB / 0.7903 GB, free: 6.121 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002825/0.2825, allocations: 140.7 kB / 0.7905 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003153/0.2828, allocations: 213.2 kB / 0.7907 GB, free: 5.754 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005025/0.2833, allocations: 362.3 kB / 0.791 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2833, allocations: 0 / 0.791 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000798/0.2841, allocations: 0.495 MB / 0.7915 GB, free: 4.855 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.46e-05/0.2842, allocations: 67.39 kB / 0.7916 GB, free: 4.777 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.2842, allocations: 4 kB / 0.7916 GB, free: 4.773 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.779e-05/0.2843, allocations: 4 kB / 0.7916 GB, free: 4.77 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002208/0.2845, allocations: 51.84 kB / 0.7916 GB, free: 4.719 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.2845, allocations: 7.938 kB / 0.7916 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003611/0.2849, allocations: 75.62 kB / 0.7917 GB, free: 4.637 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.173e-05/0.2849, allocations: 23.98 kB / 0.7917 GB, free: 4.613 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,booPul1.y,$PRE.booPul1.y,$whenCondition4,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2,triMovMea2.ySample[3],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[1],triMovMea2.index,triMovMea2.counter,$PRE.triMovMea2.counter,triMovMea2.iSample,$PRE.triMovMea2.iSample,triMovMea2.y,triMovMea1.ySample[1],$PRE.triMovMea1.ySample[1],triMovMea1.index,triMovMea1.counter,$PRE.triMovMea1.counter,triMovMea1.iSample,$PRE.triMovMea1.iSample,triMovMea1.y,triMovMea.ySample[3],$PRE.triMovMea.ySample[3],triMovMea.ySample[2],$PRE.triMovMea.ySample[2],triMovMea.ySample[1],$PRE.triMovMea.ySample[1],triMovMea.index,triMovMea.counter,$PRE.triMovMea.counter,triMovMea.iSample,$PRE.triMovMea.iSample,triMovMea.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001783/0.2851, allocations: 166.5 kB / 0.7919 GB, free: 4.441 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.406e-05/0.2852, allocations: 19.8 kB / 0.7919 GB, free: 4.422 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.08e-05/0.2852, allocations: 9.875 kB / 0.7919 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.333e-06/0.2852, allocations: 7.984 kB / 0.7919 GB, free: 4.402 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.2852, allocations: 3.938 kB / 0.7919 GB, free: 4.398 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.2852, allocations: 3.938 kB / 0.7919 GB, free: 4.395 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008124/0.286, allocations: 0.6591 MB / 0.7926 GB, free: 3.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.2861, allocations: 0 / 0.7926 GB, free: 3.68 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.167e-05/0.2861, allocations: 11.92 kB / 0.7926 GB, free: 3.668 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.2861, allocations: 4 kB / 0.7926 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.795e-05/0.2861, allocations: 15.92 kB / 0.7926 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2862, allocations: 0 / 0.7926 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.2862, allocations: 3.938 kB / 0.7926 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006211/0.2868, allocations: 459 kB / 0.7931 GB, free: 3.18 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.456e-05/0.2869, allocations: 88.92 kB / 0.7931 GB, free: 3.074 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.108e-05/0.2869, allocations: 19.92 kB / 0.7932 GB, free: 3.055 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.287, allocations: 11.98 kB / 0.7932 GB, free: 3.043 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.374e-05/0.2871, allocations: 19.97 kB / 0.7932 GB, free: 3.023 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.088e-05/0.2871, allocations: 15.98 kB / 0.7932 GB, free: 3.008 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.471e-05/0.2872, allocations: 102.1 kB / 0.7933 GB, free: 2.91 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2872, allocations: 0 / 0.7933 GB, free: 2.91 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003224/0.2875, allocations: 71.89 kB / 0.7934 GB, free: 2.84 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 (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.0009635/0.2885, allocations: 1.018 MB / 0.7944 GB, free: 1.801 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006852/0.2892, allocations: 466.3 kB / 0.7948 GB, free: 1.32 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.2892, allocations: 0 / 0.7948 GB, free: 1.32 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002089/0.2894, allocations: 123.9 kB / 0.7949 GB, free: 1.199 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003452/0.2898, allocations: 27.97 kB / 0.795 GB, free: 1.172 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003253/0.2931, allocations: 2.655 MB / 0.7975 GB, free: 14.39 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000296/0.2934, allocations: 0.7203 MB / 0.7983 GB, free: 13.64 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 6.828e-05/0.2934, allocations: 25.72 kB / 0.7983 GB, free: 13.61 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.404e-05/0.2935, allocations: 43.42 kB / 0.7983 GB, free: 13.57 MB / 0.6231 GB Notification: Performance of SimCode: time 3.41e-07/0.2935, allocations: 7.938 kB / 0.7983 GB, free: 13.56 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02226/0.3158, allocations: 5.129 MB / 0.8033 GB, free: 8.574 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.184/8.5, allocations: 22.23 kB / 0.8034 GB, free: 8.559 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.csv --start-time -0.5 --stop-time 15 --timeout 50 --relative-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)