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.008713/0.008713, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001708/0.001708, allocations: 195.8 kB / 16.67 MB, free: 5.52 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.62/1.62, allocations: 205.1 MB / 222.5 MB, free: 12.25 MB / 190.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.409/1.409, allocations: 251.7 MB / 0.5094 GB, free: 424 kB / 430.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.001773/0.001773, allocations: 71.91 kB / 0.7258 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8419/0.8437, allocations: 104.7 MB / 0.828 GB, free: 2.629 MB / 0.6231 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002926/0.8466, allocations: 1.632 MB / 0.8296 GB, free: 0.9805 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.0008123/0.8475, allocations: 373.9 kB / 0.83 GB, free: 0.6133 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.71e-05/0.8476, allocations: 3.938 kB / 0.83 GB, free: 0.6094 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.0001415/0.8477, allocations: 15.8 kB / 0.83 GB, free: 0.5938 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0001772/0.8479, allocations: 39.7 kB / 0.83 GB, free: 0.5547 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003184/0.8482, allocations: 79.77 kB / 0.8301 GB, free: 488 kB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.0002576/0.8485, allocations: 179.5 kB / 0.8303 GB, free: 308 kB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.8487, allocations: 33.48 kB / 0.8303 GB, free: 268 kB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001621/0.8488, allocations: 79.75 kB / 0.8304 GB, free: 188 kB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001899/0.849, allocations: 91.66 kB / 0.8305 GB, free: 96 kB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 3.458e-05/0.8491, allocations: 12 kB / 0.8305 GB, free: 84 kB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 2.954e-05/0.8491, allocations: 12 kB / 0.8305 GB, free: 72 kB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 8.677e-05/0.8492, allocations: 51.81 kB / 0.8306 GB, free: 20 kB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.000128/0.8493, allocations: 75.77 kB / 0.8306 GB, free: 15.94 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.0002474/0.8496, allocations: 174.8 kB / 0.8308 GB, free: 15.78 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.8496, allocations: 4 kB / 0.8308 GB, free: 15.77 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.454e-06/0.8496, allocations: 0 / 0.8308 GB, free: 15.77 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 9.688e-06/0.8496, allocations: 4 kB / 0.8308 GB, free: 15.77 MB / 0.6387 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.001146/0.8508, allocations: 489.5 kB / 0.8313 GB, free: 15.24 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.8509, allocations: 8.031 kB / 0.8313 GB, free: 15.23 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.92e-05/0.8509, allocations: 20.73 kB / 0.8313 GB, free: 15.21 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002766/0.8512, allocations: 220 kB / 0.8315 GB, free: 14.96 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.8512, allocations: 12.38 kB / 0.8315 GB, free: 14.95 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.936e-05/0.8513, allocations: 16.36 kB / 0.8315 GB, free: 14.93 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003961/0.8517, allocations: 186.5 kB / 0.8317 GB, free: 14.75 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.8517, allocations: 192 / 0.8317 GB, free: 14.75 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.696e-05/0.8517, allocations: 11.92 kB / 0.8317 GB, free: 14.73 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.8518, allocations: 7.984 kB / 0.8317 GB, free: 14.73 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002362/0.852, allocations: 99.88 kB / 0.8318 GB, free: 14.63 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007138/0.8527, allocations: 420.2 kB / 0.8322 GB, free: 14.17 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002891/0.853, allocations: 159.5 kB / 0.8324 GB, free: 14 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001748/0.8532, allocations: 92.81 kB / 0.8325 GB, free: 13.91 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.8532, allocations: 4 kB / 0.8325 GB, free: 13.91 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000339/0.8536, allocations: 192 kB / 0.8327 GB, free: 13.71 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=28): time 1.713e-06/0.8536, allocations: 0 / 0.8327 GB, free: 13.71 MB / 0.6387 GB Notification: Performance of matching and sorting (n=28): time 0.0008174/0.8544, allocations: 450.1 kB / 0.8331 GB, free: 13.27 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.8545, allocations: 59.41 kB / 0.8331 GB, free: 13.2 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001271/0.8546, allocations: 137.1 kB / 0.8333 GB, free: 13.05 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 7.784e-05/0.8547, allocations: 41.69 kB / 0.8333 GB, free: 13 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 6.202e-05/0.8548, allocations: 96.61 kB / 0.8334 GB, free: 12.91 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 6.884e-05/0.8549, allocations: 75.17 kB / 0.8335 GB, free: 12.83 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.855, allocations: 69.69 kB / 0.8335 GB, free: 12.76 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001396/0.8551, allocations: 334.8 kB / 0.8339 GB, free: 12.42 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001911/0.8553, allocations: 104.3 kB / 0.834 GB, free: 12.32 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002337/0.8555, allocations: 171.5 kB / 0.8341 GB, free: 12.13 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003942/0.856, allocations: 273.5 kB / 0.8344 GB, free: 11.84 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.856, allocations: 4 kB / 0.8344 GB, free: 11.84 MB / 0.6387 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005274/0.8565, allocations: 348.3 kB / 0.8347 GB, free: 11.49 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.8565, allocations: 4 kB / 0.8347 GB, free: 11.49 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.8565, allocations: 4 kB / 0.8347 GB, free: 11.48 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.005e-05/0.8566, allocations: 4 kB / 0.8347 GB, free: 11.48 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002566/0.8568, allocations: 59.91 kB / 0.8348 GB, free: 11.42 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.8569, allocations: 4 kB / 0.8348 GB, free: 11.42 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001738/0.857, allocations: 35.89 kB / 0.8348 GB, free: 11.38 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.989e-05/0.8571, allocations: 12 kB / 0.8348 GB, free: 11.37 MB / 0.6387 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.0001617/0.8572, allocations: 178.5 kB / 0.835 GB, free: 11.19 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.254e-05/0.8573, allocations: 19.75 kB / 0.835 GB, free: 11.17 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.003e-05/0.8573, allocations: 13.88 kB / 0.835 GB, free: 11.16 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.8573, allocations: 3.984 kB / 0.835 GB, free: 11.16 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.415e-05/0.8574, allocations: 4 kB / 0.835 GB, free: 11.15 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.786e-06/0.8574, allocations: 8 kB / 0.8351 GB, free: 11.14 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001123/0.8585, allocations: 0.7138 MB / 0.8358 GB, free: 10.38 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.8585, allocations: 0 / 0.8358 GB, free: 10.38 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.694e-05/0.8586, allocations: 7.984 kB / 0.8358 GB, free: 10.37 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.8586, allocations: 4 kB / 0.8358 GB, free: 10.36 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.831e-05/0.8586, allocations: 11.92 kB / 0.8358 GB, free: 10.35 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.8586, allocations: 0 / 0.8358 GB, free: 10.35 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.8586, allocations: 0 / 0.8358 GB, free: 10.35 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006053/0.8592, allocations: 451.8 kB / 0.8362 GB, free: 9.895 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 5.433e-05/0.8593, allocations: 92.86 kB / 0.8363 GB, free: 9.785 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.02e-05/0.8594, allocations: 19.92 kB / 0.8363 GB, free: 9.766 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002117/0.8596, allocations: 19.97 kB / 0.8363 GB, free: 9.746 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.052e-05/0.8597, allocations: 23.91 kB / 0.8364 GB, free: 9.723 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-05/0.8597, allocations: 15.98 kB / 0.8364 GB, free: 9.707 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 7.264e-05/0.8598, allocations: 107.3 kB / 0.8365 GB, free: 9.602 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8598, allocations: 0 / 0.8365 GB, free: 9.602 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0003085/0.8601, allocations: 55.89 kB / 0.8365 GB, free: 9.547 MB / 0.6387 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.0001834/0.8603, allocations: 133.5 kB / 0.8367 GB, free: 9.41 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0005102/0.8608, allocations: 256 kB / 0.8369 GB, free: 9.16 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.8608, allocations: 8 kB / 0.8369 GB, free: 9.152 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0002278/0.8611, allocations: 115.9 kB / 0.837 GB, free: 9.039 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003657/0.8615, allocations: 31.95 kB / 0.837 GB, free: 9.008 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006881/0.8622, allocations: 324.1 kB / 0.8374 GB, free: 8.668 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003406/0.8625, allocations: 0.7283 MB / 0.8381 GB, free: 7.914 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 7.876e-05/0.8626, allocations: 17.95 kB / 0.8381 GB, free: 7.895 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.351e-05/0.8627, allocations: 27.42 kB / 0.8381 GB, free: 7.867 MB / 0.6387 GB Notification: Performance of SimCode: time 2.81e-07/0.8627, allocations: 0 / 0.8381 GB, free: 7.867 MB / 0.6387 GB Notification: Performance of Templates: time 0.007003/0.8697, allocations: 2.743 MB / 0.8408 GB, free: 5.145 MB / 0.6387 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)