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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.155/4.155, allocations: 432.6 MB / 445.2 MB, free: 15.72 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 4.323e-05/4.334e-05, allocations: 5.094 kB / 0.5383 GB, free: 10.25 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2491, allocations: 98.73 MB / 0.6347 GB, free: 1.863 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2376/0.4867, allocations: 127.7 MB / 0.7594 GB, free: 2.031 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003595/0.4871, allocations: 95.94 kB / 0.7595 GB, free: 1.938 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03325/0.5204, allocations: 7.258 MB / 0.7666 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.633e-06/0.5204, allocations: 0 / 0.7666 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.38e-05/0.5205, allocations: 8 kB / 0.7666 GB, free: 10.61 MB / 0.6511 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.002867/0.5234, allocations: 0.8753 MB / 0.7674 GB, free: 9.68 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.915e-05/0.5234, allocations: 19.97 kB / 0.7675 GB, free: 9.66 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001459/0.5236, allocations: 66.53 kB / 0.7675 GB, free: 9.586 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001903/0.5238, allocations: 63.36 kB / 0.7676 GB, free: 9.523 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008388/0.5247, allocations: 375.7 kB / 0.7679 GB, free: 9.113 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.71e-05/0.5247, allocations: 36.77 kB / 0.768 GB, free: 9.078 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.5248, allocations: 32 kB / 0.768 GB, free: 9.047 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.5263, allocations: 0.5507 MB / 0.7685 GB, free: 8.457 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.5263, allocations: 3.953 kB / 0.7685 GB, free: 8.453 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.212e-05/0.5264, allocations: 12 kB / 0.7686 GB, free: 8.441 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.442e-05/0.5264, allocations: 8 kB / 0.7686 GB, free: 8.434 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001126/0.5275, allocations: 424.2 kB / 0.769 GB, free: 8.02 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004158/0.5317, allocations: 1.645 MB / 0.7706 GB, free: 6.305 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002052/0.5338, allocations: 0.7068 MB / 0.7713 GB, free: 5.543 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006554/0.5345, allocations: 261 kB / 0.7715 GB, free: 5.27 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 6.612e-05/0.5346, allocations: 16.42 kB / 0.7715 GB, free: 5.254 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001043/0.5356, allocations: 450.1 kB / 0.772 GB, free: 4.785 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=51): time 3.547e-06/0.5357, allocations: 8 kB / 0.772 GB, free: 4.777 MB / 0.6511 GB Notification: Performance of matching and sorting (n=51): time 0.001822/0.5375, allocations: 0.6218 MB / 0.7726 GB, free: 4.148 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002058/0.5377, allocations: 289 kB / 0.7729 GB, free: 3.805 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007078/0.5384, allocations: 379.5 kB / 0.7732 GB, free: 3.43 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.5386, allocations: 45.7 kB / 0.7733 GB, free: 3.379 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002379/0.5388, allocations: 200.9 kB / 0.7734 GB, free: 3.176 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001816/0.539, allocations: 118.6 kB / 0.7736 GB, free: 3.059 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.693e-05/0.5391, allocations: 12 kB / 0.7736 GB, free: 3.047 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002091/0.5393, allocations: 362.8 kB / 0.7739 GB, free: 2.684 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005616/0.5399, allocations: 201 kB / 0.7741 GB, free: 2.488 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008258/0.5407, allocations: 394 kB / 0.7745 GB, free: 2.031 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006587/0.5414, allocations: 273.4 kB / 0.7747 GB, free: 1.758 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.5414, allocations: 0 / 0.7747 GB, free: 1.758 MB / 0.6511 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001685/0.5431, allocations: 0.6313 MB / 0.7754 GB, free: 1.113 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.5585/1.102, allocations: 1.855 MB / 0.7772 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.898e-05/1.102, allocations: 5.312 kB / 0.7772 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.157e-05/1.102, allocations: 8.844 kB / 0.7772 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000858/1.103, allocations: 113.8 kB / 0.7773 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.488e-05/1.103, allocations: 10.62 kB / 0.7773 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008789/1.104, allocations: 114.9 kB / 0.7774 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.287e-05/1.104, allocations: 23.08 kB / 0.7774 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/1.104, allocations: 6.812 kB / 0.7774 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00143/1.105, allocations: 0.5397 MB / 0.778 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/1.105, allocations: 4.781 kB / 0.778 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/1.105, allocations: 9.359 kB / 0.778 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005138/1.106, allocations: 78.66 kB / 0.7781 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.547e-05/1.106, allocations: 11.89 kB / 0.7781 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006654/1.106, allocations: 77.89 kB / 0.7781 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.425e-05/1.107, allocations: 20.72 kB / 0.7782 GB, free: 138.1 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.0003387/1.107, allocations: 191 kB / 0.7783 GB, free: 138 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000137/1.107, allocations: 45.03 kB / 0.7784 GB, free: 138 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001728/1.107, allocations: 55.3 kB / 0.7784 GB, free: 138 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/1.107, allocations: 11.19 kB / 0.7785 GB, free: 138 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/1.107, allocations: 4.531 kB / 0.7785 GB, free: 138 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/1.107, allocations: 4.531 kB / 0.7785 GB, free: 138 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003473/1.111, allocations: 1.731 MB / 0.7802 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.246e-06/1.111, allocations: 2.891 kB / 0.7802 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006043/1.111, allocations: 88.45 kB / 0.7802 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.324e-05/1.111, allocations: 4.312 kB / 0.7802 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.047e-05/1.112, allocations: 14.55 kB / 0.7803 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.015e-06/1.112, allocations: 4.125 kB / 0.7803 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/1.112, allocations: 6.141 kB / 0.7803 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001747/1.113, allocations: 1.135 MB / 0.7814 GB, free: 136.7 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000146/1.113, allocations: 126 kB / 0.7815 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/1.114, allocations: 13.3 kB / 0.7815 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001218/1.115, allocations: 124.8 kB / 0.7816 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002152/1.115, allocations: 53.17 kB / 0.7817 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.721e-05/1.115, allocations: 19.22 kB / 0.7817 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0006231/1.116, allocations: 301.2 kB / 0.782 GB, free: 136.5 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.61e-07/1.116, allocations: 0 / 0.782 GB, free: 136.5 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001449/1.117, allocations: 184.5 kB / 0.7822 GB, free: 136.5 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.00228/1.12, allocations: 2.069 MB / 0.7842 GB, free: 135 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002352/1.122, allocations: 0.9337 MB / 0.7851 GB, free: 134.8 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/1.122, allocations: 1.688 kB / 0.7851 GB, free: 134.8 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0008813/1.123, allocations: 298.8 kB / 0.7854 GB, free: 134.8 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009769/1.124, allocations: 70.77 kB / 0.7854 GB, free: 134.8 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00316/1.127, allocations: 0.9111 MB / 0.7863 GB, free: 134.6 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005385/1.128, allocations: 0.9201 MB / 0.7872 GB, free: 133.9 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001298/1.129, allocations: 288.1 kB / 0.7875 GB, free: 133.8 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003741/1.129, allocations: 142.8 kB / 0.7876 GB, free: 133.8 MB / 0.6511 GB Notification: Performance of SimCode: time 1.092e-06/1.129, allocations: 0 / 0.7876 GB, free: 133.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05816/1.188, allocations: 10.73 MB / 0.7981 GB, free: 132.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002681/1.188, allocations: 187.2 kB / 0.7983 GB, free: 132.6 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.903/4.091, allocations: 0 / 0.7983 GB, free: 132.6 MB / 0.6511 GB