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.UnitDelay.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.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001645/0.001645, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001941/0.001941, allocations: 195.1 kB / 16.53 MB, free: 6.664 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.822/1.822, allocations: 205.1 MB / 222.4 MB, free: 4.582 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.671/1.671, allocations: 251.7 MB / 0.5092 GB, free: 3.156 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.002391/0.002391, allocations: 71.89 kB / 0.6223 GB, free: 1.512 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6052/0.6076, allocations: 104.7 MB / 0.7245 GB, free: 12.96 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.003183/0.6108, allocations: 1.384 MB / 0.7259 GB, free: 11.57 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0006556/0.6115, allocations: 235 kB / 0.7261 GB, free: 11.34 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.487e-05/0.6116, allocations: 0 / 0.7261 GB, free: 11.34 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 5.311e-05/0.6117, allocations: 11.92 kB / 0.7261 GB, free: 11.32 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.000102/0.6118, allocations: 3.938 kB / 0.7261 GB, free: 11.32 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/0.6121, allocations: 27.92 kB / 0.7261 GB, free: 11.29 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001215/0.6122, allocations: 51.83 kB / 0.7262 GB, free: 11.24 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.6124, allocations: 8 kB / 0.7262 GB, free: 11.23 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 8.851e-05/0.6125, allocations: 19.92 kB / 0.7262 GB, free: 11.21 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.804e-05/0.6125, allocations: 15.92 kB / 0.7262 GB, free: 11.2 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.991e-05/0.6126, allocations: 4 kB / 0.7262 GB, free: 11.2 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.347e-05/0.6126, allocations: 4 kB / 0.7262 GB, free: 11.19 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.797e-05/0.6126, allocations: 11.98 kB / 0.7262 GB, free: 11.18 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.454e-05/0.6127, allocations: 23.86 kB / 0.7263 GB, free: 11.16 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001149/0.6128, allocations: 43.86 kB / 0.7263 GB, free: 11.11 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.6128, allocations: 7.938 kB / 0.7263 GB, free: 11.11 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.072e-06/0.6128, allocations: 0 / 0.7263 GB, free: 11.11 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.313e-06/0.6128, allocations: 0 / 0.7263 GB, free: 11.11 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007314/0.6135, allocations: 365.3 kB / 0.7267 GB, free: 10.7 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.6136, allocations: 12.03 kB / 0.7267 GB, free: 10.69 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.006e-05/0.6136, allocations: 0.9375 kB / 0.7267 GB, free: 10.69 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001468/0.6138, allocations: 172.3 kB / 0.7268 GB, free: 10.48 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.6138, allocations: 8.375 kB / 0.7269 GB, free: 10.47 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.843e-05/0.6138, allocations: 4.375 kB / 0.7269 GB, free: 10.47 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002066/0.6141, allocations: 66.2 kB / 0.7269 GB, free: 10.4 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.6141, allocations: 4.188 kB / 0.7269 GB, free: 10.39 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.317e-05/0.6141, allocations: 3.938 kB / 0.7269 GB, free: 10.39 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.6141, allocations: 0 / 0.7269 GB, free: 10.39 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001932/0.6143, allocations: 47.89 kB / 0.727 GB, free: 10.34 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005007/0.6148, allocations: 268.9 kB / 0.7272 GB, free: 10.03 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001637/0.615, allocations: 62.48 kB / 0.7273 GB, free: 9.961 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.829e-05/0.6151, allocations: 32.91 kB / 0.7273 GB, free: 9.926 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.6151, allocations: 7.938 kB / 0.7273 GB, free: 9.918 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002713/0.6154, allocations: 79.31 kB / 0.7274 GB, free: 9.828 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.663e-06/0.6154, allocations: 0 / 0.7274 GB, free: 9.828 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.0004426/0.6159, allocations: 117.5 kB / 0.7275 GB, free: 9.707 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.873e-05/0.6159, allocations: 59.41 kB / 0.7276 GB, free: 9.637 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.435e-05/0.616, allocations: 105.8 kB / 0.7277 GB, free: 9.523 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.6161, allocations: 29.7 kB / 0.7277 GB, free: 9.488 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.206e-05/0.6161, allocations: 84.08 kB / 0.7278 GB, free: 9.402 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.495e-05/0.6161, allocations: 15.81 kB / 0.7278 GB, free: 9.387 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.348e-05/0.6162, allocations: 29.64 kB / 0.7278 GB, free: 9.352 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.6163, allocations: 314.8 kB / 0.7281 GB, free: 9.035 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.418e-05/0.6164, allocations: 23.97 kB / 0.7281 GB, free: 9.012 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.6166, allocations: 64.27 kB / 0.7282 GB, free: 8.934 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/0.6168, allocations: 88.14 kB / 0.7283 GB, free: 8.832 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.6168, allocations: 0 / 0.7283 GB, free: 8.832 MB / 0.545 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002645/0.6171, allocations: 109.4 kB / 0.7284 GB, free: 8.719 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.815e-05/0.6171, allocations: 9.875 kB / 0.7284 GB, free: 8.711 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.6171, allocations: 160 / 0.7284 GB, free: 8.711 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.6171, allocations: 4 kB / 0.7284 GB, free: 8.707 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.6173, allocations: 19.98 kB / 0.7284 GB, free: 8.688 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.6173, allocations: 0 / 0.7284 GB, free: 8.688 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.272e-05/0.6173, allocations: 11.98 kB / 0.7284 GB, free: 8.676 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.6174, allocations: 0 / 0.7284 GB, free: 8.676 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.firstTrigger,$PRE.unitDelay1.firstTrigger,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * 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 9.576e-05/0.6175, allocations: 125.7 kB / 0.7286 GB, free: 8.543 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.199e-05/0.6175, allocations: 7.906 kB / 0.7286 GB, free: 8.535 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002811/0.6178, allocations: 102 kB / 0.7287 GB, free: 8.43 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.6178, allocations: 4 kB / 0.7287 GB, free: 8.426 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.6178, allocations: 0 / 0.7287 GB, free: 8.426 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.6178, allocations: 0 / 0.7287 GB, free: 8.426 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004759/0.6183, allocations: 358.4 kB / 0.729 GB, free: 8.02 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.6183, allocations: 0 / 0.729 GB, free: 8.02 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.164e-05/0.6184, allocations: 15.98 kB / 0.729 GB, free: 8.004 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.6184, allocations: 0 / 0.729 GB, free: 8.004 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.6184, allocations: 384 / 0.729 GB, free: 8.004 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.6184, allocations: 0 / 0.729 GB, free: 8.004 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.6184, allocations: 3.938 kB / 0.729 GB, free: 8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000307/0.6187, allocations: 195.6 kB / 0.7292 GB, free: 7.793 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.317e-05/0.6188, allocations: 85.02 kB / 0.7293 GB, free: 7.691 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.28e-05/0.6188, allocations: 11.94 kB / 0.7293 GB, free: 7.68 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.773e-05/0.6189, allocations: 7.984 kB / 0.7293 GB, free: 7.672 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.292e-05/0.619, allocations: 4 kB / 0.7293 GB, free: 7.668 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.817e-06/0.619, allocations: 3.938 kB / 0.7293 GB, free: 7.664 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.801e-05/0.6191, allocations: 87.27 kB / 0.7294 GB, free: 7.578 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6191, allocations: 4 kB / 0.7294 GB, free: 7.574 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002416/0.6193, allocations: 8 kB / 0.7294 GB, free: 7.566 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: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.firstTrigger) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001753/0.6195, allocations: 103.2 kB / 0.7295 GB, free: 7.457 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003011/0.6198, allocations: 67.88 kB / 0.7296 GB, free: 7.391 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.6198, allocations: 4 kB / 0.7296 GB, free: 7.387 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001175/0.6199, allocations: 27.92 kB / 0.7296 GB, free: 7.359 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002995/0.6203, allocations: 7.984 kB / 0.7296 GB, free: 7.352 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004479/0.6207, allocations: 140.6 kB / 0.7298 GB, free: 7.188 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002817/0.621, allocations: 0.6807 MB / 0.7304 GB, free: 6.48 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.139e-05/0.621, allocations: 7.984 kB / 0.7304 GB, free: 6.473 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.154e-05/0.6211, allocations: 7.438 kB / 0.7304 GB, free: 6.465 MB / 0.545 GB Notification: Performance of SimCode: time 1.356e-05/0.6211, allocations: 0 / 0.7304 GB, free: 6.465 MB / 0.545 GB Notification: Performance of Templates: time 0.003338/0.6244, allocations: 0.6652 MB / 0.7311 GB, free: 5.805 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)