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.001661/0.001661, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002065/0.002065, allocations: 193.9 kB / 16.25 MB, free: 6.621 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.713/1.713, allocations: 205.1 MB / 222.1 MB, free: 4.688 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.616/1.616, allocations: 251.6 MB / 0.5089 GB, free: 3.273 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.001377/0.001377, allocations: 67.91 kB / 0.6218 GB, free: 1.809 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6738/0.6752, allocations: 104.7 MB / 0.724 GB, free: 13.08 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.003265/0.6785, allocations: 1.701 MB / 0.7257 GB, free: 11.36 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0008308/0.6794, allocations: 375.7 kB / 0.726 GB, free: 10.99 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.533e-05/0.6794, allocations: 3.938 kB / 0.726 GB, free: 10.99 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001398/0.6796, allocations: 7.922 kB / 0.726 GB, free: 10.98 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001725/0.6798, allocations: 27.78 kB / 0.7261 GB, free: 10.95 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002807/0.6801, allocations: 71.92 kB / 0.7261 GB, free: 10.88 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002189/0.6803, allocations: 187.4 kB / 0.7263 GB, free: 10.7 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.6804, allocations: 29.34 kB / 0.7263 GB, free: 10.66 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001499/0.6806, allocations: 83.8 kB / 0.7264 GB, free: 10.58 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002093/0.6808, allocations: 91.59 kB / 0.7265 GB, free: 10.49 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.602e-05/0.6809, allocations: 12 kB / 0.7265 GB, free: 10.48 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 2.756e-05/0.6809, allocations: 20 kB / 0.7265 GB, free: 10.46 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 9.023e-05/0.681, allocations: 39.89 kB / 0.7266 GB, free: 10.42 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001027/0.6811, allocations: 79.59 kB / 0.7266 GB, free: 10.34 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002355/0.6814, allocations: 169.4 kB / 0.7268 GB, free: 10.18 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.6814, allocations: 3.938 kB / 0.7268 GB, free: 10.18 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.603e-06/0.6814, allocations: 0 / 0.7268 GB, free: 10.18 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.193e-05/0.6814, allocations: 0 / 0.7268 GB, free: 10.18 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.0009885/0.6824, allocations: 491.3 kB / 0.7273 GB, free: 9.645 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.6824, allocations: 12.03 kB / 0.7273 GB, free: 9.633 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.21e-05/0.6825, allocations: 16.75 kB / 0.7273 GB, free: 9.617 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002516/0.6828, allocations: 223.9 kB / 0.7275 GB, free: 9.359 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.629e-05/0.6828, allocations: 16.36 kB / 0.7275 GB, free: 9.344 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.22e-05/0.6828, allocations: 12.38 kB / 0.7275 GB, free: 9.332 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003811/0.6832, allocations: 186.8 kB / 0.7277 GB, free: 9.145 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.6832, allocations: 192 / 0.7277 GB, free: 9.145 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.757e-05/0.6833, allocations: 7.938 kB / 0.7277 GB, free: 9.137 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.6833, allocations: 4 kB / 0.7277 GB, free: 9.133 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002356/0.6835, allocations: 95.94 kB / 0.7278 GB, free: 9.039 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006584/0.6842, allocations: 428.4 kB / 0.7282 GB, free: 8.57 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000256/0.6845, allocations: 142.4 kB / 0.7284 GB, free: 8.422 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001782/0.6846, allocations: 96.81 kB / 0.7285 GB, free: 8.324 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.139e-05/0.6847, allocations: 4.172 kB / 0.7285 GB, free: 8.32 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000361/0.685, allocations: 205.1 kB / 0.7287 GB, free: 8.109 MB / 0.545 GB Notification: Performance of pre-optimization done (n=28): time 1.824e-06/0.6851, allocations: 0 / 0.7287 GB, free: 8.109 MB / 0.545 GB Notification: Performance of matching and sorting (n=28): time 0.0008499/0.6859, allocations: 439.8 kB / 0.7291 GB, free: 7.676 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.755e-05/0.686, allocations: 59.41 kB / 0.7291 GB, free: 7.605 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.6861, allocations: 145.4 kB / 0.7293 GB, free: 7.457 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.786e-05/0.6862, allocations: 37.7 kB / 0.7293 GB, free: 7.414 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.128e-05/0.6863, allocations: 104.6 kB / 0.7294 GB, free: 7.309 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 7.047e-05/0.6863, allocations: 71.17 kB / 0.7295 GB, free: 7.238 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.6865, allocations: 69.69 kB / 0.7295 GB, free: 7.164 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001568/0.6866, allocations: 330.8 kB / 0.7299 GB, free: 6.832 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001984/0.6868, allocations: 112.2 kB / 0.73 GB, free: 6.723 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002282/0.6871, allocations: 171.3 kB / 0.7301 GB, free: 6.531 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004797/0.6875, allocations: 279.7 kB / 0.7304 GB, free: 6.234 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.6876, allocations: 0 / 0.7304 GB, free: 6.234 MB / 0.545 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005095/0.6881, allocations: 331.3 kB / 0.7307 GB, free: 5.906 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.6881, allocations: 12 kB / 0.7307 GB, free: 5.895 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.6881, allocations: 0 / 0.7307 GB, free: 5.895 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.6881, allocations: 4 kB / 0.7307 GB, free: 5.891 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002408/0.6884, allocations: 59.84 kB / 0.7308 GB, free: 5.832 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.6884, allocations: 4 kB / 0.7308 GB, free: 5.828 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002498/0.6887, allocations: 43.66 kB / 0.7308 GB, free: 5.785 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.405e-05/0.6887, allocations: 15.98 kB / 0.7308 GB, free: 5.77 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.0001599/0.6889, allocations: 169.8 kB / 0.731 GB, free: 5.594 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.788e-05/0.6889, allocations: 19.8 kB / 0.731 GB, free: 5.574 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.597e-05/0.689, allocations: 13.81 kB / 0.731 GB, free: 5.562 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.689, allocations: 4 kB / 0.731 GB, free: 5.559 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.689, allocations: 0 / 0.731 GB, free: 5.559 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.689, allocations: 0 / 0.731 GB, free: 5.559 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.69, allocations: 0.7129 MB / 0.7317 GB, free: 4.789 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.69, allocations: 0 / 0.7317 GB, free: 4.789 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.042e-05/0.6901, allocations: 4 kB / 0.7317 GB, free: 4.785 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.6901, allocations: 3.984 kB / 0.7317 GB, free: 4.781 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.805e-05/0.6901, allocations: 15.92 kB / 0.7318 GB, free: 4.766 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.6901, allocations: 0 / 0.7318 GB, free: 4.766 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.6901, allocations: 0 / 0.7318 GB, free: 4.766 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005789/0.6907, allocations: 450 kB / 0.7322 GB, free: 4.312 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.911e-05/0.6908, allocations: 96.8 kB / 0.7323 GB, free: 4.199 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.842e-05/0.6909, allocations: 23.92 kB / 0.7323 GB, free: 4.176 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001618/0.691, allocations: 11.98 kB / 0.7323 GB, free: 4.164 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.749e-05/0.6911, allocations: 23.97 kB / 0.7323 GB, free: 4.141 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.293e-05/0.6911, allocations: 15.98 kB / 0.7324 GB, free: 4.125 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.214e-05/0.6912, allocations: 111.2 kB / 0.7325 GB, free: 4.016 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.6912, allocations: 0 / 0.7325 GB, free: 4.016 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003024/0.6915, allocations: 44 kB / 0.7325 GB, free: 3.973 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.0002429/0.6918, allocations: 137.4 kB / 0.7326 GB, free: 3.832 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005955/0.6924, allocations: 284.6 kB / 0.7329 GB, free: 3.555 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.6924, allocations: 0 / 0.7329 GB, free: 3.555 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002225/0.6927, allocations: 111.9 kB / 0.733 GB, free: 3.445 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003759/0.6931, allocations: 40.38 kB / 0.7331 GB, free: 3.406 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007727/0.6938, allocations: 365.3 kB / 0.7334 GB, free: 3.02 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003717/0.6942, allocations: 0.7245 MB / 0.7341 GB, free: 2.27 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 8.513e-05/0.6943, allocations: 21.95 kB / 0.7341 GB, free: 2.246 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.607e-05/0.6944, allocations: 27.42 kB / 0.7342 GB, free: 2.219 MB / 0.545 GB Notification: Performance of SimCode: time 2e-07/0.6944, allocations: 0 / 0.7342 GB, free: 2.219 MB / 0.545 GB Notification: Performance of Templates: time 0.005406/0.6998, allocations: 2.692 MB / 0.7368 GB, free: 15.54 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)