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.124/2.124, allocations: 251 MB / 265.9 MB, free: 11.7 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001554/0.001554, allocations: 182.2 kB / 325.5 MB, free: 2.895 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.366/2.366, allocations: 205.4 MB / 0.5764 GB, free: 20.8 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001175/0.001175, allocations: 95.66 kB / 0.6809 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000474/0.0004741, allocations: 15.28 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.221/0.2215, allocations: 106.3 MB / 0.8988 GB, free: 65.48 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2527/0.4743, allocations: 135.2 MB / 1.031 GB, free: 10.14 MB / 0.6824 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004012/0.4747, allocations: 99.92 kB / 1.031 GB, free: 10.04 MB / 0.6824 GB Notification: Performance of FrontEnd - DAE generated: time 0.03824/0.513, allocations: 7.893 MB / 1.039 GB, free: 2.094 MB / 0.6824 GB Notification: Performance of FrontEnd: time 2.124e-06/0.513, allocations: 0 / 1.039 GB, free: 2.094 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 4.188e-05/0.5131, allocations: 8 kB / 1.039 GB, free: 2.086 MB / 0.6824 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.003081/0.5162, allocations: 0.9541 MB / 1.04 GB, free: 1.074 MB / 0.6824 GB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.5163, allocations: 8.031 kB / 1.04 GB, free: 1.066 MB / 0.6824 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001546/0.5164, allocations: 74.53 kB / 1.04 GB, free: 0.9844 MB / 0.6824 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.5166, allocations: 51.44 kB / 1.04 GB, free: 0.9336 MB / 0.6824 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008595/0.5175, allocations: 415.6 kB / 1.04 GB, free: 500 kB / 0.6824 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.175e-05/0.5175, allocations: 28.98 kB / 1.04 GB, free: 472 kB / 0.6824 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.5177, allocations: 36 kB / 1.04 GB, free: 436 kB / 0.6824 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002068/0.5197, allocations: 0.6744 MB / 1.041 GB, free: 15.71 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.258e-05/0.5198, allocations: 3.953 kB / 1.041 GB, free: 15.7 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.486e-05/0.5199, allocations: 12 kB / 1.041 GB, free: 15.69 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.5199, allocations: 8 kB / 1.041 GB, free: 15.68 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002417/0.5223, allocations: 0.6105 MB / 1.041 GB, free: 15.07 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004579/0.5269, allocations: 1.669 MB / 1.043 GB, free: 13.34 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003658/0.5306, allocations: 0.9525 MB / 1.044 GB, free: 12.33 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 8.464e-05/0.5308, allocations: 11.98 kB / 1.044 GB, free: 12.32 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001765/0.5326, allocations: 0.5413 MB / 1.045 GB, free: 11.75 MB / 0.698 GB Notification: Performance of pre-optimization done (n=51): time 3.878e-06/0.5326, allocations: 3.938 kB / 1.045 GB, free: 11.74 MB / 0.698 GB Notification: Performance of matching and sorting (n=51): time 0.004543/0.5371, allocations: 1.14 MB / 1.046 GB, free: 10.6 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002289/0.5374, allocations: 288.9 kB / 1.046 GB, free: 10.25 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000784/0.5382, allocations: 396.7 kB / 1.046 GB, free: 9.863 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001247/0.5384, allocations: 45.69 kB / 1.046 GB, free: 9.812 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002387/0.5386, allocations: 208.9 kB / 1.047 GB, free: 9.605 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002079/0.5388, allocations: 126.4 kB / 1.047 GB, free: 9.48 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.344e-05/0.5389, allocations: 8 kB / 1.047 GB, free: 9.473 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002039/0.5391, allocations: 366.8 kB / 1.047 GB, free: 9.105 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/0.5404, allocations: 308.8 kB / 1.047 GB, free: 8.801 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001397/0.5418, allocations: 497.8 kB / 1.048 GB, free: 8.242 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001307/0.5431, allocations: 373.3 kB / 1.048 GB, free: 7.871 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.5432, allocations: 0 / 1.048 GB, free: 7.871 MB / 0.698 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.003045/0.5462, allocations: 0.8382 MB / 1.049 GB, free: 7.02 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009761/0.5472, allocations: 1.859 MB / 1.051 GB, free: 5.012 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.117e-05/0.5473, allocations: 4 kB / 1.051 GB, free: 5.008 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.889e-05/0.5473, allocations: 12 kB / 1.051 GB, free: 4.996 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008649/0.5482, allocations: 111.8 kB / 1.051 GB, free: 4.887 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.886e-05/0.5483, allocations: 11.94 kB / 1.051 GB, free: 4.875 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008829/0.5492, allocations: 107.6 kB / 1.051 GB, free: 4.77 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.824e-05/0.5492, allocations: 28.56 kB / 1.051 GB, free: 4.742 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.033e-05/0.5493, allocations: 0 / 1.051 GB, free: 4.742 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001955/0.5512, allocations: 0.619 MB / 1.052 GB, free: 4.117 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.5513, allocations: 4 kB / 1.052 GB, free: 4.113 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.311e-05/0.5513, allocations: 8 kB / 1.052 GB, free: 4.105 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005133/0.5518, allocations: 79.75 kB / 1.052 GB, free: 4.027 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.528e-05/0.5519, allocations: 11.94 kB / 1.052 GB, free: 4.016 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007116/0.5526, allocations: 75.78 kB / 1.052 GB, free: 3.941 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.789e-05/0.5527, allocations: 24 kB / 1.052 GB, free: 3.918 MB / 0.698 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.000687/0.5533, allocations: 364.9 kB / 1.052 GB, free: 3.551 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001608/0.5535, allocations: 55.38 kB / 1.052 GB, free: 3.496 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001646/0.5537, allocations: 51.47 kB / 1.052 GB, free: 3.441 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/0.5537, allocations: 8 kB / 1.052 GB, free: 3.434 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/0.5537, allocations: 0 / 1.052 GB, free: 3.434 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.5538, allocations: 7.984 kB / 1.052 GB, free: 3.426 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004881/0.5587, allocations: 1.933 MB / 1.054 GB, free: 1.434 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.237e-05/0.5587, allocations: 4 kB / 1.054 GB, free: 1.43 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006062/0.5593, allocations: 91.84 kB / 1.054 GB, free: 1.34 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-05/0.5594, allocations: 4 kB / 1.054 GB, free: 1.336 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.575e-05/0.5594, allocations: 15.98 kB / 1.054 GB, free: 1.32 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.151e-05/0.5595, allocations: 7.938 kB / 1.054 GB, free: 1.312 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.5595, allocations: 0 / 1.054 GB, free: 1.312 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6148/1.174, allocations: 1.327 MB / 1.056 GB, free: 150.8 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002007/1.175, allocations: 123.6 kB / 1.056 GB, free: 150.7 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002021/1.175, allocations: 17.81 kB / 1.056 GB, free: 150.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001266/1.176, allocations: 122.1 kB / 1.056 GB, free: 150.7 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/1.176, allocations: 55.98 kB / 1.056 GB, free: 150.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.078e-05/1.176, allocations: 20.91 kB / 1.056 GB, free: 150.7 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0005598/1.177, allocations: 314.2 kB / 1.056 GB, free: 150.6 MB / 0.698 GB Notification: Performance of sort global known variables: time 8.42e-07/1.177, allocations: 0 / 1.056 GB, free: 150.6 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001324/1.178, allocations: 187.5 kB / 1.056 GB, free: 150.6 MB / 0.698 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) * Number of clocked states: 0 () * 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.003212/1.181, allocations: 2.272 MB / 1.059 GB, free: 149.2 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003454/1.185, allocations: 1.137 MB / 1.06 GB, free: 149.1 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/1.185, allocations: 0 / 1.06 GB, free: 149.1 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001362/1.186, allocations: 404.4 kB / 1.06 GB, free: 149.1 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001095/1.188, allocations: 85.08 kB / 1.06 GB, free: 149.1 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01025/1.198, allocations: 6.529 MB / 1.067 GB, free: 145.1 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005882/1.198, allocations: 0.924 MB / 1.067 GB, free: 144.4 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.00098/1.199, allocations: 207.7 kB / 1.068 GB, free: 144.4 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003977/1.2, allocations: 144.3 kB / 1.068 GB, free: 144.4 MB / 0.698 GB Notification: Performance of SimCode: time 1.233e-06/1.2, allocations: 0 / 1.068 GB, free: 144.4 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05556/1.255, allocations: 10.42 MB / 1.078 GB, free: 143.6 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002723/1.256, allocations: 212.1 kB / 1.078 GB, free: 143.4 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.795/4.051, allocations: 4.875 kB / 1.078 GB, free: 143.4 MB / 0.698 GB