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.001319/0.001319, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001771/0.001771, allocations: 195.4 kB / 16.14 MB, free: 6.688 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.547/1.547, allocations: 222.9 MB / 239.8 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.204/3.204, allocations: 472.6 MB / 0.7447 GB, free: 4.973 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 67.02 kB / 0.9114 GB, free: 33.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4751/0.4767, allocations: 159.9 MB / 1.068 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002939/0.4797, allocations: 0.9292 MB / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002249/0.482, allocations: 1.326 MB / 1.07 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.495e-05/0.4821, allocations: 4 kB / 1.07 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001349/0.4822, allocations: 15.86 kB / 1.07 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000159/0.4824, allocations: 23.83 kB / 1.07 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008132/0.4832, allocations: 242.4 kB / 1.07 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003396/0.4836, allocations: 267.3 kB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002625/0.4838, allocations: 36.88 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000191/0.484, allocations: 115.7 kB / 1.07 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003899/0.4844, allocations: 111.6 kB / 1.071 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.816e-05/0.4845, allocations: 12 kB / 1.071 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001103/0.4846, allocations: 23.98 kB / 1.071 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.041e-05/0.4847, allocations: 43.88 kB / 1.071 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001733/0.4849, allocations: 95.61 kB / 1.071 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003423/0.4852, allocations: 251.5 kB / 1.071 GB, free: 7.461 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.4852, allocations: 0 / 1.071 GB, free: 7.461 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.142e-06/0.4853, allocations: 0 / 1.071 GB, free: 7.461 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.201e-06/0.4853, allocations: 0 / 1.071 GB, free: 7.461 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.001194/0.4865, allocations: 0.5339 MB / 1.071 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.4865, allocations: 8.031 kB / 1.071 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001194/0.4866, allocations: 20.75 kB / 1.071 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003018/0.487, allocations: 247.8 kB / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.237e-05/0.487, allocations: 16.36 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.233e-05/0.4871, allocations: 16.38 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004022/0.4875, allocations: 186.8 kB / 1.072 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.4875, allocations: 192 / 1.072 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.026e-05/0.4875, allocations: 11.94 kB / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.4875, allocations: 0 / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002211/0.4878, allocations: 94.95 kB / 1.072 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007095/0.4885, allocations: 472.9 kB / 1.072 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002865/0.4888, allocations: 142.4 kB / 1.073 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001811/0.489, allocations: 91.81 kB / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.489, allocations: 4.156 kB / 1.073 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004824/0.4895, allocations: 211.7 kB / 1.073 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=28): time 1.583e-06/0.4895, allocations: 0 / 1.073 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28): time 0.001115/0.4906, allocations: 455.3 kB / 1.073 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.986e-05/0.4907, allocations: 59.39 kB / 1.073 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001452/0.4909, allocations: 143.5 kB / 1.074 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.891e-05/0.4909, allocations: 41.69 kB / 1.074 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.828e-05/0.491, allocations: 100.6 kB / 1.074 GB, free: 4.441 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.804e-05/0.4911, allocations: 75.17 kB / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001581/0.4913, allocations: 86 kB / 1.074 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002164/0.4915, allocations: 334.8 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003002/0.4918, allocations: 144.7 kB / 1.074 GB, free: 3.801 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003545/0.4922, allocations: 209.2 kB / 1.074 GB, free: 3.574 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005611/0.4927, allocations: 362.2 kB / 1.075 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.4927, allocations: 0 / 1.075 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008783/0.4936, allocations: 0.4992 MB / 1.075 GB, free: 2.668 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.554e-05/0.4937, allocations: 71.39 kB / 1.075 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.4937, allocations: 0 / 1.075 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.4937, allocations: 4 kB / 1.075 GB, free: 2.582 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002534/0.494, allocations: 51.91 kB / 1.075 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.494, allocations: 4 kB / 1.075 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004144/0.4944, allocations: 79.77 kB / 1.076 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.727e-05/0.4945, allocations: 23.98 kB / 1.076 GB, free: 2.426 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.0002897/0.4948, allocations: 161.7 kB / 1.076 GB, free: 2.262 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.227e-05/0.4949, allocations: 19.8 kB / 1.076 GB, free: 2.242 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.23e-05/0.4949, allocations: 9.875 kB / 1.076 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.4949, allocations: 4 kB / 1.076 GB, free: 2.227 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.4949, allocations: 4 kB / 1.076 GB, free: 2.223 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.4949, allocations: 7.875 kB / 1.076 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.496, allocations: 0.6629 MB / 1.076 GB, free: 1.496 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.496, allocations: 4 kB / 1.076 GB, free: 1.492 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.646e-05/0.4961, allocations: 8.031 kB / 1.076 GB, free: 1.484 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.4961, allocations: 3.984 kB / 1.076 GB, free: 1.48 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.884e-05/0.4961, allocations: 11.97 kB / 1.076 GB, free: 1.469 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.4961, allocations: 3.938 kB / 1.076 GB, free: 1.465 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4961, allocations: 4 kB / 1.076 GB, free: 1.461 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006378/0.4968, allocations: 455 kB / 1.077 GB, free: 1 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.686e-05/0.4968, allocations: 92.86 kB / 1.077 GB, free: 0.8906 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.862e-05/0.4969, allocations: 19.98 kB / 1.077 GB, free: 0.8711 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/0.497, allocations: 11.92 kB / 1.077 GB, free: 0.8594 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.069e-05/0.4971, allocations: 15.98 kB / 1.077 GB, free: 0.8438 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.526e-05/0.4972, allocations: 19.97 kB / 1.077 GB, free: 0.8242 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.284e-05/0.4972, allocations: 109.1 kB / 1.077 GB, free: 0.7188 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4972, allocations: 0 / 1.077 GB, free: 0.7188 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003569/0.4976, allocations: 64 kB / 1.077 GB, free: 0.6562 MB / 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.0002349/0.4978, allocations: 129.4 kB / 1.077 GB, free: 0.5234 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000753/0.4986, allocations: 458.6 kB / 1.078 GB, free: 52 kB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4986, allocations: 0 / 1.078 GB, free: 52 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002559/0.4989, allocations: 119.9 kB / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000385/0.4993, allocations: 33.52 kB / 1.078 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007638/0.5001, allocations: 341.5 kB / 1.078 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004221/0.5005, allocations: 0.7284 MB / 1.079 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.075e-05/0.5006, allocations: 17.55 kB / 1.079 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.766e-05/0.5006, allocations: 19.44 kB / 1.079 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of SimCode: time 3.01e-07/0.5006, allocations: 0 / 1.079 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of Templates: time 0.008536/0.5092, allocations: 3.427 MB / 1.082 GB, free: 11.35 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)