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.001475/0.001475, allocations: 95.92 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.01213/0.01213, allocations: 170.8 kB / 16.27 MB, free: 6.648 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.629/1.629, 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.122/3.122, allocations: 473.4 MB / 0.7469 GB, free: 6.016 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004123/0.0004122, allocations: 8.406 kB / 0.9158 GB, free: 33.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4184/0.4188, allocations: 162.2 MB / 1.074 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.001764/0.4207, allocations: 0.5865 MB / 1.075 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002674/0.4234, allocations: 1.326 MB / 1.076 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.749e-05/0.4234, allocations: 3.938 kB / 1.076 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.00011/0.4236, allocations: 7.938 kB / 1.076 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001521/0.4237, allocations: 19.84 kB / 1.076 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006886/0.4244, allocations: 257.5 kB / 1.076 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003406/0.4248, allocations: 255.4 kB / 1.077 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001681/0.425, allocations: 40.86 kB / 1.077 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002603/0.4252, allocations: 115.7 kB / 1.077 GB, free: 4.906 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002565/0.4255, allocations: 103.7 kB / 1.077 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.366e-05/0.4255, allocations: 12 kB / 1.077 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.968e-05/0.4256, allocations: 23.98 kB / 1.077 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.41e-05/0.4257, allocations: 39.83 kB / 1.077 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001758/0.4259, allocations: 121.3 kB / 1.077 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003472/0.4263, allocations: 243.5 kB / 1.077 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.4263, allocations: 0 / 1.077 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.445e-06/0.4263, allocations: 0 / 1.077 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.885e-06/0.4263, allocations: 0 / 1.077 GB, free: 4.367 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.001073/0.4274, allocations: 498.8 kB / 1.078 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.4275, allocations: 12.03 kB / 1.078 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.082e-05/0.4276, allocations: 24.73 kB / 1.078 GB, free: 3.781 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003231/0.4279, allocations: 233.7 kB / 1.078 GB, free: 3.516 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.237e-05/0.428, allocations: 16.38 kB / 1.078 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.793e-05/0.428, allocations: 20.36 kB / 1.078 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004075/0.4284, allocations: 190.7 kB / 1.078 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.4284, allocations: 192 / 1.078 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.884e-05/0.4285, allocations: 7.922 kB / 1.078 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.4285, allocations: 4 kB / 1.078 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002283/0.4287, allocations: 96.17 kB / 1.078 GB, free: 3.18 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007795/0.4295, allocations: 468.7 kB / 1.079 GB, free: 2.672 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003011/0.4298, allocations: 138.5 kB / 1.079 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000185/0.43, allocations: 96.81 kB / 1.079 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.505e-05/0.4301, allocations: 4 kB / 1.079 GB, free: 2.426 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004191/0.4305, allocations: 215.8 kB / 1.079 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=28): time 1.884e-06/0.4305, allocations: 0 / 1.079 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28): time 0.000983/0.4315, allocations: 467.5 kB / 1.08 GB, free: 1.742 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.728e-05/0.4316, allocations: 51.41 kB / 1.08 GB, free: 1.68 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.4317, allocations: 143.3 kB / 1.08 GB, free: 1.531 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.304e-05/0.4318, allocations: 45.69 kB / 1.08 GB, free: 1.48 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.4319, allocations: 104.6 kB / 1.08 GB, free: 1.375 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.842e-05/0.432, allocations: 71.19 kB / 1.08 GB, free: 1.305 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.01e-05/0.4321, allocations: 45.69 kB / 1.08 GB, free: 1.254 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001812/0.4323, allocations: 330.8 kB / 1.08 GB, free: 0.9219 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003065/0.4326, allocations: 152.7 kB / 1.08 GB, free: 0.7695 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003509/0.4329, allocations: 213.1 kB / 1.081 GB, free: 0.5391 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005976/0.4336, allocations: 362.3 kB / 1.081 GB, free: 152 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.4336, allocations: 0 / 1.081 GB, free: 152 kB / 0.8262 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009501/0.4345, allocations: 0.5033 MB / 1.082 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001/0.4346, allocations: 67.39 kB / 1.082 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.4347, allocations: 0 / 1.082 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.4347, allocations: 4 kB / 1.082 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002502/0.4349, allocations: 47.92 kB / 1.082 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.615e-05/0.435, allocations: 11.92 kB / 1.082 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004598/0.4354, allocations: 99.62 kB / 1.082 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.475e-05/0.4355, allocations: 23.97 kB / 1.082 GB, free: 15.37 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.0002198/0.4357, allocations: 169.8 kB / 1.082 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.429e-05/0.4358, allocations: 15.81 kB / 1.082 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.093e-05/0.4358, allocations: 13.88 kB / 1.082 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.4358, allocations: 4 kB / 1.082 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.4359, allocations: 3.938 kB / 1.082 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.4359, allocations: 7.922 kB / 1.082 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009689/0.4368, allocations: 0.6657 MB / 1.083 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.4369, allocations: 0 / 1.083 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.769e-05/0.4369, allocations: 11.98 kB / 1.083 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.4369, allocations: 4 kB / 1.083 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.612e-05/0.437, allocations: 11.98 kB / 1.083 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.437, allocations: 3.938 kB / 1.083 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.437, allocations: 3.984 kB / 1.083 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006568/0.4376, allocations: 463.1 kB / 1.083 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.168e-05/0.4377, allocations: 88.92 kB / 1.083 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.421e-05/0.4378, allocations: 15.98 kB / 1.083 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.4379, allocations: 15.92 kB / 1.083 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.74e-05/0.438, allocations: 15.97 kB / 1.083 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.468e-05/0.438, allocations: 23.92 kB / 1.083 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 7.939e-05/0.4381, allocations: 104.8 kB / 1.083 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4381, allocations: 4 kB / 1.083 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003416/0.4384, allocations: 63.89 kB / 1.083 GB, free: 13.58 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.0002299/0.4387, allocations: 137.4 kB / 1.084 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007699/0.4394, allocations: 454.7 kB / 1.084 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4395, allocations: 4.062 kB / 1.084 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002187/0.4397, allocations: 119.9 kB / 1.084 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000401/0.4401, allocations: 32.47 kB / 1.084 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007007/0.4408, allocations: 351.1 kB / 1.084 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000377/0.4412, allocations: 0.7206 MB / 1.085 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 8.278e-05/0.4413, allocations: 17.55 kB / 1.085 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.369e-05/0.4413, allocations: 23.38 kB / 1.085 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of SimCode: time 2.6e-07/0.4414, allocations: 0 / 1.085 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of Templates: time 0.00748/0.4488, allocations: 3.395 MB / 1.089 GB, free: 8.293 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)