Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.653/4.653, allocations: 0.5623 GB / 0.5776 GB, free: 66.95 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002759/0.002758, allocations: 361.5 kB / 0.6447 GB, free: 21.32 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.202/4.202, allocations: 410.8 MB / 1.113 GB, free: 109.6 MB / 0.5573 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001925/0.001924, allocations: 186.7 kB / 1.226 GB, free: 9.5 MB / 0.573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005066/0.0005068, allocations: 16 kB / 1.349 GB, free: 84.66 MB / 0.573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2427, allocations: 115.3 MB / 1.461 GB, free: 1.293 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond): time 0.6455/0.8882, allocations: 1.699 MB / 1.463 GB, free: 11.31 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001724/0.89, allocations: 0.6568 MB / 1.464 GB, free: 10.96 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001451/0.8902, allocations: 1.219 kB / 1.464 GB, free: 10.96 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 5.533e-05/0.8903, allocations: 16.45 kB / 1.464 GB, free: 10.95 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001642/0.8904, allocations: 32.41 kB / 1.464 GB, free: 10.93 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005288/0.891, allocations: 91.09 kB / 1.464 GB, free: 10.89 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0007849/0.8918, allocations: 479.8 kB / 1.464 GB, free: 10.67 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004667/0.8923, allocations: 188.5 kB / 1.464 GB, free: 10.61 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004647/0.8928, allocations: 157.3 kB / 1.465 GB, free: 10.54 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003218/0.8931, allocations: 174.8 kB / 1.465 GB, free: 10.46 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 7.491e-05/0.8932, allocations: 15.94 kB / 1.465 GB, free: 10.46 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 7.325e-05/0.8933, allocations: 16.94 kB / 1.465 GB, free: 10.46 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.8934, allocations: 71.61 kB / 1.465 GB, free: 10.43 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.8935, allocations: 105.7 kB / 1.465 GB, free: 10.35 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.001027/0.8946, allocations: 0.5123 MB / 1.465 GB, free: 10.28 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.8946, allocations: 1.312 kB / 1.465 GB, free: 10.28 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.916e-06/0.8946, allocations: 4.594 kB / 1.465 GB, free: 10.28 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 2.619e-05/0.8947, allocations: 0 / 1.465 GB, free: 10.28 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.003782/0.8985, allocations: 0.9527 MB / 1.466 GB, free: 9.691 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/0.8985, allocations: 8.156 kB / 1.466 GB, free: 9.691 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003344/0.8989, allocations: 59.95 kB / 1.466 GB, free: 9.66 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009496/0.8998, allocations: 394.4 kB / 1.467 GB, free: 9.371 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.825e-05/0.8999, allocations: 31.77 kB / 1.467 GB, free: 9.359 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001273/0.9001, allocations: 41.81 kB / 1.467 GB, free: 9.344 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002405/0.9025, allocations: 0.6875 MB / 1.468 GB, free: 9.078 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/0.9026, allocations: 0.5625 kB / 1.468 GB, free: 9.078 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.465e-05/0.9026, allocations: 13.95 kB / 1.468 GB, free: 9.07 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/0.9027, allocations: 12.09 kB / 1.468 GB, free: 9.066 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002733/0.9054, allocations: 0.6348 MB / 1.468 GB, free: 8.93 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004665/0.9101, allocations: 1.671 MB / 1.47 GB, free: 7.941 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003878/0.9141, allocations: 0.9494 MB / 1.471 GB, free: 7.621 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001546/0.9157, allocations: 367.8 kB / 1.471 GB, free: 7.5 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 7.779e-05/0.9158, allocations: 13.3 kB / 1.471 GB, free: 7.496 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001934/0.9177, allocations: 0.5519 MB / 1.472 GB, free: 7.281 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=51): time 4.458e-06/0.9178, allocations: 0 / 1.472 GB, free: 7.281 MB / 0.6042 GB Notification: Performance of matching and sorting (n=51): time 0.004954/0.9227, allocations: 1.146 MB / 1.473 GB, free: 6.996 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/0.9229, allocations: 282.4 kB / 1.473 GB, free: 6.68 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009611/0.9239, allocations: 438.6 kB / 1.473 GB, free: 6.48 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001825/0.9241, allocations: 49.83 kB / 1.474 GB, free: 6.438 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002124/0.9243, allocations: 210.8 kB / 1.474 GB, free: 6.262 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001781/0.9245, allocations: 125 kB / 1.474 GB, free: 6.176 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.485e-05/0.9245, allocations: 10.25 kB / 1.474 GB, free: 6.168 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.9247, allocations: 360.4 kB / 1.474 GB, free: 5.836 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001233/0.9259, allocations: 306.3 kB / 1.474 GB, free: 5.773 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001393/0.9273, allocations: 0.4943 MB / 1.475 GB, free: 5.492 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001299/0.9287, allocations: 365.2 kB / 1.475 GB, free: 5.375 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.808e-06/0.9287, allocations: 1.125 kB / 1.475 GB, free: 5.375 MB / 0.6042 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.003097/0.9318, allocations: 0.8406 MB / 1.476 GB, free: 5.098 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001666/0.932, allocations: 255.7 kB / 1.476 GB, free: 4.789 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.932, allocations: 5.562 kB / 1.476 GB, free: 4.789 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.704e-05/0.9321, allocations: 8.078 kB / 1.476 GB, free: 4.789 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008059/0.9329, allocations: 122.4 kB / 1.477 GB, free: 4.766 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.91e-05/0.933, allocations: 9.828 kB / 1.477 GB, free: 4.766 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009225/0.9339, allocations: 109 kB / 1.477 GB, free: 4.742 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.605e-05/0.934, allocations: 26.41 kB / 1.477 GB, free: 4.734 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.934, allocations: 6.688 kB / 1.477 GB, free: 4.734 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001973/0.936, allocations: 0.621 MB / 1.477 GB, free: 4.516 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/0.936, allocations: 5.797 kB / 1.477 GB, free: 4.516 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.9361, allocations: 8.344 kB / 1.477 GB, free: 4.516 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000527/0.9366, allocations: 74.95 kB / 1.477 GB, free: 4.504 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.559e-05/0.9366, allocations: 8.844 kB / 1.477 GB, free: 4.504 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007054/0.9374, allocations: 81.12 kB / 1.477 GB, free: 4.477 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.18e-05/0.9374, allocations: 24.5 kB / 1.477 GB, free: 4.473 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 53 ($PRE.triAndRes[1].uniDel1.firstTrigger,triAndRes[1].uniDel1.firstTrigger,$PRE.triAndRes[1].sam.firstTrigger,triAndRes[1].sam.firstTrigger,$whenCondition9,triAndRes[1].sam.sampleTrigger,$whenCondition10,triAndRes[1].uniDel1.sampleTrigger,$PRE.triAndRes[1].firstTrigger,triAndRes[1].firstTrigger,$whenCondition7,triAndRes[1].sampleTrigger,$PRE.triAndRes[2].uniDel1.firstTrigger,triAndRes[2].uniDel1.firstTrigger,$PRE.triAndRes[2].sam.firstTrigger,triAndRes[2].sam.firstTrigger,$whenCondition5,triAndRes[2].sam.sampleTrigger,$whenCondition6,triAndRes[2].uniDel1.sampleTrigger,triAndRes[2].incY.y,triAndRes[2].sam.y,$PRE.triAndRes[2].uniDel1.y,triAndRes[2].uniDel1.y,$PRE.triAndRes[2].firstTrigger,triAndRes[2].firstTrigger,$whenCondition4,triAndRes[2].sampleTrigger,$PRE.triAndRes[3].uniDel1.firstTrigger,triAndRes[3].uniDel1.firstTrigger,$PRE.triAndRes[3].sam.firstTrigger,triAndRes[3].sam.firstTrigger,$whenCondition2,triAndRes[3].sam.sampleTrigger,$whenCondition3,triAndRes[3].uniDel1.sampleTrigger,triAndRes[3].incY.y,triAndRes[3].sam.y,$PRE.triAndRes[3].uniDel1.y,triAndRes[3].uniDel1.y,$PRE.triAndRes[3].firstTrigger,triAndRes[3].firstTrigger,$whenCondition1,triAndRes[3].sampleTrigger,$whenCondition8,$PRE.act1.T_start,act1.T_start,$PRE.act1.count,act1.count,triAndRes[1].incY.y,triAndRes[1].sam.y,$PRE.triAndRes[1].uniDel1.y,triAndRes[1].uniDel1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * 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.0007074/0.9382, allocations: 380.3 kB / 1.478 GB, free: 4.203 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001703/0.9383, allocations: 48.59 kB / 1.478 GB, free: 4.18 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001573/0.9385, allocations: 58.86 kB / 1.478 GB, free: 4.141 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.9385, allocations: 3.891 kB / 1.478 GB, free: 4.141 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.9385, allocations: 1.438 kB / 1.478 GB, free: 4.141 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001182/0.9387, allocations: 128.8 kB / 1.478 GB, free: 4.016 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001311/0.9388, allocations: 19.28 kB / 1.478 GB, free: 4.008 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.9398, allocations: 118.8 kB / 1.478 GB, free: 4 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001896/0.9401, allocations: 61.56 kB / 1.478 GB, free: 3.98 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003623/0.9437, allocations: 1.343 MB / 1.48 GB, free: 3.312 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.003177/0.9469, allocations: 1.361 MB / 1.481 GB, free: 2.547 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001429/0.9484, allocations: 390.3 kB / 1.481 GB, free: 2.457 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0005798/0.949, allocations: 309.2 kB / 1.482 GB, free: 2.316 MB / 0.6042 GB Notification: Performance of Backend: time 9.62e-07/0.949, allocations: 4 kB / 1.482 GB, free: 2.312 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.00375/0.9528, allocations: 0.9112 MB / 1.482 GB, free: 1.938 MB / 0.6042 GB Notification: Performance of SimCode: time 0.002636/0.9555, allocations: 1.369 MB / 1.484 GB, free: 0.9766 MB / 0.6042 GB Notification: Performance of Templates: time 0.02959/0.9851, allocations: 9.185 MB / 1.493 GB, free: 14.57 MB / 0.6198 GB