Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.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.Continuous.Validation.MovingMean_nonZeroStart,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 195.6 kB / 16.25 MB, free: 6.621 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.61/1.61, allocations: 205.1 MB / 222.1 MB, free: 4.703 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.785/1.785, allocations: 292.2 MB / 0.5485 GB, free: 13.67 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.001537/0.001537, allocations: 71.97 kB / 0.671 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.319, allocations: 114.5 MB / 0.7829 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart): time 0.003261/0.3223, allocations: 2.018 MB / 0.7848 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001155/0.3234, allocations: 0.6827 MB / 0.7855 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.966e-05/0.3235, allocations: 4 kB / 0.7855 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 5.762e-05/0.3236, allocations: 15.86 kB / 0.7855 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001233/0.3238, allocations: 31.7 kB / 0.7856 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004301/0.3242, allocations: 131.8 kB / 0.7857 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003122/0.3245, allocations: 335.1 kB / 0.786 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.3247, allocations: 44.39 kB / 0.786 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000189/0.3249, allocations: 127.7 kB / 0.7862 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002071/0.3251, allocations: 151.3 kB / 0.7863 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.715e-05/0.3252, allocations: 32 kB / 0.7863 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.718e-05/0.3253, allocations: 28 kB / 0.7864 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.026e-05/0.3253, allocations: 75.8 kB / 0.7864 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001486/0.3255, allocations: 139.3 kB / 0.7866 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002969/0.3258, allocations: 307.3 kB / 0.7869 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3258, allocations: 0 / 0.7869 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.455e-06/0.3258, allocations: 0 / 0.7869 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.006e-05/0.3258, allocations: 0 / 0.7869 GB, free: 9.785 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001224/0.3271, allocations: 0.6236 MB / 0.7875 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.3271, allocations: 8.031 kB / 0.7875 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.275e-05/0.3272, allocations: 32.59 kB / 0.7875 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001539/0.3274, allocations: 208.7 kB / 0.7877 GB, free: 8.832 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002052/0.3276, allocations: 268.3 kB / 0.788 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.161e-05/0.3276, allocations: 24.38 kB / 0.788 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000505/0.3282, allocations: 269.8 kB / 0.7882 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.177e-05/0.3282, allocations: 3.906 kB / 0.7883 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.878e-05/0.3282, allocations: 8 kB / 0.7883 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.3282, allocations: 4 kB / 0.7883 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003981/0.3286, allocations: 180.5 kB / 0.7884 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.3297, allocations: 0.7737 MB / 0.7892 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004745/0.3302, allocations: 207.7 kB / 0.7894 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002424/0.3305, allocations: 130.5 kB / 0.7895 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 4.747e-05/0.3305, allocations: 19.98 kB / 0.7895 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000567/0.3311, allocations: 303.6 kB / 0.7898 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=48): time 1.803e-06/0.3311, allocations: 4 kB / 0.7898 GB, free: 6.48 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48): time 0.0009631/0.3321, allocations: 492.6 kB / 0.7903 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.593e-05/0.3322, allocations: 110.8 kB / 0.7904 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000156/0.3323, allocations: 176.6 kB / 0.7906 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.43e-05/0.3324, allocations: 45.69 kB / 0.7906 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.999e-05/0.3325, allocations: 117.2 kB / 0.7907 GB, free: 5.516 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/0.3326, allocations: 146 kB / 0.7909 GB, free: 5.371 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/0.3328, allocations: 106.3 kB / 0.791 GB, free: 5.258 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.3329, allocations: 342.8 kB / 0.7913 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002943/0.3332, allocations: 149.2 kB / 0.7914 GB, free: 4.77 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003361/0.3335, allocations: 252.7 kB / 0.7917 GB, free: 4.484 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005817/0.3341, allocations: 394.1 kB / 0.7921 GB, free: 4.062 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.3341, allocations: 8 kB / 0.7921 GB, free: 4.055 MB / 0.6075 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007601/0.3349, allocations: 488.9 kB / 0.7925 GB, free: 3.57 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.3349, allocations: 4 kB / 0.7925 GB, free: 3.566 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.335, allocations: 4 kB / 0.7925 GB, free: 3.562 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.335, allocations: 8 kB / 0.7925 GB, free: 3.555 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003623/0.3354, allocations: 91.83 kB / 0.7926 GB, free: 3.465 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.957e-05/0.3354, allocations: 15.92 kB / 0.7926 GB, free: 3.449 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002681/0.3357, allocations: 67.5 kB / 0.7927 GB, free: 3.383 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.204e-05/0.3357, allocations: 20 kB / 0.7927 GB, free: 3.363 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 (movingMean_1.mode,$PRE.movingMean_1.mode,$whenCondition5,movingMean_2.mode,$PRE.movingMean_2.mode,$whenCondition6,movingMean_3.mode,$PRE.movingMean_3.mode,$whenCondition7,movingMean_4.mode,$PRE.movingMean_4.mode,$whenCondition8,movingMean_5.mode,$PRE.movingMean_5.mode,$whenCondition9,movingMean_6.mode,$PRE.movingMean_6.mode,$whenCondition3,movingMean_7.mode,$PRE.movingMean_7.mode,$whenCondition4,movingMean_8.mode,$PRE.movingMean_8.mode,$whenCondition1,movingMean_9.mode,$PRE.movingMean_9.mode,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * 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.0001599/0.3359, allocations: 156 kB / 0.7929 GB, free: 3.203 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.257e-05/0.3359, allocations: 35.72 kB / 0.7929 GB, free: 3.168 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.772e-05/0.336, allocations: 29.88 kB / 0.7929 GB, free: 3.137 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.336, allocations: 11.94 kB / 0.7929 GB, free: 3.125 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/0.336, allocations: 0 / 0.7929 GB, free: 3.125 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.336, allocations: 3.984 kB / 0.793 GB, free: 3.121 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003846/0.3364, allocations: 349.2 kB / 0.7933 GB, free: 2.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3364, allocations: 0 / 0.7933 GB, free: 2.73 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004081/0.3369, allocations: 79.83 kB / 0.7934 GB, free: 2.652 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.3369, allocations: 4 kB / 0.7934 GB, free: 2.648 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.596e-05/0.3369, allocations: 15.98 kB / 0.7934 GB, free: 2.633 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.3369, allocations: 4 kB / 0.7934 GB, free: 2.629 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3369, allocations: 0 / 0.7934 GB, free: 2.629 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009923/0.3379, allocations: 0.5831 MB / 0.794 GB, free: 2.023 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.229e-05/0.338, allocations: 108.7 kB / 0.7941 GB, free: 1.898 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.879e-05/0.3381, allocations: 11.98 kB / 0.7941 GB, free: 1.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.3383, allocations: 27.97 kB / 0.7941 GB, free: 1.859 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.3385, allocations: 59.94 kB / 0.7942 GB, free: 1.801 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.022e-05/0.3385, allocations: 24.05 kB / 0.7942 GB, free: 1.777 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001012/0.3386, allocations: 125.2 kB / 0.7943 GB, free: 1.656 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.3386, allocations: 0 / 0.7943 GB, free: 1.656 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000323/0.3389, allocations: 87.89 kB / 0.7944 GB, free: 1.57 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movingMean_1.mu,movingMean_2.mu,movingMean_3.mu,movingMean_4.mu,movingMean_5.mu,movingMean_6.mu,movingMean_7.mu,movingMean_8.mu,movingMean_9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movingMean_1.mode,movingMean_2.mode,movingMean_3.mode,movingMean_4.mode,movingMean_5.mode,$whenCondition4,$whenCondition3,movingMean_6.mode,movingMean_7.mode,$whenCondition2,$whenCondition1,movingMean_8.mode,movingMean_9.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.0001727/0.3391, allocations: 119.2 kB / 0.7945 GB, free: 1.445 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0007278/0.3399, allocations: 408 kB / 0.7949 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3399, allocations: 0 / 0.7949 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0003649/0.3402, allocations: 203.9 kB / 0.7951 GB, free: 0.8477 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000325/0.3406, allocations: 44.55 kB / 0.7951 GB, free: 0.8047 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001143/0.3417, allocations: 0.6931 MB / 0.7958 GB, free: 80 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004003/0.3421, allocations: 0.7686 MB / 0.7965 GB, free: 15.28 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001637/0.3423, allocations: 35.16 kB / 0.7966 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.3424, allocations: 35.44 kB / 0.7966 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of SimCode: time 3.41e-07/0.3425, allocations: 4.125 kB / 0.7966 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of Templates: time 0.007093/0.3496, allocations: 3.634 MB / 0.8002 GB, free: 11.61 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.pipe 2>&1)