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.001409/0.001409, 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.001754/0.001754, allocations: 193.3 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.744/1.744, allocations: 205.1 MB / 222.4 MB, free: 4.566 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.805/1.805, allocations: 292.3 MB / 0.5489 GB, free: 12.84 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.001529/0.001529, allocations: 73.47 kB / 0.6715 GB, free: 26.45 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2899, allocations: 114.5 MB / 0.7834 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.00252/0.2925, allocations: 0.8802 MB / 0.7842 GB, free: 12.61 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001969/0.2944, allocations: 1.302 MB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.034e-05/0.2945, allocations: 3.938 kB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001177/0.2947, allocations: 15.86 kB / 0.7855 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001493/0.2948, allocations: 27.72 kB / 0.7856 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007355/0.2956, allocations: 277.5 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000311/0.2959, allocations: 295.3 kB / 0.7861 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.296, allocations: 29.09 kB / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001748/0.2962, allocations: 115.8 kB / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002156/0.2964, allocations: 123.7 kB / 0.7864 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.845e-05/0.2965, allocations: 20 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001215/0.2966, allocations: 47.86 kB / 0.7864 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.24e-05/0.2967, allocations: 35.91 kB / 0.7865 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001297/0.2968, allocations: 107.6 kB / 0.7866 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000313/0.2972, allocations: 259.5 kB / 0.7868 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2972, allocations: 0 / 0.7868 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.234e-06/0.2972, allocations: 0 / 0.7868 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.093e-06/0.2972, allocations: 0 / 0.7868 GB, free: 9.965 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.0009633/0.2982, allocations: 0.5455 MB / 0.7873 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.2982, allocations: 8.031 kB / 0.7873 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.763e-05/0.2983, allocations: 16.84 kB / 0.7874 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000283/0.2986, allocations: 235.9 kB / 0.7876 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/0.2986, allocations: 20.3 kB / 0.7876 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.277e-05/0.2987, allocations: 16.38 kB / 0.7876 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003566/0.2991, allocations: 185.8 kB / 0.7878 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.2991, allocations: 4.125 kB / 0.7878 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.606e-05/0.2991, allocations: 15.94 kB / 0.7878 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.2991, allocations: 0 / 0.7878 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002004/0.2993, allocations: 88.17 kB / 0.7879 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000629/0.3, allocations: 476.6 kB / 0.7884 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002479/0.3002, allocations: 137.2 kB / 0.7885 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.3004, allocations: 96.8 kB / 0.7886 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.413e-05/0.3004, allocations: 0 / 0.7886 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003474/0.3008, allocations: 205 kB / 0.7888 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=28): time 1.763e-06/0.3008, allocations: 0 / 0.7888 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.0008889/0.3017, allocations: 460.5 kB / 0.7892 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.998e-05/0.3018, allocations: 55.41 kB / 0.7893 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.3019, allocations: 149.8 kB / 0.7894 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.504e-05/0.302, allocations: 37.7 kB / 0.7894 GB, free: 7.051 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.648e-05/0.3021, allocations: 104.5 kB / 0.7895 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.593e-05/0.3021, allocations: 67.27 kB / 0.7896 GB, free: 6.879 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001506/0.3023, allocations: 86 kB / 0.7897 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001559/0.3025, allocations: 338.8 kB / 0.79 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003049/0.3028, allocations: 148.7 kB / 0.7902 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003395/0.3031, allocations: 213.2 kB / 0.7904 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005251/0.3036, allocations: 354.4 kB / 0.7907 GB, free: 5.695 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.3037, allocations: 0 / 0.7907 GB, free: 5.695 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008674/0.3045, allocations: 0.4987 MB / 0.7912 GB, free: 5.18 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.664e-05/0.3046, allocations: 71.39 kB / 0.7913 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.3046, allocations: 0 / 0.7913 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.3047, allocations: 8.125 kB / 0.7913 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002179/0.3049, allocations: 51.91 kB / 0.7913 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.3049, allocations: 4 kB / 0.7913 GB, free: 5.035 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004124/0.3053, allocations: 79.55 kB / 0.7914 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.446e-05/0.3054, allocations: 20.09 kB / 0.7914 GB, free: 4.938 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.0001808/0.3056, allocations: 170.4 kB / 0.7916 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.55e-05/0.3056, allocations: 15.81 kB / 0.7916 GB, free: 4.746 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.818e-05/0.3056, allocations: 13.86 kB / 0.7916 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.3057, allocations: 4 kB / 0.7916 GB, free: 4.727 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3057, allocations: 0 / 0.7916 GB, free: 4.727 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.3057, allocations: 3.938 kB / 0.7916 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008092/0.3065, allocations: 0.6595 MB / 0.7923 GB, free: 4.008 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.3065, allocations: 8 kB / 0.7923 GB, free: 4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.47e-05/0.3066, allocations: 11.98 kB / 0.7923 GB, free: 3.988 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3066, allocations: 3.938 kB / 0.7923 GB, free: 3.984 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.368e-05/0.3066, allocations: 7.984 kB / 0.7923 GB, free: 3.977 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.3066, allocations: 3.938 kB / 0.7923 GB, free: 3.973 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3066, allocations: 0 / 0.7923 GB, free: 3.973 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006089/0.3072, allocations: 459.7 kB / 0.7927 GB, free: 3.508 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.172e-05/0.3073, allocations: 100.8 kB / 0.7928 GB, free: 3.391 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.57e-05/0.3074, allocations: 19.98 kB / 0.7928 GB, free: 3.371 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.3075, allocations: 7.938 kB / 0.7928 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.373e-05/0.3076, allocations: 19.97 kB / 0.7929 GB, free: 3.344 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.942e-05/0.3076, allocations: 15.98 kB / 0.7929 GB, free: 3.328 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.336e-05/0.3077, allocations: 106.1 kB / 0.793 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3077, allocations: 0 / 0.793 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003293/0.308, allocations: 63.98 kB / 0.793 GB, free: 3.164 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.0002194/0.3082, allocations: 145.3 kB / 0.7932 GB, free: 3.016 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0007536/0.309, allocations: 466.5 kB / 0.7936 GB, free: 2.535 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.309, allocations: 4 kB / 0.7936 GB, free: 2.531 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002161/0.3092, allocations: 123.9 kB / 0.7937 GB, free: 2.41 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003464/0.3096, allocations: 36.2 kB / 0.7938 GB, free: 2.375 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006054/0.3102, allocations: 325.1 kB / 0.7941 GB, free: 2.035 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.3105, allocations: 0.7167 MB / 0.7948 GB, free: 1.289 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.494e-05/0.3106, allocations: 25.48 kB / 0.7948 GB, free: 1.262 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.921e-05/0.3107, allocations: 19.44 kB / 0.7948 GB, free: 1.242 MB / 0.6075 GB Notification: Performance of SimCode: time 4.01e-07/0.3107, allocations: 0 / 0.7948 GB, free: 1.242 MB / 0.6075 GB Notification: Performance of Templates: time 0.006856/0.3175, allocations: 3.565 MB / 0.7983 GB, free: 13.71 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)