Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.395/1.395, allocations: 251.5 MB / 267.4 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001494/0.001495, allocations: 177.1 kB / 326.5 MB, free: 2.688 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.923/1.923, allocations: 205 MB / 0.5766 GB, free: 20.99 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000825/0.000825, allocations: 82.38 kB / 0.6804 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003481/0.0003482, allocations: 13.69 kB / 0.7938 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3002, allocations: 105.4 MB / 0.8967 GB, free: 68.14 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002211/0.3024, allocations: 1.358 MB / 0.8981 GB, free: 66.77 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0009625/0.3034, allocations: 377.3 kB / 0.8984 GB, free: 66.4 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001428/0.3036, allocations: 4 kB / 0.8984 GB, free: 66.39 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001753/0.3038, allocations: 11.86 kB / 0.8985 GB, free: 66.38 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002224/0.304, allocations: 31.83 kB / 0.8985 GB, free: 66.35 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003868/0.3044, allocations: 63.88 kB / 0.8985 GB, free: 66.29 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002378/0.3047, allocations: 175.5 kB / 0.8987 GB, free: 66.12 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.3049, allocations: 33.61 kB / 0.8987 GB, free: 66.08 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002163/0.3051, allocations: 75.7 kB / 0.8988 GB, free: 66 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.3053, allocations: 83.64 kB / 0.8989 GB, free: 65.92 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.753e-05/0.3054, allocations: 8 kB / 0.8989 GB, free: 65.91 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 3.11e-05/0.3054, allocations: 4 kB / 0.8989 GB, free: 65.91 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.456e-05/0.3055, allocations: 35.89 kB / 0.8989 GB, free: 65.88 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001323/0.3056, allocations: 75.58 kB / 0.899 GB, free: 65.8 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001561/0.3058, allocations: 107.8 kB / 0.8991 GB, free: 65.7 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.3058, allocations: 4 kB / 0.8991 GB, free: 65.69 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.435e-06/0.3058, allocations: 3.938 kB / 0.8991 GB, free: 65.69 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.582e-06/0.3058, allocations: 7.938 kB / 0.8991 GB, free: 65.68 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0009358/0.3068, allocations: 463.3 kB / 0.8996 GB, free: 65.18 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.3068, allocations: 12.03 kB / 0.8996 GB, free: 65.16 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.212e-05/0.3069, allocations: 20.73 kB / 0.8996 GB, free: 65.14 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002264/0.3072, allocations: 213.7 kB / 0.8998 GB, free: 64.9 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/0.3072, allocations: 12.38 kB / 0.8998 GB, free: 64.89 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.126e-05/0.3072, allocations: 16.3 kB / 0.8998 GB, free: 64.87 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003568/0.3076, allocations: 190.1 kB / 0.9 GB, free: 64.68 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.3076, allocations: 192 / 0.9 GB, free: 64.68 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.441e-05/0.3077, allocations: 11.94 kB / 0.9 GB, free: 64.67 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.3077, allocations: 0 / 0.9 GB, free: 64.67 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002177/0.3079, allocations: 107.9 kB / 0.9001 GB, free: 64.56 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006259/0.3085, allocations: 420.2 kB / 0.9005 GB, free: 64.1 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002496/0.3088, allocations: 153.2 kB / 0.9007 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001531/0.309, allocations: 100.8 kB / 0.9008 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.309, allocations: 4.172 kB / 0.9008 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003183/0.3093, allocations: 199.9 kB / 0.901 GB, free: 63.63 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=28): time 3.136e-06/0.3093, allocations: 3.938 kB / 0.901 GB, free: 63.63 MB / 0.6042 GB Notification: Performance of matching and sorting (n=28): time 0.0007897/0.3101, allocations: 438.7 kB / 0.9014 GB, free: 63.2 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/0.3102, allocations: 63.39 kB / 0.9014 GB, free: 63.12 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.3103, allocations: 140.2 kB / 0.9016 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.193e-05/0.3104, allocations: 41.69 kB / 0.9016 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.627e-05/0.3104, allocations: 108.5 kB / 0.9017 GB, free: 62.82 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.044e-05/0.3105, allocations: 67.19 kB / 0.9018 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.275e-05/0.3105, allocations: 45.67 kB / 0.9018 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.49e-05/0.3106, allocations: 334.8 kB / 0.9022 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.3108, allocations: 104.3 kB / 0.9023 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002017/0.311, allocations: 175.5 kB / 0.9024 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003632/0.3114, allocations: 275.8 kB / 0.9027 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.3114, allocations: 4 kB / 0.9027 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005125/0.3119, allocations: 343 kB / 0.903 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.3119, allocations: 4 kB / 0.903 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.312, allocations: 8.156 kB / 0.903 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.312, allocations: 4 kB / 0.903 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002369/0.3122, allocations: 55.91 kB / 0.9031 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.3123, allocations: 7.984 kB / 0.9031 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001804/0.3124, allocations: 47.66 kB / 0.9031 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.153e-05/0.3125, allocations: 12 kB / 0.9031 GB, free: 61.3 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition4,$whenCondition1,booPul.pulseStart,$PRE.booPul.pulseStart,booPul.y,$whenCondition2,booPul1.pulseStart,$PRE.booPul1.pulseStart,booPul1.y,$whenCondition3,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 (42): * Single equations (assignments): 40 * Array equations: 2 * 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.0001418/0.3126, allocations: 169.8 kB / 0.9033 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.245e-05/0.3127, allocations: 19.83 kB / 0.9033 GB, free: 61.1 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.74e-05/0.3127, allocations: 13.88 kB / 0.9033 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.3127, allocations: 4 kB / 0.9033 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.3127, allocations: 3.938 kB / 0.9033 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.3127, allocations: 0 / 0.9033 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009218/0.3137, allocations: 0.7284 MB / 0.9041 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.3137, allocations: 4 kB / 0.9041 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.416e-05/0.3137, allocations: 4 kB / 0.9041 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.3137, allocations: 0 / 0.9041 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.87e-05/0.3138, allocations: 19.91 kB / 0.9041 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.3138, allocations: 8 kB / 0.9041 GB, free: 60.26 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3138, allocations: 0 / 0.9041 GB, free: 60.26 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005247/0.3143, allocations: 439.9 kB / 0.9045 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.669e-05/0.3144, allocations: 92.91 kB / 0.9046 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.681e-05/0.3145, allocations: 23.92 kB / 0.9046 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.3146, allocations: 27.92 kB / 0.9047 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.758e-05/0.3147, allocations: 19.97 kB / 0.9047 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.047e-05/0.3148, allocations: 15.98 kB / 0.9047 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.551e-05/0.3148, allocations: 113.1 kB / 0.9048 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3148, allocations: 0 / 0.9048 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000311/0.3151, allocations: 48 kB / 0.9048 GB, free: 59.46 MB / 0.6042 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 (booPul.y,booPul1.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booPul.pulseStart,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.pulseStart) * 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.000171/0.3153, allocations: 141.4 kB / 0.905 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004839/0.3158, allocations: 259.8 kB / 0.9052 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3158, allocations: 4 kB / 0.9052 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001964/0.316, allocations: 124.5 kB / 0.9053 GB, free: 58.94 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003729/0.3164, allocations: 28.28 kB / 0.9054 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007965/0.3172, allocations: 387.3 kB / 0.9057 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002395/0.3175, allocations: 0.7206 MB / 0.9064 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.687e-05/0.3176, allocations: 15.44 kB / 0.9065 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of SimCode: time 8.72e-07/0.3176, allocations: 0 / 0.9065 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of Templates: time 0.005055/0.3226, allocations: 2.613 MB / 0.909 GB, free: 55.13 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)