Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,fileNamePrefix="Buildings_8_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_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.1.4-maint.8.1.x/package.mo): time 1.749/1.749, allocations: 292.6 MB / 307.5 MB, free: 5.156 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.001469/0.001469, allocations: 181.1 kB / 377.1 MB, free: 1.516 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.4 MB / 0.6366 GB, free: 8.512 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.001331/0.001331, allocations: 91.64 kB / 0.7509 GB, free: 63.05 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004231/0.0004231, allocations: 12 kB / 0.8749 GB, free: 11.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.349/0.3494, allocations: 116.3 MB / 0.9884 GB, free: 6.629 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.275/1.624, allocations: 142.6 MB / 1.128 GB, free: 32.75 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002604/1.625, allocations: 94.53 kB / 1.128 GB, free: 32.68 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.0231/1.648, allocations: 7.898 MB / 1.136 GB, free: 27.22 MB / 0.7292 GB Notification: Performance of FrontEnd: time 4.769e-06/1.648, allocations: 8 kB / 1.136 GB, free: 27.21 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 3.1e-05/1.648, allocations: 8 kB / 1.136 GB, free: 27.2 MB / 0.7292 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.002187/1.65, allocations: 0.9379 MB / 1.136 GB, free: 26.34 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 6.462e-05/1.65, allocations: 8.031 kB / 1.136 GB, free: 26.33 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001383/1.65, allocations: 81.06 kB / 1.137 GB, free: 26.25 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001244/1.651, allocations: 59.39 kB / 1.137 GB, free: 26.2 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007655/1.651, allocations: 399.4 kB / 1.137 GB, free: 25.8 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.357e-05/1.651, allocations: 26.78 kB / 1.137 GB, free: 25.78 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.511e-05/1.651, allocations: 37.73 kB / 1.137 GB, free: 25.75 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00151/1.653, allocations: 0.6665 MB / 1.138 GB, free: 25.2 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.207e-05/1.653, allocations: 5.125 kB / 1.138 GB, free: 25.19 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.52e-05/1.653, allocations: 14.53 kB / 1.138 GB, free: 25.18 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/1.653, allocations: 8.656 kB / 1.138 GB, free: 25.17 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001521/1.655, allocations: 0.6125 MB / 1.138 GB, free: 24.7 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003164/1.658, allocations: 1.68 MB / 1.14 GB, free: 23.25 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002149/1.66, allocations: 0.9538 MB / 1.141 GB, free: 22.45 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 5.086e-05/1.66, allocations: 10 kB / 1.141 GB, free: 22.45 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001313/1.661, allocations: 0.5422 MB / 1.141 GB, free: 22.02 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=51): time 2.996e-06/1.661, allocations: 0 / 1.141 GB, free: 22.02 MB / 0.7292 GB Notification: Performance of matching and sorting (n=51): time 0.002911/1.664, allocations: 1.151 MB / 1.143 GB, free: 21.11 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001896/1.664, allocations: 287.2 kB / 1.143 GB, free: 20.77 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006318/1.665, allocations: 392.1 kB / 1.143 GB, free: 20.44 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 7.015e-05/1.665, allocations: 44.42 kB / 1.143 GB, free: 20.39 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.000238/1.665, allocations: 212.5 kB / 1.143 GB, free: 20.2 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/1.666, allocations: 124.1 kB / 1.144 GB, free: 20.09 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.758e-05/1.666, allocations: 12 kB / 1.144 GB, free: 20.07 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001976/1.666, allocations: 366 kB / 1.144 GB, free: 19.72 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007575/1.667, allocations: 306.5 kB / 1.144 GB, free: 19.5 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009447/1.668, allocations: 493.1 kB / 1.145 GB, free: 19.03 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007513/1.668, allocations: 373 kB / 1.145 GB, free: 18.73 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/1.668, allocations: 0 / 1.145 GB, free: 18.73 MB / 0.7292 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001785/1.67, allocations: 0.8416 MB / 1.146 GB, free: 18.02 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005825/1.671, allocations: 1.861 MB / 1.148 GB, free: 16.01 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/1.671, allocations: 9.281 kB / 1.148 GB, free: 16 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.502e-05/1.671, allocations: 8 kB / 1.148 GB, free: 16 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004221/1.671, allocations: 111.5 kB / 1.148 GB, free: 15.91 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.206e-05/1.671, allocations: 10.86 kB / 1.148 GB, free: 15.91 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004942/1.672, allocations: 107.2 kB / 1.148 GB, free: 15.83 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-05/1.672, allocations: 21.12 kB / 1.148 GB, free: 15.81 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/1.672, allocations: 4.656 kB / 1.148 GB, free: 15.8 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001235/1.673, allocations: 0.6172 MB / 1.149 GB, free: 15.27 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/1.673, allocations: 8 kB / 1.149 GB, free: 15.27 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/1.673, allocations: 12.8 kB / 1.149 GB, free: 15.25 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002937/1.673, allocations: 75.72 kB / 1.149 GB, free: 15.2 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/1.673, allocations: 13 kB / 1.149 GB, free: 15.18 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003785/1.674, allocations: 79.89 kB / 1.149 GB, free: 15.12 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.397e-05/1.674, allocations: 20.66 kB / 1.149 GB, free: 15.1 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 () * 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.0006082/1.675, allocations: 370.6 kB / 1.149 GB, free: 14.77 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.865e-05/1.675, allocations: 46.31 kB / 1.149 GB, free: 14.72 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000133/1.675, allocations: 60.78 kB / 1.149 GB, free: 14.66 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/1.675, allocations: 8 kB / 1.149 GB, free: 14.66 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.469e-05/1.675, allocations: 1.219 kB / 1.149 GB, free: 14.66 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/1.675, allocations: 6.812 kB / 1.149 GB, free: 14.65 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003236/1.678, allocations: 1.935 MB / 1.151 GB, free: 12.98 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/1.678, allocations: 0.6562 kB / 1.151 GB, free: 12.98 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003237/1.678, allocations: 96.69 kB / 1.151 GB, free: 12.91 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/1.678, allocations: 4 kB / 1.151 GB, free: 12.91 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.393e-05/1.678, allocations: 11.8 kB / 1.151 GB, free: 12.9 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/1.678, allocations: 5.062 kB / 1.151 GB, free: 12.89 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/1.678, allocations: 1.422 kB / 1.151 GB, free: 12.89 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00179/1.68, allocations: 1.33 MB / 1.152 GB, free: 11.67 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/1.68, allocations: 135.2 kB / 1.153 GB, free: 11.52 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.341e-05/1.681, allocations: 19.19 kB / 1.153 GB, free: 11.51 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007501/1.681, allocations: 123.2 kB / 1.153 GB, free: 11.43 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001833/1.681, allocations: 47.08 kB / 1.153 GB, free: 11.4 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.696e-05/1.682, allocations: 18.95 kB / 1.153 GB, free: 11.38 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0004044/1.682, allocations: 310.2 kB / 1.153 GB, free: 11.12 MB / 0.7292 GB Notification: Performance of sort global known variables: time 6.01e-07/1.682, allocations: 0 / 1.153 GB, free: 11.12 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001029/1.683, allocations: 186 kB / 1.153 GB, free: 10.95 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) * 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.00246/1.685, allocations: 2.264 MB / 1.156 GB, free: 8.809 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.002323/1.688, allocations: 1.15 MB / 1.157 GB, free: 7.836 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/1.688, allocations: 0.5 kB / 1.157 GB, free: 7.836 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0007892/1.689, allocations: 406.3 kB / 1.157 GB, free: 7.523 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007346/1.689, allocations: 80.38 kB / 1.157 GB, free: 7.465 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007264/1.697, allocations: 6.527 MB / 1.163 GB, free: 1.344 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004963/1.697, allocations: 0.922 MB / 1.164 GB, free: 484 kB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0005875/1.698, allocations: 207.3 kB / 1.165 GB, free: 348 kB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002318/1.698, allocations: 149.7 kB / 1.165 GB, free: 212 kB / 0.7292 GB Notification: Performance of SimCode: time 1.282e-06/1.698, allocations: 0 / 1.165 GB, free: 212 kB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02917/1.727, allocations: 10.43 MB / 1.175 GB, free: 6.934 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002216/1.727, allocations: 217.8 kB / 1.175 GB, free: 6.684 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.591/4.319, allocations: 2.812 kB / 1.175 GB, free: 6.684 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1)