Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,fileNamePrefix="Buildings_7_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.401/2.401, allocations: 248.7 MB / 256.2 MB, free: 7.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001532/0.001531, allocations: 191.4 kB / 315.4 MB, free: 3.992 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.032/2.032, allocations: 205.3 MB / 0.5662 GB, free: 0.543 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001142/0.001141, allocations: 93.62 kB / 0.6704 GB, free: 5.746 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.999e-05/2.998e-05, allocations: 4 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.2225, allocations: 106.3 MB / 0.8841 GB, free: 12.98 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8947/1.117, allocations: 135.4 MB / 1.016 GB, free: 3.434 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003626/1.118, allocations: 94.77 kB / 1.016 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03563/1.153, allocations: 7.837 MB / 1.024 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.843e-06/1.153, allocations: 4 kB / 1.024 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.608e-05/1.153, allocations: 8 kB / 1.024 GB, free: 12.7 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.00287/1.156, allocations: 0.8906 MB / 1.025 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.512e-05/1.156, allocations: 8.031 kB / 1.025 GB, free: 11.78 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002173/1.157, allocations: 55.12 kB / 1.025 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009379/1.158, allocations: 406.2 kB / 1.025 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.187e-05/1.158, allocations: 12 kB / 1.025 GB, free: 11.33 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/1.158, allocations: 31.92 kB / 1.025 GB, free: 11.3 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001049/1.159, allocations: 408 kB / 1.026 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001198/1.16, allocations: 0.5314 MB / 1.026 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/1.16, allocations: 7.922 kB / 1.026 GB, free: 10.56 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.53e-05/1.16, allocations: 0 / 1.026 GB, free: 10.56 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/1.16, allocations: 8 kB / 1.026 GB, free: 10.55 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00394/1.164, allocations: 1.579 MB / 1.028 GB, free: 9.129 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001825/1.166, allocations: 0.691 MB / 1.029 GB, free: 8.531 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005688/1.167, allocations: 262.8 kB / 1.029 GB, free: 8.32 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.449e-05/1.167, allocations: 11.3 kB / 1.029 GB, free: 8.312 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009303/1.168, allocations: 440.1 kB / 1.029 GB, free: 7.938 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=51): time 3.126e-06/1.168, allocations: 0 / 1.029 GB, free: 7.938 MB / 0.6511 GB Notification: Performance of matching and sorting (n=51): time 0.00164/1.169, allocations: 0.6093 MB / 1.03 GB, free: 7.445 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001813/1.169, allocations: 280.1 kB / 1.03 GB, free: 7.113 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005432/1.17, allocations: 324.1 kB / 1.03 GB, free: 6.844 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.93e-05/1.17, allocations: 40.81 kB / 1.03 GB, free: 6.801 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002146/1.17, allocations: 204.4 kB / 1.031 GB, free: 6.652 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/1.171, allocations: 123.5 kB / 1.031 GB, free: 6.551 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.439e-05/1.171, allocations: 0 / 1.031 GB, free: 6.551 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001766/1.171, allocations: 364.1 kB / 1.031 GB, free: 6.203 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004946/1.171, allocations: 192.9 kB / 1.031 GB, free: 6.07 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006467/1.172, allocations: 383.5 kB / 1.032 GB, free: 5.699 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00054/1.172, allocations: 233 kB / 1.032 GB, free: 5.531 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/1.173, allocations: 0 / 1.032 GB, free: 5.531 MB / 0.6511 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001477/1.174, allocations: 0.5602 MB / 1.032 GB, free: 5.078 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008251/1.175, allocations: 1.86 MB / 1.034 GB, free: 3.102 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.959e-05/1.175, allocations: 4 kB / 1.034 GB, free: 3.098 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.269e-05/1.175, allocations: 11.94 kB / 1.034 GB, free: 3.086 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007846/1.176, allocations: 115.1 kB / 1.034 GB, free: 2.977 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.225e-05/1.176, allocations: 11.98 kB / 1.034 GB, free: 2.965 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008557/1.177, allocations: 95.66 kB / 1.034 GB, free: 2.871 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.86e-05/1.177, allocations: 31.17 kB / 1.034 GB, free: 2.848 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/1.177, allocations: 4 kB / 1.034 GB, free: 2.844 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001209/1.178, allocations: 457.2 kB / 1.035 GB, free: 2.496 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/1.178, allocations: 11.89 kB / 1.035 GB, free: 2.484 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/1.178, allocations: 8 kB / 1.035 GB, free: 2.477 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004887/1.179, allocations: 81.94 kB / 1.035 GB, free: 2.402 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/1.179, allocations: 8.438 kB / 1.035 GB, free: 2.395 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006395/1.179, allocations: 63.78 kB / 1.035 GB, free: 2.332 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.021e-05/1.179, allocations: 19.31 kB / 1.035 GB, free: 2.316 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.0003415/1.18, allocations: 166.2 kB / 1.035 GB, free: 2.156 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001512/1.181, allocations: 0.5938 MB / 1.036 GB, free: 1.68 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/1.181, allocations: 51.47 kB / 1.036 GB, free: 1.629 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001675/1.181, allocations: 47.58 kB / 1.036 GB, free: 1.602 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/1.181, allocations: 4 kB / 1.036 GB, free: 1.598 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/1.181, allocations: 4 kB / 1.036 GB, free: 1.594 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/1.182, allocations: 0 / 1.036 GB, free: 1.594 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003188/1.185, allocations: 1.641 MB / 1.038 GB, free: 160 kB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/1.185, allocations: 0 / 1.038 GB, free: 160 kB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006365/1.185, allocations: 95.33 kB / 1.038 GB, free: 68 kB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.357e-05/1.185, allocations: 4 kB / 1.038 GB, free: 64 kB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.129e-05/1.186, allocations: 11.56 kB / 1.038 GB, free: 56 kB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/1.186, allocations: 0 / 1.038 GB, free: 56 kB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.007e-06/1.186, allocations: 7.984 kB / 1.038 GB, free: 48 kB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001714/1.187, allocations: 1.118 MB / 1.039 GB, free: 15 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/1.187, allocations: 108.6 kB / 1.039 GB, free: 14.88 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001198/1.188, allocations: 19.92 kB / 1.039 GB, free: 14.86 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00122/1.189, allocations: 119.8 kB / 1.039 GB, free: 14.75 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001899/1.189, allocations: 46.81 kB / 1.039 GB, free: 14.71 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.428e-05/1.189, allocations: 19.17 kB / 1.039 GB, free: 14.7 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0004033/1.19, allocations: 256.4 kB / 1.039 GB, free: 14.49 MB / 0.6667 GB Notification: Performance of sort global known variables: time 5.71e-07/1.19, allocations: 0 / 1.039 GB, free: 14.49 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001345/1.191, allocations: 163.5 kB / 1.039 GB, free: 14.33 MB / 0.6667 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.002312/1.193, allocations: 2.036 MB / 1.041 GB, free: 12.38 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.002031/1.195, allocations: 0.8835 MB / 1.042 GB, free: 11.67 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/1.195, allocations: 0 / 1.042 GB, free: 11.67 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0007293/1.196, allocations: 280.7 kB / 1.043 GB, free: 11.46 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/1.197, allocations: 73.77 kB / 1.043 GB, free: 11.41 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002884/1.2, allocations: 0.8974 MB / 1.044 GB, free: 10.57 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006674/1.201, allocations: 0.9245 MB / 1.044 GB, free: 9.648 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.001256/1.202, allocations: 294 kB / 1.045 GB, free: 9.363 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003434/1.202, allocations: 138.1 kB / 1.045 GB, free: 9.32 MB / 0.6667 GB Notification: Performance of SimCode: time 1.312e-06/1.202, allocations: 0 / 1.045 GB, free: 9.32 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0572/1.26, allocations: 9.776 MB / 1.054 GB, free: 15.58 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003409/1.26, allocations: 184.6 kB / 1.055 GB, free: 15.38 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.776/4.036, allocations: 0 / 1.055 GB, free: 15.38 MB / 0.6823 GB