Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.444/1.444, allocations: 251.9 MB / 266.9 MB, free: 11.08 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.001153/0.001153, allocations: 175.3 kB / 326.5 MB, free: 2.27 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.175/2.175, allocations: 205.4 MB / 0.5775 GB, free: 20.21 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.001113/0.001113, allocations: 94.47 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003955/0.0003958, allocations: 13.27 kB / 0.7963 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3137/0.3141, allocations: 106.3 MB / 0.9002 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1881/0.5022, allocations: 135.3 MB / 1.032 GB, free: 8.324 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002586/0.5026, allocations: 91.94 kB / 1.032 GB, free: 8.234 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02185/0.5244, allocations: 7.905 MB / 1.04 GB, free: 280 kB / 0.6823 GB Notification: Performance of FrontEnd: time 1.663e-06/0.5245, allocations: 0 / 1.04 GB, free: 280 kB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.405e-05/0.5245, allocations: 12 kB / 1.04 GB, free: 268 kB / 0.6823 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.001872/0.5264, allocations: 0.9501 MB / 1.041 GB, free: 15.25 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.5264, allocations: 12.03 kB / 1.041 GB, free: 15.24 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.998e-05/0.5265, allocations: 74.52 kB / 1.041 GB, free: 15.16 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.5266, allocations: 51.44 kB / 1.041 GB, free: 15.11 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007349/0.5274, allocations: 407.7 kB / 1.042 GB, free: 14.67 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.5274, allocations: 29 kB / 1.042 GB, free: 14.64 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.925e-05/0.5275, allocations: 35.98 kB / 1.042 GB, free: 14.61 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/0.5288, allocations: 0.6701 MB / 1.042 GB, free: 13.9 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.5288, allocations: 0 / 1.042 GB, free: 13.9 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.217e-05/0.5289, allocations: 19.94 kB / 1.042 GB, free: 13.88 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.5289, allocations: 8 kB / 1.042 GB, free: 13.87 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001292/0.5302, allocations: 0.6133 MB / 1.043 GB, free: 13.26 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002811/0.533, allocations: 1.677 MB / 1.045 GB, free: 11.51 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002009/0.5351, allocations: 0.9408 MB / 1.045 GB, free: 10.52 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.774e-05/0.5351, allocations: 19.91 kB / 1.046 GB, free: 10.5 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001018/0.5361, allocations: 0.5412 MB / 1.046 GB, free: 9.926 MB / 0.698 GB Notification: Performance of pre-optimization done (n=51): time 2.845e-06/0.5362, allocations: 0 / 1.046 GB, free: 9.926 MB / 0.698 GB Notification: Performance of matching and sorting (n=51): time 0.002367/0.5385, allocations: 1.135 MB / 1.047 GB, free: 8.785 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001914/0.5387, allocations: 289 kB / 1.047 GB, free: 8.441 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004706/0.5392, allocations: 396.7 kB / 1.048 GB, free: 8.051 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.302e-05/0.5393, allocations: 49.69 kB / 1.048 GB, free: 7.996 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.5395, allocations: 204.8 kB / 1.048 GB, free: 7.793 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/0.5396, allocations: 138.4 kB / 1.048 GB, free: 7.656 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.545e-05/0.5396, allocations: 8 kB / 1.048 GB, free: 7.648 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.5398, allocations: 358.8 kB / 1.049 GB, free: 7.289 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006147/0.5404, allocations: 308.8 kB / 1.049 GB, free: 6.984 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000736/0.5412, allocations: 499.9 kB / 1.049 GB, free: 6.426 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006775/0.5418, allocations: 372.8 kB / 1.05 GB, free: 6.059 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.5419, allocations: 0 / 1.05 GB, free: 6.059 MB / 0.698 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001557/0.5434, allocations: 0.8343 MB / 1.05 GB, free: 5.211 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008658/0.5443, allocations: 1.858 MB / 1.052 GB, free: 3.203 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.5443, allocations: 7.984 kB / 1.052 GB, free: 3.195 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.202e-05/0.5444, allocations: 12 kB / 1.052 GB, free: 3.184 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003937/0.5448, allocations: 111.8 kB / 1.052 GB, free: 3.074 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.782e-05/0.5448, allocations: 12 kB / 1.052 GB, free: 3.062 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004478/0.5452, allocations: 108.1 kB / 1.053 GB, free: 2.957 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.349e-05/0.5453, allocations: 24 kB / 1.053 GB, free: 2.934 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 7.804e-06/0.5453, allocations: 7.938 kB / 1.053 GB, free: 2.926 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001044/0.5464, allocations: 0.6185 MB / 1.053 GB, free: 2.301 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.5464, allocations: 4 kB / 1.053 GB, free: 2.297 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.367e-06/0.5464, allocations: 12.03 kB / 1.053 GB, free: 2.285 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002537/0.5466, allocations: 75.81 kB / 1.053 GB, free: 2.211 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.5467, allocations: 12.3 kB / 1.053 GB, free: 2.199 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003484/0.547, allocations: 71.8 kB / 1.053 GB, free: 2.129 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.476e-05/0.5471, allocations: 27.98 kB / 1.053 GB, free: 2.102 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.0004603/0.5475, allocations: 364.8 kB / 1.054 GB, free: 1.734 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.5476, allocations: 51.39 kB / 1.054 GB, free: 1.684 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001203/0.5478, allocations: 63.45 kB / 1.054 GB, free: 1.617 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.5478, allocations: 4 kB / 1.054 GB, free: 1.613 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/0.5478, allocations: 4 kB / 1.054 GB, free: 1.609 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.5478, allocations: 0 / 1.054 GB, free: 1.609 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5818/1.13, allocations: 1.926 MB / 1.056 GB, free: 149.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/1.13, allocations: 2.188 kB / 1.056 GB, free: 149.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003663/1.13, allocations: 90.58 kB / 1.056 GB, free: 149.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.256e-05/1.13, allocations: 4.062 kB / 1.056 GB, free: 149.3 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.536e-05/1.13, allocations: 12.62 kB / 1.056 GB, free: 149.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.218e-05/1.13, allocations: 8.703 kB / 1.056 GB, free: 149.3 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/1.13, allocations: 0.9688 kB / 1.056 GB, free: 149.3 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001853/1.132, allocations: 1.34 MB / 1.057 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001207/1.132, allocations: 126.8 kB / 1.057 GB, free: 148.6 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.469e-05/1.132, allocations: 17.7 kB / 1.057 GB, free: 148.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006574/1.133, allocations: 127.9 kB / 1.057 GB, free: 148.6 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/1.133, allocations: 47.53 kB / 1.057 GB, free: 148.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.973e-05/1.133, allocations: 25.08 kB / 1.057 GB, free: 148.6 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003172/1.133, allocations: 311.1 kB / 1.058 GB, free: 148.5 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/1.133, allocations: 0 / 1.058 GB, free: 148.5 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0009457/1.134, allocations: 183.3 kB / 1.058 GB, free: 148.5 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.001903/1.136, allocations: 2.275 MB / 1.06 GB, free: 147.1 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002072/1.138, allocations: 1.138 MB / 1.061 GB, free: 147 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/1.138, allocations: 3.562 kB / 1.061 GB, free: 147 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008048/1.139, allocations: 392.5 kB / 1.062 GB, free: 147 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000681/1.14, allocations: 81.97 kB / 1.062 GB, free: 147 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00713/1.147, allocations: 6.535 MB / 1.068 GB, free: 143 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005934/1.148, allocations: 0.9267 MB / 1.069 GB, free: 142.3 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0006762/1.148, allocations: 204.6 kB / 1.069 GB, free: 142.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002683/1.149, allocations: 147.8 kB / 1.069 GB, free: 142.3 MB / 0.698 GB Notification: Performance of SimCode: time 1.443e-06/1.149, allocations: 0 / 1.069 GB, free: 142.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03463/1.183, allocations: 10.43 MB / 1.08 GB, free: 141.3 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002477/1.184, allocations: 222.8 kB / 1.08 GB, free: 141 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.291/3.474, allocations: 4.156 kB / 1.08 GB, free: 141 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1)