Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002127/0.002128, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002964/0.002964, allocations: 191.3 kB / 16.13 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.727/1.727, allocations: 205.1 MB / 222 MB, free: 4.762 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.769/1.769, allocations: 251.7 MB / 0.5088 GB, free: 3.34 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 71.84 kB / 0.6216 GB, free: 1.953 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.695/0.6966, allocations: 104.7 MB / 0.7238 GB, free: 13.1 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.00289/0.6995, allocations: 1.689 MB / 0.7255 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0007562/0.7003, allocations: 375.7 kB / 0.7258 GB, free: 11.02 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.76e-05/0.7004, allocations: 0 / 0.7258 GB, free: 11.02 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.7005, allocations: 11.86 kB / 0.7259 GB, free: 11.01 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001465/0.7007, allocations: 35.77 kB / 0.7259 GB, free: 10.97 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002207/0.7009, allocations: 63.92 kB / 0.7259 GB, free: 10.91 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.00017/0.7011, allocations: 175.4 kB / 0.7261 GB, free: 10.74 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.7012, allocations: 33.39 kB / 0.7261 GB, free: 10.7 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/0.7013, allocations: 75.75 kB / 0.7262 GB, free: 10.62 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001624/0.7015, allocations: 83.66 kB / 0.7263 GB, free: 10.54 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.019e-05/0.7015, allocations: 8 kB / 0.7263 GB, free: 10.54 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 2.922e-05/0.7016, allocations: 8 kB / 0.7263 GB, free: 10.53 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 6.676e-05/0.7016, allocations: 43.88 kB / 0.7264 GB, free: 10.48 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 9.352e-05/0.7017, allocations: 71.53 kB / 0.7264 GB, free: 10.41 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001768/0.7019, allocations: 165.4 kB / 0.7266 GB, free: 10.25 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.7019, allocations: 0 / 0.7266 GB, free: 10.25 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.022e-06/0.7019, allocations: 4 kB / 0.7266 GB, free: 10.25 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.627e-06/0.702, allocations: 0 / 0.7266 GB, free: 10.25 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0009135/0.7029, allocations: 483.3 kB / 0.727 GB, free: 9.727 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.7029, allocations: 12.03 kB / 0.7271 GB, free: 9.715 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.506e-05/0.703, allocations: 20.73 kB / 0.7271 GB, free: 9.695 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.7032, allocations: 223.9 kB / 0.7273 GB, free: 9.438 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.067e-05/0.7032, allocations: 16.36 kB / 0.7273 GB, free: 9.422 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.222e-05/0.7033, allocations: 20.36 kB / 0.7273 GB, free: 9.402 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003424/0.7036, allocations: 182.8 kB / 0.7275 GB, free: 9.219 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.7036, allocations: 192 / 0.7275 GB, free: 9.219 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.576e-05/0.7037, allocations: 11.92 kB / 0.7275 GB, free: 9.207 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.7037, allocations: 0 / 0.7275 GB, free: 9.207 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002111/0.7039, allocations: 95.94 kB / 0.7276 GB, free: 9.113 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005661/0.7045, allocations: 424.4 kB / 0.728 GB, free: 8.648 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002803/0.7047, allocations: 146.4 kB / 0.7281 GB, free: 8.496 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.7049, allocations: 92.81 kB / 0.7282 GB, free: 8.402 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.7049, allocations: 4.172 kB / 0.7282 GB, free: 8.398 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003202/0.7053, allocations: 203.8 kB / 0.7284 GB, free: 8.188 MB / 0.545 GB Notification: Performance of pre-optimization done (n=28): time 1.603e-06/0.7053, allocations: 3.938 kB / 0.7284 GB, free: 8.184 MB / 0.545 GB Notification: Performance of matching and sorting (n=28): time 0.0007677/0.706, allocations: 445.2 kB / 0.7289 GB, free: 7.746 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.645e-05/0.7061, allocations: 55.41 kB / 0.7289 GB, free: 7.68 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.7062, allocations: 140.6 kB / 0.729 GB, free: 7.535 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.596e-05/0.7063, allocations: 41.69 kB / 0.7291 GB, free: 7.488 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.999e-05/0.7063, allocations: 104.6 kB / 0.7292 GB, free: 7.383 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.888e-05/0.7064, allocations: 67.19 kB / 0.7293 GB, free: 7.316 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.999e-05/0.7065, allocations: 69.69 kB / 0.7293 GB, free: 7.242 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.7066, allocations: 334.8 kB / 0.7296 GB, free: 6.906 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001817/0.7068, allocations: 104.3 kB / 0.7297 GB, free: 6.805 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002202/0.707, allocations: 175.3 kB / 0.7299 GB, free: 6.609 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003653/0.7074, allocations: 271.8 kB / 0.7302 GB, free: 6.32 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.7074, allocations: 4 kB / 0.7302 GB, free: 6.316 MB / 0.545 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005555/0.708, allocations: 339.6 kB / 0.7305 GB, free: 5.98 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.708, allocations: 8 kB / 0.7305 GB, free: 5.973 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.708, allocations: 0 / 0.7305 GB, free: 5.973 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.708, allocations: 4 kB / 0.7305 GB, free: 5.969 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002294/0.7083, allocations: 59.91 kB / 0.7306 GB, free: 5.91 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.7083, allocations: 7.938 kB / 0.7306 GB, free: 5.902 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001553/0.7085, allocations: 43.83 kB / 0.7306 GB, free: 5.859 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.238e-05/0.7085, allocations: 15.98 kB / 0.7306 GB, free: 5.844 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition4,$whenCondition1,booPul.pulseStart,$PRE.booPul.pulseStart,booPul.y,$whenCondition2,booPul1.pulseStart,$PRE.booPul1.pulseStart,booPul1.y,$whenCondition3,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 (42): * Single equations (assignments): 40 * Array equations: 2 * Algorithm blocks: 0 * 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.0001558/0.7087, allocations: 165.8 kB / 0.7308 GB, free: 5.672 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.168e-05/0.7087, allocations: 15.81 kB / 0.7308 GB, free: 5.656 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.546e-05/0.7088, allocations: 17.86 kB / 0.7308 GB, free: 5.641 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.7088, allocations: 4 kB / 0.7308 GB, free: 5.637 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.7088, allocations: 4 kB / 0.7308 GB, free: 5.633 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.7088, allocations: 0 / 0.7308 GB, free: 5.633 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009745/0.7098, allocations: 0.709 MB / 0.7315 GB, free: 4.867 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.7098, allocations: 0 / 0.7315 GB, free: 4.867 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.983e-05/0.7098, allocations: 4 kB / 0.7315 GB, free: 4.863 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.7098, allocations: 0 / 0.7315 GB, free: 4.863 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.794e-05/0.7099, allocations: 15.92 kB / 0.7315 GB, free: 4.848 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.7099, allocations: 4 kB / 0.7315 GB, free: 4.844 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.7099, allocations: 4 kB / 0.7315 GB, free: 4.84 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005577/0.7104, allocations: 443.1 kB / 0.732 GB, free: 4.391 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.495e-05/0.7105, allocations: 96.8 kB / 0.7321 GB, free: 4.277 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.226e-05/0.7105, allocations: 23.92 kB / 0.7321 GB, free: 4.254 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001601/0.7107, allocations: 15.97 kB / 0.7321 GB, free: 4.238 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.615e-05/0.7108, allocations: 27.97 kB / 0.7321 GB, free: 4.211 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.853e-05/0.7108, allocations: 15.98 kB / 0.7321 GB, free: 4.195 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.722e-05/0.7109, allocations: 107.2 kB / 0.7322 GB, free: 4.09 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7109, allocations: 0 / 0.7322 GB, free: 4.09 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002749/0.7112, allocations: 51.94 kB / 0.7323 GB, free: 4.039 MB / 0.545 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 (booPul.y,booPul1.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booPul.pulseStart,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.pulseStart) * 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.0001535/0.7113, allocations: 129.5 kB / 0.7324 GB, free: 3.906 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00046/0.7118, allocations: 268.4 kB / 0.7327 GB, free: 3.645 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.7118, allocations: 4 kB / 0.7327 GB, free: 3.641 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002002/0.712, allocations: 106 kB / 0.7328 GB, free: 3.539 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003618/0.7124, allocations: 31.97 kB / 0.7328 GB, free: 3.508 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008333/0.7132, allocations: 357.8 kB / 0.7331 GB, free: 3.129 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.7136, allocations: 0.7284 MB / 0.7339 GB, free: 2.375 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.341e-05/0.7137, allocations: 21.94 kB / 0.7339 GB, free: 2.352 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.676e-05/0.7137, allocations: 23.44 kB / 0.7339 GB, free: 2.328 MB / 0.545 GB Notification: Performance of SimCode: time 3.3e-07/0.7137, allocations: 0 / 0.7339 GB, free: 2.328 MB / 0.545 GB Notification: Performance of Templates: time 0.005662/0.7194, allocations: 2.55 MB / 0.7364 GB, free: 15.8 MB / 0.5606 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)