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.001231/0.001231, 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.001209/0.001209, allocations: 199.5 kB / 16.54 MB, free: 6.672 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.429/1.429, allocations: 205.1 MB / 222.4 MB, free: 4.613 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.734/1.734, 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.001484/0.001484, allocations: 65.02 kB / 0.6716 GB, free: 26.05 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2853, allocations: 114.5 MB / 0.7835 GB, free: 13.35 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002135/0.2875, allocations: 0.8912 MB / 0.7843 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00162/0.2891, allocations: 1.302 MB / 0.7856 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.276e-05/0.2892, allocations: 4 kB / 0.7856 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 9.717e-05/0.2893, allocations: 15.8 kB / 0.7856 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001305/0.2894, allocations: 35.7 kB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000653/0.2901, allocations: 253.4 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003004/0.2904, allocations: 303.3 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.2905, allocations: 33.09 kB / 0.7862 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000178/0.2907, allocations: 127.7 kB / 0.7864 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.2909, allocations: 115.7 kB / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.176e-05/0.291, allocations: 24 kB / 0.7865 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.238e-05/0.2911, allocations: 43.92 kB / 0.7865 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.627e-05/0.2912, allocations: 39.89 kB / 0.7866 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.2913, allocations: 107.6 kB / 0.7867 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002937/0.2916, allocations: 263.5 kB / 0.7869 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.2916, allocations: 0 / 0.7869 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2916, allocations: 0 / 0.7869 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.05e-06/0.2916, allocations: 0 / 0.7869 GB, free: 9.801 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.0009733/0.2926, allocations: 0.5415 MB / 0.7875 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.2926, allocations: 12.03 kB / 0.7875 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.327e-05/0.2927, allocations: 42.73 kB / 0.7875 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.389e-05/0.2928, allocations: 20.75 kB / 0.7875 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002925/0.2931, allocations: 237 kB / 0.7878 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.979e-05/0.2931, allocations: 12.36 kB / 0.7878 GB, free: 8.832 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.995e-05/0.2932, allocations: 20.38 kB / 0.7878 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003901/0.2936, allocations: 185.8 kB / 0.788 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.2936, allocations: 3.938 kB / 0.788 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.568e-05/0.2936, allocations: 4 kB / 0.788 GB, free: 8.617 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.2936, allocations: 4 kB / 0.788 GB, free: 8.613 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002131/0.2939, allocations: 88.17 kB / 0.7881 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006509/0.2945, allocations: 484.5 kB / 0.7885 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002489/0.2948, allocations: 130.5 kB / 0.7886 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001777/0.295, allocations: 99.23 kB / 0.7887 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.704e-05/0.295, allocations: 0 / 0.7887 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003429/0.2953, allocations: 209 kB / 0.7889 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=28): time 1.773e-06/0.2954, allocations: 0 / 0.7889 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.000852/0.2962, allocations: 457.6 kB / 0.7894 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.617e-05/0.2963, allocations: 55.41 kB / 0.7894 GB, free: 7.039 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001518/0.2964, allocations: 148.5 kB / 0.7896 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.046e-05/0.2965, allocations: 41.7 kB / 0.7896 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.844e-05/0.2966, allocations: 104.6 kB / 0.7897 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.228e-05/0.2967, allocations: 71.17 kB / 0.7898 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/0.2968, allocations: 86 kB / 0.7899 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000137/0.297, allocations: 330.8 kB / 0.7902 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002914/0.2973, allocations: 148.6 kB / 0.7903 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003178/0.2976, allocations: 217.1 kB / 0.7905 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005194/0.2981, allocations: 362.4 kB / 0.7909 GB, free: 5.477 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.2981, allocations: 4 kB / 0.7909 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000816/0.299, allocations: 0.491 MB / 0.7913 GB, free: 4.965 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.337e-05/0.299, allocations: 67.39 kB / 0.7914 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.299, allocations: 4 kB / 0.7914 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.2991, allocations: 4 kB / 0.7914 GB, free: 4.879 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002291/0.2993, allocations: 47.91 kB / 0.7915 GB, free: 4.832 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.2993, allocations: 4 kB / 0.7915 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004046/0.2997, allocations: 87.67 kB / 0.7916 GB, free: 4.742 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.121e-05/0.2998, allocations: 20 kB / 0.7916 GB, free: 4.723 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.0002109/0.3, allocations: 165.8 kB / 0.7917 GB, free: 4.551 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.668e-05/0.3, allocations: 15.81 kB / 0.7917 GB, free: 4.535 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.052e-05/0.3001, allocations: 17.86 kB / 0.7918 GB, free: 4.516 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.688e-06/0.3001, allocations: 4 kB / 0.7918 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.3001, allocations: 0 / 0.7918 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.3001, allocations: 3.938 kB / 0.7918 GB, free: 4.508 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000915/0.301, allocations: 0.6591 MB / 0.7924 GB, free: 3.793 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.3011, allocations: 0 / 0.7924 GB, free: 3.793 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.285e-05/0.3011, allocations: 7.984 kB / 0.7924 GB, free: 3.785 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.3011, allocations: 4 kB / 0.7924 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.685e-05/0.3011, allocations: 15.92 kB / 0.7924 GB, free: 3.766 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.3012, allocations: 0 / 0.7924 GB, free: 3.766 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3012, allocations: 0 / 0.7924 GB, free: 3.766 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005909/0.3017, allocations: 459 kB / 0.7929 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.404e-05/0.3018, allocations: 96.84 kB / 0.793 GB, free: 3.188 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.567e-05/0.3019, allocations: 27.92 kB / 0.793 GB, free: 3.16 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.302, allocations: 4 kB / 0.793 GB, free: 3.156 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.299e-05/0.3021, allocations: 23.97 kB / 0.793 GB, free: 3.133 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-05/0.3021, allocations: 15.98 kB / 0.793 GB, free: 3.117 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.117e-05/0.3022, allocations: 101.9 kB / 0.7931 GB, free: 3.02 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3022, allocations: 0 / 0.7931 GB, free: 3.02 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003406/0.3025, allocations: 71.89 kB / 0.7932 GB, free: 2.949 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.000983/0.3035, allocations: 1.027 MB / 0.7942 GB, free: 1.898 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0007284/0.3042, allocations: 474.3 kB / 0.7947 GB, free: 1.41 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3043, allocations: 0 / 0.7947 GB, free: 1.41 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002266/0.3045, allocations: 119.9 kB / 0.7948 GB, free: 1.293 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003465/0.3048, allocations: 36.16 kB / 0.7948 GB, free: 1.258 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003265/0.3081, allocations: 2.653 MB / 0.7974 GB, free: 14.48 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.3084, allocations: 0.7164 MB / 0.7981 GB, free: 13.73 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 7.185e-05/0.3085, allocations: 21.55 kB / 0.7981 GB, free: 13.71 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.909e-05/0.3086, allocations: 43.42 kB / 0.7982 GB, free: 13.67 MB / 0.6231 GB Notification: Performance of SimCode: time 5.81e-07/0.3086, allocations: 0 / 0.7982 GB, free: 13.67 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02211/0.3307, allocations: 5.109 MB / 0.8032 GB, free: 8.688 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.164/8.495, allocations: 12.12 kB / 0.8032 GB, free: 8.676 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)