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.947/2.947, allocations: 287.3 MB / 302.3 MB, free: 8.316 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.001565/0.001564, allocations: 175.8 kB / 370.8 MB, free: 10.86 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.151/2.151, allocations: 205.4 MB / 0.6295 GB, free: 10.6 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001243/0.001242, allocations: 102.2 kB / 0.7428 GB, free: 6.605 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000511/0.0005111, allocations: 15.34 kB / 0.8657 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2369/0.2374, allocations: 115.3 MB / 0.9783 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9741/1.212, allocations: 141.5 MB / 1.116 GB, free: 15.65 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/1.212, allocations: 93.67 kB / 1.117 GB, free: 15.65 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03296/1.245, allocations: 7.881 MB / 1.124 GB, free: 30.76 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.216e-06/1.245, allocations: 0 / 1.124 GB, free: 30.76 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.521e-05/1.245, allocations: 15.66 kB / 1.124 GB, free: 30.75 MB / 0.698 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.002964/1.248, allocations: 0.9472 MB / 1.125 GB, free: 30.19 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/1.248, allocations: 11.47 kB / 1.125 GB, free: 30.19 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002093/1.248, allocations: 72.89 kB / 1.125 GB, free: 30.14 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/1.249, allocations: 60.88 kB / 1.125 GB, free: 30.11 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008441/1.249, allocations: 400 kB / 1.126 GB, free: 29.88 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.881e-05/1.249, allocations: 30.88 kB / 1.126 GB, free: 29.88 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.078e-05/1.25, allocations: 37.3 kB / 1.126 GB, free: 29.88 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001965/1.252, allocations: 0.664 MB / 1.126 GB, free: 29.74 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/1.252, allocations: 3.938 kB / 1.126 GB, free: 29.74 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.16e-05/1.252, allocations: 17.58 kB / 1.126 GB, free: 29.73 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/1.252, allocations: 10.47 kB / 1.126 GB, free: 29.73 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002121/1.254, allocations: 0.6113 MB / 1.127 GB, free: 29.72 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003959/1.258, allocations: 1.678 MB / 1.129 GB, free: 28.96 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003187/1.261, allocations: 0.9522 MB / 1.13 GB, free: 28.79 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 7.629e-05/1.261, allocations: 9.875 kB / 1.13 GB, free: 28.79 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00156/1.263, allocations: 0.5428 MB / 1.13 GB, free: 28.68 MB / 0.698 GB Notification: Performance of pre-optimization done (n=51): time 3.626e-06/1.263, allocations: 0 / 1.13 GB, free: 28.68 MB / 0.698 GB Notification: Performance of matching and sorting (n=51): time 0.003874/1.267, allocations: 1.146 MB / 1.131 GB, free: 28.35 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001795/1.267, allocations: 291 kB / 1.132 GB, free: 28.03 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006454/1.268, allocations: 392.7 kB / 1.132 GB, free: 27.86 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001296/1.268, allocations: 44.28 kB / 1.132 GB, free: 27.83 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001886/1.268, allocations: 212.1 kB / 1.132 GB, free: 27.7 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001484/1.268, allocations: 122.2 kB / 1.132 GB, free: 27.63 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.147e-05/1.268, allocations: 14.22 kB / 1.132 GB, free: 27.63 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001619/1.268, allocations: 358.7 kB / 1.133 GB, free: 27.3 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001045/1.269, allocations: 304.7 kB / 1.133 GB, free: 27.23 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001214/1.271, allocations: 495.9 kB / 1.133 GB, free: 26.94 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/1.272, allocations: 374.6 kB / 1.134 GB, free: 26.82 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/1.272, allocations: 0 / 1.134 GB, free: 26.82 MB / 0.698 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002584/1.274, allocations: 0.8495 MB / 1.135 GB, free: 26.55 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007499/1.275, allocations: 1.851 MB / 1.136 GB, free: 24.59 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.705e-05/1.275, allocations: 7.719 kB / 1.136 GB, free: 24.59 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.16e-05/1.275, allocations: 11.86 kB / 1.136 GB, free: 24.59 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007366/1.276, allocations: 113 kB / 1.137 GB, free: 24.55 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.704e-05/1.276, allocations: 15.53 kB / 1.137 GB, free: 24.54 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008063/1.277, allocations: 108.1 kB / 1.137 GB, free: 24.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.647e-05/1.277, allocations: 18.47 kB / 1.137 GB, free: 24.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/1.277, allocations: 7.844 kB / 1.137 GB, free: 24.5 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001751/1.279, allocations: 0.6135 MB / 1.137 GB, free: 24.34 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/1.279, allocations: 4.375 kB / 1.137 GB, free: 24.34 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/1.279, allocations: 11.72 kB / 1.137 GB, free: 24.34 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004811/1.279, allocations: 77.09 kB / 1.137 GB, free: 24.31 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.482e-05/1.279, allocations: 15.61 kB / 1.137 GB, free: 24.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006361/1.28, allocations: 72.89 kB / 1.137 GB, free: 24.28 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.991e-05/1.28, allocations: 26.77 kB / 1.137 GB, free: 24.27 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.0006571/1.281, allocations: 366.7 kB / 1.138 GB, free: 24.03 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/1.281, allocations: 46.36 kB / 1.138 GB, free: 24 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001505/1.281, allocations: 63.58 kB / 1.138 GB, free: 23.99 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/1.281, allocations: 7.812 kB / 1.138 GB, free: 23.99 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/1.281, allocations: 4 kB / 1.138 GB, free: 23.98 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/1.281, allocations: 3.719 kB / 1.138 GB, free: 23.98 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004449/1.285, allocations: 1.929 MB / 1.14 GB, free: 22.95 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.418e-06/1.286, allocations: 4 kB / 1.14 GB, free: 22.95 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005661/1.286, allocations: 88.36 kB / 1.14 GB, free: 22.92 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-05/1.286, allocations: 11.81 kB / 1.14 GB, free: 22.91 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-05/1.286, allocations: 7.094 kB / 1.14 GB, free: 22.91 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.295e-06/1.286, allocations: 4.156 kB / 1.14 GB, free: 22.91 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/1.286, allocations: 7.875 kB / 1.14 GB, free: 22.91 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002868/1.289, allocations: 1.333 MB / 1.141 GB, free: 22.11 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002176/1.289, allocations: 131 kB / 1.141 GB, free: 21.99 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002466/1.29, allocations: 18.33 kB / 1.141 GB, free: 21.98 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002409/1.292, allocations: 123.6 kB / 1.142 GB, free: 21.94 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002067/1.292, allocations: 43.91 kB / 1.142 GB, free: 21.93 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.909e-05/1.292, allocations: 26.14 kB / 1.142 GB, free: 21.92 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004925/1.293, allocations: 315.7 kB / 1.142 GB, free: 21.79 MB / 0.698 GB Notification: Performance of sort global known variables: time 5.71e-07/1.293, allocations: 0 / 1.142 GB, free: 21.79 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001301/1.294, allocations: 194.5 kB / 1.142 GB, free: 21.76 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.003657/1.298, allocations: 2.257 MB / 1.144 GB, free: 20.09 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003552/1.302, allocations: 1.15 MB / 1.145 GB, free: 19.7 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 8.166e-06/1.302, allocations: 0 / 1.145 GB, free: 19.7 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0014/1.303, allocations: 398.1 kB / 1.146 GB, free: 19.61 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/1.304, allocations: 89.56 kB / 1.146 GB, free: 19.58 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01095/1.315, allocations: 6.528 MB / 1.152 GB, free: 14.99 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005782/1.316, allocations: 0.916 MB / 1.153 GB, free: 14.2 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0008434/1.317, allocations: 216.7 kB / 1.153 GB, free: 14.11 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003361/1.317, allocations: 141 kB / 1.153 GB, free: 14.09 MB / 0.698 GB Notification: Performance of SimCode: time 1.182e-06/1.317, allocations: 0 / 1.153 GB, free: 14.09 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03787/1.355, allocations: 10.44 MB / 1.164 GB, free: 7.785 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002611/1.355, allocations: 207.2 kB / 1.164 GB, free: 7.547 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.804/4.159, allocations: 0 / 1.164 GB, free: 7.547 MB / 0.698 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)