Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,fileNamePrefix="Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.575/2.575, allocations: 284.9 MB / 292.4 MB, free: 10.57 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001646/0.001646, allocations: 180.8 kB / 360.6 MB, free: 7.289 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.101/2.101, allocations: 205.3 MB / 0.6191 GB, free: 12.16 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001168/0.001167, allocations: 89.44 kB / 0.7321 GB, free: 44.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.451e-05/2.447e-05, allocations: 0 / 0.8509 GB, free: 3.324 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.854/0.854, allocations: 115.3 MB / 0.9634 GB, free: 78.61 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.252/1.106, allocations: 140.7 MB / 1.101 GB, free: 15.67 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000393/1.107, allocations: 88.55 kB / 1.101 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.03863/1.145, allocations: 7.824 MB / 1.109 GB, free: 7.82 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.914e-06/1.145, allocations: 0 / 1.109 GB, free: 7.82 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.318e-05/1.145, allocations: 8 kB / 1.109 GB, free: 7.812 MB / 0.7136 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.003199/1.148, allocations: 0.8918 MB / 1.109 GB, free: 6.867 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.431e-05/1.149, allocations: 12.03 kB / 1.109 GB, free: 6.855 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002724/1.149, allocations: 55.34 kB / 1.11 GB, free: 6.801 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001047/1.15, allocations: 408.4 kB / 1.11 GB, free: 6.363 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.939e-05/1.15, allocations: 12 kB / 1.11 GB, free: 6.352 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/1.15, allocations: 33.58 kB / 1.11 GB, free: 6.32 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001225/1.151, allocations: 405.3 kB / 1.11 GB, free: 5.922 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/1.153, allocations: 0.5214 MB / 1.111 GB, free: 5.363 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.254e-05/1.153, allocations: 3.984 kB / 1.111 GB, free: 5.359 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.626e-05/1.153, allocations: 11.94 kB / 1.111 GB, free: 5.348 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.637e-05/1.153, allocations: 8 kB / 1.111 GB, free: 5.34 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004411/1.157, allocations: 1.583 MB / 1.112 GB, free: 3.699 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002064/1.159, allocations: 0.6834 MB / 1.113 GB, free: 2.961 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006953/1.16, allocations: 274.2 kB / 1.113 GB, free: 2.676 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 5.692e-05/1.16, allocations: 4 kB / 1.113 GB, free: 2.672 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001044/1.161, allocations: 448.4 kB / 1.114 GB, free: 2.207 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=51): time 3.868e-06/1.161, allocations: 448 / 1.114 GB, free: 2.207 MB / 0.7136 GB Notification: Performance of matching and sorting (n=51): time 0.001763/1.163, allocations: 0.5956 MB / 1.114 GB, free: 1.605 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001893/1.163, allocations: 285 kB / 1.115 GB, free: 1.266 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005956/1.164, allocations: 321 kB / 1.115 GB, free: 0.9414 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0001421/1.164, allocations: 41.62 kB / 1.115 GB, free: 0.8945 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002461/1.164, allocations: 204.7 kB / 1.115 GB, free: 0.6914 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001877/1.165, allocations: 122.4 kB / 1.115 GB, free: 0.5703 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.863e-05/1.165, allocations: 0 / 1.115 GB, free: 0.5703 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001828/1.165, allocations: 354.8 kB / 1.116 GB, free: 220 kB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004991/1.165, allocations: 197 kB / 1.116 GB, free: 24 kB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000703/1.166, allocations: 384.9 kB / 1.116 GB, free: 15.57 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006514/1.167, allocations: 239.8 kB / 1.116 GB, free: 15.34 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/1.167, allocations: 0 / 1.116 GB, free: 15.34 MB / 0.7292 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001538/1.168, allocations: 0.5556 MB / 1.117 GB, free: 14.78 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.000856/1.169, allocations: 1.862 MB / 1.119 GB, free: 12.77 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.346e-05/1.169, allocations: 9.188 kB / 1.119 GB, free: 12.76 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.609e-05/1.169, allocations: 12 kB / 1.119 GB, free: 12.75 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008538/1.17, allocations: 107.8 kB / 1.119 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.992e-05/1.17, allocations: 11.94 kB / 1.119 GB, free: 12.63 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009295/1.171, allocations: 95.73 kB / 1.119 GB, free: 12.54 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.047e-05/1.171, allocations: 20 kB / 1.119 GB, free: 12.52 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/1.171, allocations: 8.766 kB / 1.119 GB, free: 12.51 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001289/1.173, allocations: 464.1 kB / 1.119 GB, free: 12.06 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/1.173, allocations: 4 kB / 1.119 GB, free: 12.05 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.474e-05/1.173, allocations: 11.95 kB / 1.119 GB, free: 12.04 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005437/1.173, allocations: 84.38 kB / 1.12 GB, free: 11.96 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/1.173, allocations: 10.12 kB / 1.12 GB, free: 11.95 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006645/1.174, allocations: 59.78 kB / 1.12 GB, free: 11.89 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.516e-05/1.174, allocations: 20 kB / 1.12 GB, free: 11.88 MB / 0.7292 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.0003804/1.174, allocations: 166.5 kB / 1.12 GB, free: 11.71 MB / 0.7292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001647/1.176, allocations: 0.5846 MB / 1.12 GB, free: 11.12 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/1.176, allocations: 51.42 kB / 1.12 GB, free: 11.07 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001886/1.176, allocations: 55.78 kB / 1.12 GB, free: 11.01 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.539e-05/1.176, allocations: 4 kB / 1.12 GB, free: 11.01 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.219e-05/1.177, allocations: 7.938 kB / 1.12 GB, free: 11 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/1.177, allocations: 0 / 1.12 GB, free: 11 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003476/1.18, allocations: 1.637 MB / 1.122 GB, free: 9.316 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.599e-06/1.18, allocations: 2.625 kB / 1.122 GB, free: 9.316 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006474/1.181, allocations: 88.12 kB / 1.122 GB, free: 9.23 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.25e-05/1.181, allocations: 4 kB / 1.122 GB, free: 9.227 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.757e-05/1.181, allocations: 15.98 kB / 1.122 GB, free: 9.211 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.514e-06/1.181, allocations: 2.812 kB / 1.122 GB, free: 9.211 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.568e-06/1.181, allocations: 7.938 kB / 1.122 GB, free: 9.203 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001902/1.183, allocations: 1.119 MB / 1.123 GB, free: 8.035 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001945/1.183, allocations: 116.6 kB / 1.123 GB, free: 7.902 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001313/1.183, allocations: 11.98 kB / 1.123 GB, free: 7.891 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/1.185, allocations: 115.8 kB / 1.124 GB, free: 7.777 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/1.185, allocations: 47.88 kB / 1.124 GB, free: 7.73 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.345e-05/1.185, allocations: 23.98 kB / 1.124 GB, free: 7.707 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0004363/1.185, allocations: 248.5 kB / 1.124 GB, free: 7.465 MB / 0.7292 GB Notification: Performance of sort global known variables: time 4.11e-07/1.185, allocations: 0 / 1.124 GB, free: 7.465 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001431/1.187, allocations: 175.5 kB / 1.124 GB, free: 7.293 MB / 0.7292 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.002488/1.189, allocations: 2.037 MB / 1.126 GB, free: 5.203 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.002186/1.191, allocations: 0.8766 MB / 1.127 GB, free: 4.305 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/1.192, allocations: 2.25 kB / 1.127 GB, free: 4.305 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0008163/1.192, allocations: 287.6 kB / 1.127 GB, free: 4.023 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001195/1.194, allocations: 72.8 kB / 1.127 GB, free: 3.957 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003228/1.197, allocations: 0.8811 MB / 1.128 GB, free: 3.023 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006872/1.198, allocations: 0.9335 MB / 1.129 GB, free: 2.062 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.001366/1.199, allocations: 290.1 kB / 1.129 GB, free: 1.781 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004254/1.199, allocations: 139.4 kB / 1.129 GB, free: 1.645 MB / 0.7292 GB Notification: Performance of SimCode: time 1.163e-06/1.199, allocations: 2.062 kB / 1.129 GB, free: 1.645 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05936/1.259, allocations: 9.792 MB / 1.139 GB, free: 8.016 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003381/1.259, allocations: 173.7 kB / 1.139 GB, free: 7.824 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.776/4.036, allocations: 2.375 kB / 1.139 GB, free: 7.824 MB / 0.7448 GB (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond.fmu > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1)