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.001882/0.001882, 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.002893/0.002892, allocations: 199.2 kB / 16.14 MB, free: 6.695 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.654/1.654, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.21/3.21, allocations: 472.6 MB / 0.7447 GB, free: 5.027 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002311/0.002311, allocations: 65.55 kB / 0.9114 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4426/0.445, allocations: 159.9 MB / 1.068 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.003227/0.4483, allocations: 0.9191 MB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002821/0.4511, allocations: 1.338 MB / 1.07 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001626/0.4514, allocations: 4 kB / 1.07 GB, free: 8.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001829/0.4516, allocations: 3.938 kB / 1.07 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000303/0.4519, allocations: 35.77 kB / 1.07 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.4531, allocations: 242.5 kB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004316/0.4535, allocations: 263.4 kB / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001958/0.4537, allocations: 36.88 kB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000342/0.4541, allocations: 115.7 kB / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000354/0.4544, allocations: 111.6 kB / 1.071 GB, free: 7.895 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.494e-05/0.4545, allocations: 15.94 kB / 1.071 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001395/0.4547, allocations: 31.92 kB / 1.071 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.4548, allocations: 35.89 kB / 1.071 GB, free: 7.812 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001796/0.455, allocations: 99.61 kB / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004088/0.4554, allocations: 243.5 kB / 1.071 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.4554, allocations: 0 / 1.071 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.282e-06/0.4554, allocations: 8 kB / 1.071 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.985e-06/0.4554, allocations: 0 / 1.071 GB, free: 7.469 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.001444/0.4569, allocations: 0.5378 MB / 1.071 GB, free: 6.867 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/0.457, allocations: 8.031 kB / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001256/0.4571, allocations: 24.75 kB / 1.071 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003934/0.4575, allocations: 237.4 kB / 1.072 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.553e-05/0.4575, allocations: 12.38 kB / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.555e-05/0.4576, allocations: 20.36 kB / 1.072 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004878/0.4581, allocations: 190.8 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.4581, allocations: 192 / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.318e-05/0.4582, allocations: 15.92 kB / 1.072 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.4582, allocations: 0 / 1.072 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002453/0.4585, allocations: 92.17 kB / 1.072 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008387/0.4593, allocations: 468.8 kB / 1.072 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003924/0.4597, allocations: 134.5 kB / 1.073 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.4599, allocations: 95.81 kB / 1.073 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.4599, allocations: 4.156 kB / 1.073 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000384/0.4603, allocations: 215.6 kB / 1.073 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=28): time 1.874e-06/0.4603, allocations: 0 / 1.073 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28): time 0.001067/0.4614, allocations: 451.4 kB / 1.073 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.192e-05/0.4615, allocations: 59.41 kB / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001957/0.4617, allocations: 143.2 kB / 1.074 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.001e-05/0.4618, allocations: 41.7 kB / 1.074 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.4619, allocations: 100.6 kB / 1.074 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.871e-05/0.462, allocations: 71.17 kB / 1.074 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001838/0.4622, allocations: 90 kB / 1.074 GB, free: 4.289 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001921/0.4624, allocations: 334.7 kB / 1.074 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003481/0.4628, allocations: 148.7 kB / 1.074 GB, free: 3.809 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004674/0.4632, allocations: 209.2 kB / 1.074 GB, free: 3.582 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007367/0.464, allocations: 354.3 kB / 1.075 GB, free: 3.199 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/0.464, allocations: 4 kB / 1.075 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001062/0.4651, allocations: 0.4993 MB / 1.075 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001578/0.4653, allocations: 71.39 kB / 1.075 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.041e-05/0.4653, allocations: 3.938 kB / 1.075 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.276e-05/0.4653, allocations: 4 kB / 1.075 GB, free: 2.59 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002904/0.4656, allocations: 55.91 kB / 1.075 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.4656, allocations: 0 / 1.075 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000457/0.4661, allocations: 75.66 kB / 1.076 GB, free: 2.461 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.643e-05/0.4662, allocations: 27.98 kB / 1.076 GB, free: 2.434 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.0002731/0.4665, allocations: 161.8 kB / 1.076 GB, free: 2.27 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.459e-05/0.4665, allocations: 23.89 kB / 1.076 GB, free: 2.246 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.853e-05/0.4666, allocations: 13.88 kB / 1.076 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.81e-06/0.4666, allocations: 0 / 1.076 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.741e-05/0.4666, allocations: 3.984 kB / 1.076 GB, free: 2.227 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.4667, allocations: 3.938 kB / 1.076 GB, free: 2.223 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001138/0.4678, allocations: 0.6668 MB / 1.076 GB, free: 1.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.4678, allocations: 0 / 1.076 GB, free: 1.5 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.467e-05/0.4679, allocations: 7.984 kB / 1.076 GB, free: 1.492 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.4679, allocations: 0 / 1.076 GB, free: 1.492 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.822e-05/0.468, allocations: 11.98 kB / 1.076 GB, free: 1.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-05/0.468, allocations: 7.938 kB / 1.076 GB, free: 1.473 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.468, allocations: 0 / 1.076 GB, free: 1.473 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009351/0.4689, allocations: 459 kB / 1.077 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.184e-05/0.469, allocations: 92.86 kB / 1.077 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.163e-05/0.4691, allocations: 15.98 kB / 1.077 GB, free: 0.8828 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.4692, allocations: 15.92 kB / 1.077 GB, free: 0.8672 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.231e-05/0.4693, allocations: 15.97 kB / 1.077 GB, free: 0.8516 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.553e-05/0.4693, allocations: 19.98 kB / 1.077 GB, free: 0.832 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.078e-05/0.4694, allocations: 101.1 kB / 1.077 GB, free: 0.7344 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.61e-07/0.4694, allocations: 0 / 1.077 GB, free: 0.7344 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004057/0.4699, allocations: 71.98 kB / 1.077 GB, free: 0.6641 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.0002673/0.4701, allocations: 129.4 kB / 1.077 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008009/0.4709, allocations: 454.5 kB / 1.078 GB, free: 64 kB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.471, allocations: 0 / 1.078 GB, free: 64 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000251/0.4712, allocations: 118.6 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000465/0.4717, allocations: 31.97 kB / 1.078 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009652/0.4727, allocations: 349.3 kB / 1.078 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000657/0.4733, allocations: 0.7167 MB / 1.079 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000106/0.4735, allocations: 25.48 kB / 1.079 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.768e-05/0.4735, allocations: 27.36 kB / 1.079 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of SimCode: time 5.82e-07/0.4735, allocations: 0 / 1.079 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of Templates: time 0.009555/0.4831, allocations: 3.424 MB / 1.082 GB, free: 11.36 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)