Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_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_3.0.0_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.001269/0.001269, 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.001276/0.001276, allocations: 192.9 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.496/1.496, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.098/3.098, allocations: 472.6 MB / 0.7451 GB, free: 4.691 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 64.44 kB / 0.912 GB, free: 33.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4571/0.4584, allocations: 159.9 MB / 1.068 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.004334/0.4629, allocations: 0.8721 MB / 1.069 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003642/0.4665, allocations: 1.314 MB / 1.07 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001733/0.4667, allocations: 3.938 kB / 1.07 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002101/0.467, allocations: 7.875 kB / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003248/0.4674, allocations: 35.69 kB / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001759/0.4691, allocations: 263.1 kB / 1.071 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006855/0.4698, allocations: 299.4 kB / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002099/0.4701, allocations: 32.88 kB / 1.071 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004025/0.4705, allocations: 131.7 kB / 1.071 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004391/0.471, allocations: 111.7 kB / 1.071 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001192/0.4711, allocations: 24 kB / 1.071 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001945/0.4713, allocations: 35.92 kB / 1.071 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001351/0.4715, allocations: 47.83 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002451/0.4717, allocations: 103.6 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006012/0.4723, allocations: 259.5 kB / 1.072 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.076e-06/0.4724, allocations: 0 / 1.072 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.146e-06/0.4724, allocations: 0 / 1.072 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.302e-05/0.4724, allocations: 4 kB / 1.072 GB, free: 6.957 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.001749/0.4742, allocations: 0.5378 MB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.425e-05/0.4743, allocations: 8.031 kB / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001659/0.4744, allocations: 28.73 kB / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004533/0.4749, allocations: 237.5 kB / 1.072 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.425e-05/0.475, allocations: 12.38 kB / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.393e-05/0.4751, allocations: 20.36 kB / 1.072 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000683/0.4758, allocations: 178.8 kB / 1.073 GB, free: 5.836 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.4758, allocations: 192 / 1.073 GB, free: 5.836 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.97e-05/0.4759, allocations: 15.92 kB / 1.073 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.4759, allocations: 0 / 1.073 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004204/0.4763, allocations: 92.17 kB / 1.073 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.4775, allocations: 468.8 kB / 1.073 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004618/0.478, allocations: 142.5 kB / 1.073 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003677/0.4783, allocations: 93.38 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.202e-05/0.4784, allocations: 4.156 kB / 1.073 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000654/0.4791, allocations: 212.8 kB / 1.074 GB, free: 4.758 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=28): time 2.985e-06/0.4791, allocations: 0 / 1.074 GB, free: 4.758 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28): time 0.001614/0.4807, allocations: 457.2 kB / 1.074 GB, free: 4.309 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.873e-05/0.4808, allocations: 59.41 kB / 1.074 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002107/0.481, allocations: 139.8 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001006/0.4811, allocations: 45.69 kB / 1.074 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/0.4813, allocations: 100.6 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.4814, allocations: 67.19 kB / 1.074 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002665/0.4817, allocations: 93.97 kB / 1.075 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002058/0.482, allocations: 330.8 kB / 1.075 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005485/0.4825, allocations: 156.6 kB / 1.075 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006109/0.4832, allocations: 205.2 kB / 1.075 GB, free: 3.07 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.4842, allocations: 358.3 kB / 1.076 GB, free: 2.684 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/0.4842, allocations: 4 kB / 1.076 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001456/0.4857, allocations: 0.4921 MB / 1.076 GB, free: 2.172 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.789e-05/0.4858, allocations: 67.41 kB / 1.076 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.062e-05/0.4858, allocations: 4.109 kB / 1.076 GB, free: 2.09 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.452e-05/0.4859, allocations: 8 kB / 1.076 GB, free: 2.082 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003814/0.4863, allocations: 51.92 kB / 1.076 GB, free: 2.031 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.56e-05/0.4863, allocations: 3.984 kB / 1.076 GB, free: 2.027 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006158/0.4869, allocations: 71.72 kB / 1.076 GB, free: 1.957 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.423e-05/0.487, allocations: 19.98 kB / 1.076 GB, free: 1.938 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.0003355/0.4874, allocations: 174.3 kB / 1.076 GB, free: 1.758 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.61e-05/0.4874, allocations: 19.81 kB / 1.076 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.275e-05/0.4875, allocations: 13.88 kB / 1.076 GB, free: 1.723 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.4875, allocations: 0 / 1.076 GB, free: 1.723 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/0.4876, allocations: 0 / 1.076 GB, free: 1.723 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.4876, allocations: 11.86 kB / 1.076 GB, free: 1.711 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001443/0.489, allocations: 0.6629 MB / 1.077 GB, free: 0.9922 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.4891, allocations: 0 / 1.077 GB, free: 0.9922 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.25e-05/0.4891, allocations: 7.984 kB / 1.077 GB, free: 0.9844 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.4892, allocations: 0 / 1.077 GB, free: 0.9844 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.46e-05/0.4892, allocations: 11.98 kB / 1.077 GB, free: 0.9727 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.615e-06/0.4892, allocations: 3.938 kB / 1.077 GB, free: 0.9688 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.4892, allocations: 4 kB / 1.077 GB, free: 0.9648 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.4903, allocations: 466.3 kB / 1.078 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.044e-05/0.4904, allocations: 88.92 kB / 1.078 GB, free: 400 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.022e-05/0.4905, allocations: 15.98 kB / 1.078 GB, free: 384 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002222/0.4907, allocations: 15.92 kB / 1.078 GB, free: 368 kB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.633e-05/0.4908, allocations: 19.91 kB / 1.078 GB, free: 348 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.816e-05/0.4909, allocations: 19.98 kB / 1.078 GB, free: 328 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001209/0.491, allocations: 100.5 kB / 1.078 GB, free: 228 kB / 0.8262 GB Notification: Performance of sort global known variables: time 2.81e-07/0.491, allocations: 0 / 1.078 GB, free: 228 kB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006777/0.4917, allocations: 67.98 kB / 1.078 GB, free: 160 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.0003583/0.4921, allocations: 146.3 kB / 1.078 GB, free: 8 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001383/0.4935, allocations: 475 kB / 1.078 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.4935, allocations: 0 / 1.078 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003609/0.4939, allocations: 115.9 kB / 1.079 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006174/0.4945, allocations: 44.14 kB / 1.079 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009908/0.4955, allocations: 313.2 kB / 1.079 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004388/0.496, allocations: 0.7167 MB / 1.08 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001078/0.4961, allocations: 25.72 kB / 1.08 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.557e-05/0.4962, allocations: 19.42 kB / 1.08 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of SimCode: time 5.31e-07/0.4962, allocations: 0 / 1.08 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of Templates: time 0.01434/0.5105, allocations: 3.572 MB / 1.083 GB, free: 10.71 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.makefile (rm -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.sim & ./Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe 2>&1)