Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.571/1.571, allocations: 297.8 MB / 313.7 MB, free: 144 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 184.4 kB / 384.6 MB, free: 10.86 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 223.2 MB / 0.6626 GB, free: 4.277 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 96.91 kB / 0.7808 GB, free: 50.21 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003799/0.00038, allocations: 19.92 kB / 0.9088 GB, free: 2.855 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6054/0.6058, allocations: 120.3 MB / 1.026 GB, free: 55.92 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1815/0.7873, allocations: 141.9 MB / 1.165 GB, free: 1.789 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002166/0.7876, allocations: 72.28 kB / 1.165 GB, free: 1.73 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01572/0.8033, allocations: 5.574 MB / 1.17 GB, free: 13.81 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.413e-06/0.8034, allocations: 0 / 1.17 GB, free: 13.81 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.578e-05/0.8034, allocations: 8.656 kB / 1.17 GB, free: 13.8 MB / 0.7448 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.0008555/0.8042, allocations: 0.4947 MB / 1.171 GB, free: 13.27 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.8043, allocations: 8.031 kB / 1.171 GB, free: 13.26 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001298/0.8044, allocations: 22.58 kB / 1.171 GB, free: 13.24 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004123/0.8049, allocations: 239.1 kB / 1.171 GB, free: 12.99 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.437e-05/0.8049, allocations: 15.59 kB / 1.171 GB, free: 12.98 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.701e-05/0.805, allocations: 23.38 kB / 1.171 GB, free: 12.96 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000446/0.8055, allocations: 196.9 kB / 1.171 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.8055, allocations: 2.281 kB / 1.171 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.069e-05/0.8055, allocations: 15.69 kB / 1.171 GB, free: 12.8 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.8055, allocations: 4 kB / 1.171 GB, free: 12.8 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002176/0.8058, allocations: 89.3 kB / 1.171 GB, free: 12.73 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008074/0.8066, allocations: 492.8 kB / 1.172 GB, free: 12.3 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000271/0.8069, allocations: 142.2 kB / 1.172 GB, free: 12.18 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001755/0.8071, allocations: 95.45 kB / 1.172 GB, free: 12.09 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.8071, allocations: 2.031 kB / 1.172 GB, free: 12.09 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003955/0.8075, allocations: 218.8 kB / 1.172 GB, free: 11.92 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=28): time 2.565e-06/0.8075, allocations: 0 / 1.172 GB, free: 11.92 MB / 0.7448 GB Notification: Performance of matching and sorting (n=28): time 0.0009286/0.8084, allocations: 469.5 kB / 1.173 GB, free: 11.52 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.267e-05/0.8085, allocations: 60.14 kB / 1.173 GB, free: 11.45 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.8086, allocations: 140.1 kB / 1.173 GB, free: 11.32 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 7.027e-05/0.8087, allocations: 44 kB / 1.173 GB, free: 11.27 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.93e-05/0.8088, allocations: 103.1 kB / 1.173 GB, free: 11.17 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 8.658e-05/0.8089, allocations: 69.95 kB / 1.173 GB, free: 11.11 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.362e-05/0.809, allocations: 16.75 kB / 1.173 GB, free: 11.09 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001465/0.8091, allocations: 329 kB / 1.174 GB, free: 10.77 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003296/0.8095, allocations: 138.1 kB / 1.174 GB, free: 10.65 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003455/0.8098, allocations: 208.8 kB / 1.174 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005339/0.8103, allocations: 352 kB / 1.174 GB, free: 10.1 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.8104, allocations: 5.031 kB / 1.174 GB, free: 10.1 MB / 0.7448 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009085/0.8113, allocations: 0.4893 MB / 1.175 GB, free: 9.641 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 7.654e-05/0.8114, allocations: 67.73 kB / 1.175 GB, free: 9.566 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.8114, allocations: 5.75 kB / 1.175 GB, free: 9.562 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.363e-05/0.8114, allocations: 7.938 kB / 1.175 GB, free: 9.555 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002618/0.8117, allocations: 59.89 kB / 1.175 GB, free: 9.504 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.8117, allocations: 4.656 kB / 1.175 GB, free: 9.5 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004054/0.8121, allocations: 97.22 kB / 1.175 GB, free: 9.422 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.534e-05/0.8122, allocations: 23.8 kB / 1.175 GB, free: 9.402 MB / 0.7448 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,$whenCondition4,$PRE.booPul1.y,booPul1.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2,triMovMea.y,$PRE.triMovMea.iSample,triMovMea.iSample,$PRE.triMovMea.counter,triMovMea.counter,triMovMea.index,$PRE.triMovMea.ySample[1],triMovMea.ySample[1],$PRE.triMovMea.ySample[2],triMovMea.ySample[2],$PRE.triMovMea.ySample[3],triMovMea.ySample[3],triMovMea1.y,$PRE.triMovMea1.iSample,triMovMea1.iSample,$PRE.triMovMea1.counter,triMovMea1.counter,triMovMea1.index,$PRE.triMovMea1.ySample[1],triMovMea1.ySample[1],triMovMea2.y,$PRE.triMovMea2.iSample,triMovMea2.iSample,$PRE.triMovMea2.counter,triMovMea2.counter,triMovMea2.index,$PRE.triMovMea2.ySample[1],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002102/0.8124, allocations: 167.6 kB / 1.175 GB, free: 9.238 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.959e-05/0.8125, allocations: 21.17 kB / 1.175 GB, free: 9.219 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.682e-05/0.8125, allocations: 15.66 kB / 1.175 GB, free: 9.211 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.563e-06/0.8125, allocations: 8.594 kB / 1.175 GB, free: 9.203 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.8125, allocations: 0.875 kB / 1.175 GB, free: 9.203 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.8126, allocations: 1.219 kB / 1.175 GB, free: 9.203 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009182/0.8135, allocations: 0.6833 MB / 1.176 GB, free: 8.496 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.8135, allocations: 0 / 1.176 GB, free: 8.496 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.231e-05/0.8135, allocations: 7.938 kB / 1.176 GB, free: 8.488 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.8136, allocations: 4 kB / 1.176 GB, free: 8.484 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.426e-05/0.8136, allocations: 24.53 kB / 1.176 GB, free: 8.461 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.175e-06/0.8136, allocations: 0 / 1.176 GB, free: 8.461 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.8136, allocations: 0 / 1.176 GB, free: 8.461 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006068/0.8142, allocations: 467.4 kB / 1.176 GB, free: 7.988 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.511e-05/0.8143, allocations: 97.61 kB / 1.176 GB, free: 7.875 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.629e-05/0.8144, allocations: 17.55 kB / 1.176 GB, free: 7.859 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.8145, allocations: 19.92 kB / 1.176 GB, free: 7.84 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.022e-05/0.8145, allocations: 16.97 kB / 1.176 GB, free: 7.824 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-05/0.8146, allocations: 15.97 kB / 1.176 GB, free: 7.809 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 7.587e-05/0.8147, allocations: 105.6 kB / 1.177 GB, free: 7.707 MB / 0.7448 GB Notification: Performance of sort global known variables: time 2.21e-07/0.8147, allocations: 0 / 1.177 GB, free: 7.707 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003998/0.8151, allocations: 71.98 kB / 1.177 GB, free: 7.637 MB / 0.7448 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[3],triMovMea.ySample[2],triMovMea.ySample[1],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 21 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002844/0.8154, allocations: 155.4 kB / 1.177 GB, free: 7.477 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0008028/0.8162, allocations: 446.5 kB / 1.177 GB, free: 7.016 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.8162, allocations: 0 / 1.177 GB, free: 7.016 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0002281/0.8164, allocations: 127.9 kB / 1.177 GB, free: 6.891 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003872/0.8168, allocations: 44.12 kB / 1.177 GB, free: 6.852 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006422/0.8175, allocations: 340.4 kB / 1.178 GB, free: 6.492 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003303/0.8178, allocations: 0.7171 MB / 1.178 GB, free: 5.746 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 8.647e-05/0.8179, allocations: 23.73 kB / 1.178 GB, free: 5.723 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.958e-05/0.818, allocations: 23.42 kB / 1.178 GB, free: 5.699 MB / 0.7448 GB Notification: Performance of SimCode: time 2.044e-06/0.818, allocations: 3.938 kB / 1.178 GB, free: 5.695 MB / 0.7448 GB Notification: Performance of Templates: time 0.007519/0.8255, allocations: 3.371 MB / 1.182 GB, free: 2.445 MB / 0.7448 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)