Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Validation.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001802/0.001802, 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.002337/0.002337, allocations: 194.2 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.611/1.611, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.071/3.071, allocations: 472.6 MB / 0.7451 GB, free: 4.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 64.47 kB / 0.912 GB, free: 33.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3738/0.375, allocations: 159.9 MB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002416/0.3775, allocations: 0.8779 MB / 1.069 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002164/0.3797, allocations: 1.303 MB / 1.07 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.871e-05/0.3798, allocations: 7.938 kB / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001366/0.3799, allocations: 11.86 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001689/0.3801, allocations: 31.72 kB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008506/0.381, allocations: 266.6 kB / 1.071 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003897/0.3814, allocations: 295.4 kB / 1.071 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001842/0.3816, allocations: 32.88 kB / 1.071 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002457/0.3818, allocations: 135.7 kB / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000265/0.3821, allocations: 115.6 kB / 1.071 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.845e-05/0.3822, allocations: 24 kB / 1.071 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001274/0.3823, allocations: 39.92 kB / 1.071 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.3824, allocations: 43.83 kB / 1.071 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001456/0.3826, allocations: 103.6 kB / 1.071 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000383/0.383, allocations: 267.5 kB / 1.072 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.383, allocations: 0 / 1.072 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.422e-06/0.383, allocations: 0 / 1.072 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.366e-06/0.383, allocations: 0 / 1.072 GB, free: 6.891 MB / 0.8262 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.001112/0.3841, allocations: 0.5378 MB / 1.072 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.3842, allocations: 8.031 kB / 1.072 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.994e-05/0.3843, allocations: 20.75 kB / 1.072 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003303/0.3846, allocations: 231.9 kB / 1.072 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.783e-05/0.3847, allocations: 20.36 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.937e-05/0.3847, allocations: 20.36 kB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000393/0.3851, allocations: 182.8 kB / 1.073 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.3851, allocations: 4.188 kB / 1.073 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.045e-05/0.3852, allocations: 11.94 kB / 1.073 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.313e-06/0.3852, allocations: 0 / 1.073 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002194/0.3854, allocations: 88.17 kB / 1.073 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007313/0.3861, allocations: 468.8 kB / 1.073 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002706/0.3864, allocations: 142.5 kB / 1.073 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001795/0.3866, allocations: 93.38 kB / 1.073 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/0.3867, allocations: 160 / 1.073 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004026/0.3871, allocations: 219.4 kB / 1.074 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=28): time 1.723e-06/0.3871, allocations: 0 / 1.074 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28): time 0.000919/0.388, allocations: 457.2 kB / 1.074 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.863e-05/0.3881, allocations: 59.39 kB / 1.074 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.3882, allocations: 135.7 kB / 1.074 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.046e-05/0.3883, allocations: 45.7 kB / 1.074 GB, free: 3.984 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.117e-05/0.3884, allocations: 104.5 kB / 1.074 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.229e-05/0.3885, allocations: 71.17 kB / 1.074 GB, free: 3.809 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.3887, allocations: 86 kB / 1.075 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001763/0.3888, allocations: 342.8 kB / 1.075 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002952/0.3891, allocations: 140.7 kB / 1.075 GB, free: 3.238 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003312/0.3895, allocations: 209.2 kB / 1.075 GB, free: 3.012 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005474/0.39, allocations: 358.3 kB / 1.076 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.3901, allocations: 0 / 1.076 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008589/0.3909, allocations: 0.4992 MB / 1.076 GB, free: 2.109 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.785e-05/0.391, allocations: 75.33 kB / 1.076 GB, free: 2.023 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.391, allocations: 4.125 kB / 1.076 GB, free: 2.02 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.314e-05/0.3911, allocations: 4 kB / 1.076 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002448/0.3913, allocations: 47.91 kB / 1.076 GB, free: 1.969 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.392e-05/0.3913, allocations: 4 kB / 1.076 GB, free: 1.965 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003996/0.3917, allocations: 75.7 kB / 1.076 GB, free: 1.891 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.174e-05/0.3918, allocations: 19.98 kB / 1.076 GB, free: 1.871 MB / 0.8262 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.0001983/0.392, allocations: 170.4 kB / 1.076 GB, free: 1.695 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.665e-05/0.3921, allocations: 19.8 kB / 1.076 GB, free: 1.676 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.097e-05/0.3921, allocations: 9.875 kB / 1.076 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.3921, allocations: 4 kB / 1.076 GB, free: 1.66 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.3921, allocations: 0 / 1.076 GB, free: 1.66 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.3921, allocations: 7.875 kB / 1.076 GB, free: 1.652 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000824/0.393, allocations: 0.6629 MB / 1.077 GB, free: 0.9336 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.393, allocations: 3.984 kB / 1.077 GB, free: 0.9297 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.165e-05/0.393, allocations: 8 kB / 1.077 GB, free: 0.9219 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.393, allocations: 4 kB / 1.077 GB, free: 0.918 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.503e-05/0.3931, allocations: 11.98 kB / 1.077 GB, free: 0.9062 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.3931, allocations: 3.938 kB / 1.077 GB, free: 0.9023 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.3931, allocations: 3.984 kB / 1.077 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006004/0.3937, allocations: 463.7 kB / 1.078 GB, free: 440 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.143e-05/0.3937, allocations: 88.92 kB / 1.078 GB, free: 332 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.888e-05/0.3938, allocations: 15.98 kB / 1.078 GB, free: 316 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.3939, allocations: 15.92 kB / 1.078 GB, free: 300 kB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.982e-05/0.394, allocations: 11.98 kB / 1.078 GB, free: 288 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.262e-05/0.394, allocations: 19.98 kB / 1.078 GB, free: 268 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.604e-05/0.3941, allocations: 109 kB / 1.078 GB, free: 160 kB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3941, allocations: 0 / 1.078 GB, free: 160 kB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003479/0.3945, allocations: 56 kB / 1.078 GB, free: 104 kB / 0.8262 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.0002514/0.3947, allocations: 149.3 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007977/0.3956, allocations: 475.5 kB / 1.078 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3956, allocations: 0 / 1.078 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002224/0.3958, allocations: 119.9 kB / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003823/0.3962, allocations: 40.16 kB / 1.079 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006894/0.3969, allocations: 313.2 kB / 1.079 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002963/0.3972, allocations: 0.7206 MB / 1.08 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.794e-05/0.3973, allocations: 25.67 kB / 1.08 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.829e-05/0.3973, allocations: 15.44 kB / 1.08 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of SimCode: time 6.31e-07/0.3973, allocations: 0 / 1.08 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of Templates: time 0.008136/0.4055, allocations: 3.577 MB / 1.083 GB, free: 10.64 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.makefile (rm -f Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; mkfifo Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe >> ../files/Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.sim & ./Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe 2>&1)