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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001732/0.001732, allocations: 105.4 kB / 15.7 MB, free: 24 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.002037/0.002037, allocations: 197.5 kB / 16.64 MB, free: 6.449 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.543 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.934/1.934, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001646/0.001646, allocations: 70.22 kB / 0.6723 GB, free: 25.97 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.286, allocations: 114.6 MB / 0.7841 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002809/0.2888, allocations: 0.8799 MB / 0.785 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002121/0.291, allocations: 1.305 MB / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.2911, allocations: 7.938 kB / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.2913, allocations: 7.875 kB / 0.7863 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001814/0.2915, allocations: 35.72 kB / 0.7863 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000875/0.2924, allocations: 266 kB / 0.7866 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004257/0.2928, allocations: 307.4 kB / 0.7869 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001373/0.293, allocations: 29.11 kB / 0.7869 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002715/0.2932, allocations: 123.8 kB / 0.787 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002323/0.2935, allocations: 131.5 kB / 0.7871 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.674e-05/0.2935, allocations: 24 kB / 0.7872 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.2937, allocations: 35.98 kB / 0.7872 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.163e-05/0.2937, allocations: 39.89 kB / 0.7872 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.2939, allocations: 103.6 kB / 0.7873 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003757/0.2942, allocations: 271.2 kB / 0.7876 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2943, allocations: 0 / 0.7876 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.342e-06/0.2943, allocations: 0 / 0.7876 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.2943, allocations: 0 / 0.7876 GB, free: 9.152 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.001065/0.2953, allocations: 0.5377 MB / 0.7881 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.2954, allocations: 8.031 kB / 0.7881 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.92e-05/0.2955, allocations: 16.84 kB / 0.7881 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002708/0.2957, allocations: 232.9 kB / 0.7884 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.731e-05/0.2958, allocations: 12.38 kB / 0.7884 GB, free: 8.25 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.602e-05/0.2958, allocations: 32.3 kB / 0.7884 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003517/0.2962, allocations: 178.8 kB / 0.7886 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.2962, allocations: 192 / 0.7886 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.879e-05/0.2963, allocations: 19.86 kB / 0.7886 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.2963, allocations: 0 / 0.7886 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002048/0.2965, allocations: 88.17 kB / 0.7887 GB, free: 7.93 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006215/0.2971, allocations: 472.6 kB / 0.7891 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000263/0.2974, allocations: 138.5 kB / 0.7893 GB, free: 7.273 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000162/0.2976, allocations: 96.81 kB / 0.7894 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.2976, allocations: 3.984 kB / 0.7894 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003305/0.2979, allocations: 205.1 kB / 0.7896 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=28): time 1.523e-06/0.2979, allocations: 4 kB / 0.7896 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.0008243/0.2988, allocations: 456.4 kB / 0.79 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.145e-05/0.2988, allocations: 55.41 kB / 0.7901 GB, free: 6.441 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.2989, allocations: 144.5 kB / 0.7902 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.594e-05/0.299, allocations: 45.7 kB / 0.7902 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.418e-05/0.2991, allocations: 104.6 kB / 0.7903 GB, free: 6.137 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.987e-05/0.2992, allocations: 59.34 kB / 0.7904 GB, free: 6.078 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.2993, allocations: 93.98 kB / 0.7905 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001375/0.2995, allocations: 338.7 kB / 0.7908 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002742/0.2998, allocations: 144.7 kB / 0.7909 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003079/0.3001, allocations: 213.2 kB / 0.7911 GB, free: 5.266 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005036/0.3006, allocations: 358.3 kB / 0.7915 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.778e-06/0.3006, allocations: 0 / 0.7915 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008126/0.3014, allocations: 0.4949 MB / 0.792 GB, free: 4.371 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.359e-05/0.3015, allocations: 71.39 kB / 0.792 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.3015, allocations: 4 kB / 0.792 GB, free: 4.285 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.3015, allocations: 4 kB / 0.792 GB, free: 4.281 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/0.3018, allocations: 47.91 kB / 0.7921 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.3018, allocations: 7.938 kB / 0.7921 GB, free: 4.227 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003468/0.3021, allocations: 79.61 kB / 0.7922 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.727e-05/0.3022, allocations: 23.98 kB / 0.7922 GB, free: 4.125 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.0002267/0.3024, allocations: 169.8 kB / 0.7924 GB, free: 3.949 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.415e-05/0.3025, allocations: 15.81 kB / 0.7924 GB, free: 3.934 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.358e-05/0.3025, allocations: 9.875 kB / 0.7924 GB, free: 3.922 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.3025, allocations: 4 kB / 0.7924 GB, free: 3.918 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.3025, allocations: 0 / 0.7924 GB, free: 3.918 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.3025, allocations: 7.922 kB / 0.7924 GB, free: 3.91 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008196/0.3034, allocations: 0.6556 MB / 0.793 GB, free: 3.199 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.3034, allocations: 3.938 kB / 0.793 GB, free: 3.195 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.722e-05/0.3034, allocations: 11.94 kB / 0.7931 GB, free: 3.184 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.3035, allocations: 4 kB / 0.7931 GB, free: 3.18 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.005e-05/0.3035, allocations: 15.97 kB / 0.7931 GB, free: 3.164 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.3035, allocations: 3.938 kB / 0.7931 GB, free: 3.16 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3035, allocations: 0 / 0.7931 GB, free: 3.16 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006202/0.3041, allocations: 463.7 kB / 0.7935 GB, free: 2.691 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.922e-05/0.3042, allocations: 88.92 kB / 0.7936 GB, free: 2.586 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.233e-05/0.3043, allocations: 15.98 kB / 0.7936 GB, free: 2.57 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/0.3044, allocations: 15.92 kB / 0.7936 GB, free: 2.555 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.452e-05/0.3044, allocations: 15.98 kB / 0.7936 GB, free: 2.539 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.567e-05/0.3045, allocations: 19.97 kB / 0.7937 GB, free: 2.52 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.569e-05/0.3046, allocations: 102.2 kB / 0.7938 GB, free: 2.422 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3046, allocations: 0 / 0.7938 GB, free: 2.422 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003636/0.3049, allocations: 60 kB / 0.7938 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 (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.0002369/0.3052, allocations: 153.3 kB / 0.794 GB, free: 2.207 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0007221/0.3059, allocations: 450.5 kB / 0.7944 GB, free: 1.742 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.3059, allocations: 0 / 0.7944 GB, free: 1.742 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002144/0.3062, allocations: 123.8 kB / 0.7945 GB, free: 1.621 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003562/0.3065, allocations: 32.22 kB / 0.7945 GB, free: 1.59 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005893/0.3071, allocations: 319.5 kB / 0.7949 GB, free: 1.258 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002888/0.3074, allocations: 0.7206 MB / 0.7956 GB, free: 0.5078 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.708e-05/0.3075, allocations: 21.55 kB / 0.7956 GB, free: 496 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.855e-05/0.3075, allocations: 19.44 kB / 0.7956 GB, free: 476 kB / 0.6075 GB Notification: Performance of SimCode: time 2.01e-07/0.3076, allocations: 0 / 0.7956 GB, free: 476 kB / 0.6075 GB Notification: Performance of Templates: time 0.006798/0.3144, allocations: 3.57 MB / 0.7991 GB, free: 12.92 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (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 & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)