Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,fileNamePrefix="Buildings_6_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.072/4.072, allocations: 433.2 MB / 440.7 MB, free: 4.586 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.314e-05/2.323e-05, allocations: 3.906 kB / 0.5325 GB, free: 12.64 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2168/0.2168, allocations: 98.73 MB / 0.6289 GB, free: 9.141 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2313/0.4482, allocations: 127 MB / 0.7529 GB, free: 9.969 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003425/0.4486, allocations: 91.92 kB / 0.753 GB, free: 9.879 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03248/0.4811, allocations: 7.212 MB / 0.7601 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.814e-06/0.4812, allocations: 0 / 0.7601 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 3.083e-05/0.4812, allocations: 8 kB / 0.7601 GB, free: 2.594 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.002872/0.4841, allocations: 0.884 MB / 0.7609 GB, free: 1.66 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/0.4842, allocations: 8.031 kB / 0.7609 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001958/0.4844, allocations: 51.44 kB / 0.761 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007812/0.4852, allocations: 375.8 kB / 0.7613 GB, free: 1.191 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.089e-05/0.4852, allocations: 12 kB / 0.7614 GB, free: 1.18 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.276e-05/0.4853, allocations: 32.67 kB / 0.7614 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001074/0.4864, allocations: 401.3 kB / 0.7618 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/0.4876, allocations: 0.5103 MB / 0.7623 GB, free: 216 kB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.4876, allocations: 0 / 0.7623 GB, free: 216 kB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.627e-05/0.4877, allocations: 4 kB / 0.7623 GB, free: 212 kB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.587e-05/0.4877, allocations: 12 kB / 0.7623 GB, free: 200 kB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003844/0.4916, allocations: 1.567 MB / 0.7638 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001789/0.4934, allocations: 0.6852 MB / 0.7645 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005676/0.494, allocations: 272.9 kB / 0.7647 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.856e-05/0.4941, allocations: 12.42 kB / 0.7648 GB, free: 13.54 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009709/0.4951, allocations: 441.4 kB / 0.7652 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=51): time 3.837e-06/0.4951, allocations: 3.938 kB / 0.7652 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of matching and sorting (n=51): time 0.001592/0.4967, allocations: 0.5984 MB / 0.7658 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001649/0.4969, allocations: 285 kB / 0.766 GB, free: 12.12 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005121/0.4974, allocations: 313 kB / 0.7663 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.385e-05/0.4975, allocations: 33.7 kB / 0.7664 GB, free: 11.78 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.000223/0.4977, allocations: 204.7 kB / 0.7666 GB, free: 11.57 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001644/0.4979, allocations: 122.6 kB / 0.7667 GB, free: 11.45 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.855e-05/0.498, allocations: 0 / 0.7667 GB, free: 11.45 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000167/0.4982, allocations: 354.8 kB / 0.767 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004968/0.4987, allocations: 201 kB / 0.7672 GB, free: 10.9 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000653/0.4993, allocations: 381.7 kB / 0.7676 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005581/0.4999, allocations: 227.8 kB / 0.7678 GB, free: 10.23 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.717e-06/0.4999, allocations: 4 kB / 0.7678 GB, free: 10.23 MB / 0.6511 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001464/0.5014, allocations: 0.5634 MB / 0.7683 GB, free: 9.656 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007579/0.5022, allocations: 1.854 MB / 0.7702 GB, free: 7.652 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.5022, allocations: 7.984 kB / 0.7702 GB, free: 7.645 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.11e-05/0.5023, allocations: 8 kB / 0.7702 GB, free: 7.637 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000787/0.5031, allocations: 115.8 kB / 0.7703 GB, free: 7.523 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.636e-05/0.5031, allocations: 11.94 kB / 0.7703 GB, free: 7.512 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008076/0.5039, allocations: 87.73 kB / 0.7704 GB, free: 7.426 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.755e-05/0.504, allocations: 28 kB / 0.7704 GB, free: 7.398 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.5041, allocations: 0.9375 kB / 0.7704 GB, free: 7.398 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001227/0.5053, allocations: 472.4 kB / 0.7709 GB, free: 6.938 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.5053, allocations: 8.094 kB / 0.7709 GB, free: 6.93 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.795e-05/0.5054, allocations: 11.95 kB / 0.7709 GB, free: 6.918 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005005/0.5059, allocations: 71.83 kB / 0.7709 GB, free: 6.848 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.528e-05/0.5059, allocations: 11.98 kB / 0.771 GB, free: 6.836 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006565/0.5066, allocations: 59.78 kB / 0.771 GB, free: 6.777 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.557e-05/0.5066, allocations: 24 kB / 0.771 GB, free: 6.754 MB / 0.6511 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 () * 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.0003435/0.507, allocations: 168.9 kB / 0.7712 GB, free: 6.582 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001513/0.5085, allocations: 0.5904 MB / 0.7718 GB, free: 5.984 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.5087, allocations: 43.48 kB / 0.7718 GB, free: 5.941 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001625/0.5088, allocations: 50.95 kB / 0.7719 GB, free: 5.891 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.5089, allocations: 4 kB / 0.7719 GB, free: 5.887 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.5089, allocations: 4 kB / 0.7719 GB, free: 5.883 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.5089, allocations: 3.984 kB / 0.7719 GB, free: 5.879 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003164/0.5121, allocations: 1.635 MB / 0.7735 GB, free: 4.195 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.368e-06/0.5121, allocations: 4 kB / 0.7735 GB, free: 4.191 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006172/0.5128, allocations: 87.78 kB / 0.7736 GB, free: 4.105 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.544e-05/0.5128, allocations: 7.984 kB / 0.7736 GB, free: 4.098 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.54e-05/0.5129, allocations: 16 kB / 0.7736 GB, free: 4.082 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.708e-06/0.5129, allocations: 7.938 kB / 0.7736 GB, free: 4.074 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/0.5129, allocations: 3.984 kB / 0.7736 GB, free: 4.07 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001697/0.5146, allocations: 1.108 MB / 0.7747 GB, free: 2.91 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/0.5148, allocations: 116.6 kB / 0.7748 GB, free: 2.777 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.5149, allocations: 11.98 kB / 0.7748 GB, free: 2.766 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/0.5161, allocations: 115.8 kB / 0.7749 GB, free: 2.652 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001797/0.5163, allocations: 55.88 kB / 0.775 GB, free: 2.598 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.055e-05/0.5163, allocations: 23.98 kB / 0.775 GB, free: 2.574 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003834/0.5167, allocations: 240.6 kB / 0.7752 GB, free: 2.336 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.062e-06/0.5167, allocations: 0 / 0.7752 GB, free: 2.336 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001338/0.5181, allocations: 171.5 kB / 0.7754 GB, free: 2.168 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 39 (triAndRes[3].sampleTrigger,$whenCondition1,triAndRes[3].firstTrigger,triAndRes[3].uniDel1.sampleTrigger,triAndRes[3].sam.sampleTrigger,$whenCondition3,$whenCondition2,triAndRes[3].incY.y,triAndRes[3].sam.firstTrigger,triAndRes[3].sam.y,triAndRes[3].uniDel1.firstTrigger,triAndRes[3].uniDel1.y,triAndRes[2].sampleTrigger,$whenCondition4,triAndRes[2].firstTrigger,triAndRes[2].uniDel1.sampleTrigger,triAndRes[2].sam.sampleTrigger,$whenCondition6,$whenCondition5,triAndRes[2].incY.y,triAndRes[2].sam.firstTrigger,triAndRes[2].sam.y,triAndRes[2].uniDel1.firstTrigger,triAndRes[2].uniDel1.y,triAndRes[1].sampleTrigger,$whenCondition7,triAndRes[1].firstTrigger,triAndRes[1].uniDel1.sampleTrigger,triAndRes[1].sam.sampleTrigger,$whenCondition10,$whenCondition9,$whenCondition8,act1.T_start,act1.count,triAndRes[1].incY.y,triAndRes[1].sam.firstTrigger,triAndRes[1].sam.y,triAndRes[1].uniDel1.firstTrigger,triAndRes[1].uniDel1.y) * Number of discrete states: 4 (act1.count,triAndRes[1].uniDel1.u,triAndRes[2].uniDel1.u,triAndRes[3].uniDel1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.002212/0.5203, allocations: 2.03 MB / 0.7774 GB, free: 92 kB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.5559/1.076, allocations: 0.8762 MB / 0.7782 GB, free: 143.1 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.341e-06/1.076, allocations: 1.906 kB / 0.7782 GB, free: 143.1 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0007216/1.077, allocations: 277.8 kB / 0.7785 GB, free: 143.1 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009705/1.078, allocations: 59.5 kB / 0.7785 GB, free: 143.1 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002949/1.081, allocations: 0.8719 MB / 0.7794 GB, free: 142.9 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006574/1.082, allocations: 0.9115 MB / 0.7803 GB, free: 142.2 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001386/1.083, allocations: 258.5 kB / 0.7805 GB, free: 142.2 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003866/1.084, allocations: 136.4 kB / 0.7807 GB, free: 142.2 MB / 0.6511 GB Notification: Performance of SimCode: time 1.312e-06/1.084, allocations: 0.5 kB / 0.7807 GB, free: 142.2 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07201/1.156, allocations: 9.409 MB / 0.7898 GB, free: 141.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002588/1.156, allocations: 180.7 kB / 0.79 GB, free: 141.6 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.872/4.028, allocations: 0 / 0.79 GB, free: 141.6 MB / 0.6511 GB