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.001019/0.001019, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.008884/0.008884, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.545/1.545, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.021/3.021, allocations: 473.4 MB / 0.7469 GB, free: 6.082 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005385/0.0005387, allocations: 9.594 kB / 0.9158 GB, free: 33.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4762/0.4768, allocations: 162.2 MB / 1.074 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.001375/0.4782, allocations: 0.5826 MB / 1.075 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002773/0.481, allocations: 1.322 MB / 1.076 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001514/0.4812, allocations: 3.938 kB / 1.076 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001398/0.4814, allocations: 7.922 kB / 1.076 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000275/0.4816, allocations: 27.83 kB / 1.076 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001395/0.4831, allocations: 247 kB / 1.076 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.00105/0.4841, allocations: 255.4 kB / 1.077 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003468/0.4845, allocations: 36.88 kB / 1.077 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008637/0.4854, allocations: 119.6 kB / 1.077 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006087/0.486, allocations: 99.69 kB / 1.077 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.000172/0.4862, allocations: 12 kB / 1.077 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000266/0.4865, allocations: 23.98 kB / 1.077 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002595/0.4867, allocations: 39.83 kB / 1.077 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0006242/0.4874, allocations: 121.3 kB / 1.077 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007702/0.4882, allocations: 243.5 kB / 1.077 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.4882, allocations: 0 / 1.077 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of FrontEnd: time 4.178e-06/0.4882, allocations: 4 kB / 1.077 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.685e-05/0.4883, allocations: 4 kB / 1.077 GB, free: 4.43 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.002104/0.4904, allocations: 494.8 kB / 1.078 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001049/0.4905, allocations: 12.03 kB / 1.078 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002728/0.4908, allocations: 20.75 kB / 1.078 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005643/0.4914, allocations: 229.4 kB / 1.078 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.266e-05/0.4914, allocations: 16.36 kB / 1.078 GB, free: 3.574 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.586e-05/0.4915, allocations: 20.38 kB / 1.078 GB, free: 3.555 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006598/0.4922, allocations: 194.7 kB / 1.078 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.4923, allocations: 192 / 1.078 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.297e-05/0.4923, allocations: 11.94 kB / 1.078 GB, free: 3.344 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.4923, allocations: 0 / 1.078 GB, free: 3.344 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000342/0.4927, allocations: 92.17 kB / 1.078 GB, free: 3.254 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001119/0.4938, allocations: 476.7 kB / 1.079 GB, free: 2.738 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004178/0.4942, allocations: 138.5 kB / 1.079 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003007/0.4946, allocations: 100.8 kB / 1.079 GB, free: 2.492 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.822e-05/0.4946, allocations: 3.984 kB / 1.079 GB, free: 2.488 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005558/0.4952, allocations: 214.6 kB / 1.079 GB, free: 2.27 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=28): time 2.945e-06/0.4952, allocations: 0 / 1.079 GB, free: 2.27 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28): time 0.00139/0.4966, allocations: 463.5 kB / 1.08 GB, free: 1.812 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.883e-05/0.4967, allocations: 59.41 kB / 1.08 GB, free: 1.742 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002283/0.4969, allocations: 143.7 kB / 1.08 GB, free: 1.594 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 9.874e-05/0.497, allocations: 41.7 kB / 1.08 GB, free: 1.547 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.4972, allocations: 108.6 kB / 1.08 GB, free: 1.438 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.4973, allocations: 67.19 kB / 1.08 GB, free: 1.371 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/0.4975, allocations: 45.69 kB / 1.08 GB, free: 1.32 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002201/0.4977, allocations: 334.8 kB / 1.08 GB, free: 0.9844 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005085/0.4982, allocations: 148.7 kB / 1.08 GB, free: 0.8359 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005481/0.4988, allocations: 209.2 kB / 1.081 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008502/0.4997, allocations: 370.3 kB / 1.081 GB, free: 216 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.613e-06/0.4997, allocations: 0 / 1.081 GB, free: 216 kB / 0.8262 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001455/0.5011, allocations: 0.4955 MB / 1.082 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001032/0.5013, allocations: 71.52 kB / 1.082 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/0.5013, allocations: 0 / 1.082 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.939e-05/0.5013, allocations: 4 kB / 1.082 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003523/0.5017, allocations: 51.91 kB / 1.082 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.735e-05/0.5017, allocations: 7.938 kB / 1.082 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006866/0.5024, allocations: 103.6 kB / 1.082 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/0.5026, allocations: 19.98 kB / 1.082 GB, free: 15.43 MB / 0.8419 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.0003126/0.5029, allocations: 165.7 kB / 1.082 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.1e-05/0.503, allocations: 19.81 kB / 1.082 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.43e-05/0.503, allocations: 13.86 kB / 1.082 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.503, allocations: 4 kB / 1.082 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.5031, allocations: 3.938 kB / 1.082 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.5031, allocations: 3.938 kB / 1.082 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001514/0.5046, allocations: 0.6629 MB / 1.083 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.5046, allocations: 0 / 1.083 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.919e-05/0.5047, allocations: 7.984 kB / 1.083 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.5047, allocations: 4 kB / 1.083 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.698e-05/0.5048, allocations: 11.98 kB / 1.083 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.5048, allocations: 3.938 kB / 1.083 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.5048, allocations: 0 / 1.083 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.5058, allocations: 463.1 kB / 1.083 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.97e-05/0.5059, allocations: 92.91 kB / 1.083 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.847e-05/0.506, allocations: 19.98 kB / 1.083 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.5062, allocations: 8.031 kB / 1.083 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.456e-05/0.5063, allocations: 23.95 kB / 1.083 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.878e-05/0.5064, allocations: 19.92 kB / 1.083 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001097/0.5065, allocations: 108.3 kB / 1.083 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.61e-07/0.5065, allocations: 0 / 1.083 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005646/0.5071, allocations: 67.89 kB / 1.083 GB, free: 13.65 MB / 0.8419 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.0003161/0.5074, allocations: 137.4 kB / 1.084 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001133/0.5086, allocations: 450.5 kB / 1.084 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.5086, allocations: 0 / 1.084 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003465/0.5089, allocations: 128.1 kB / 1.084 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000561/0.5095, allocations: 31.06 kB / 1.084 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001/0.5105, allocations: 347.1 kB / 1.084 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004907/0.511, allocations: 0.7167 MB / 1.085 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001281/0.5112, allocations: 25.55 kB / 1.085 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.007e-05/0.5113, allocations: 27.36 kB / 1.085 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of SimCode: time 1.112e-06/0.5113, allocations: 0 / 1.085 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of Templates: time 0.01327/0.5246, allocations: 3.397 MB / 1.089 GB, free: 8.363 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)