Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.802/1.802, allocations: 297.8 MB / 313.7 MB, free: 100 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 176.5 kB / 384.6 MB, free: 10.84 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.586/1.586, allocations: 223.2 MB / 0.6626 GB, free: 4.262 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007856/0.0007857, allocations: 97.16 kB / 0.7808 GB, free: 50.43 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000498/0.0004981, allocations: 15.94 kB / 0.9088 GB, free: 2.852 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8954/0.8959, allocations: 120.3 MB / 1.026 GB, free: 55.98 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3043/1.2, allocations: 144.8 MB / 1.168 GB, free: 15.57 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004319/1.201, allocations: 95.97 kB / 1.168 GB, free: 15.5 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.04023/1.241, allocations: 7.946 MB / 1.176 GB, free: 9.148 MB / 0.7448 GB Notification: Performance of FrontEnd: time 3.737e-06/1.241, allocations: 1.125 kB / 1.176 GB, free: 9.148 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.681e-05/1.241, allocations: 8 kB / 1.176 GB, free: 9.141 MB / 0.7448 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.00355/1.245, allocations: 0.9291 MB / 1.176 GB, free: 8.152 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 6.584e-05/1.245, allocations: 12.03 kB / 1.176 GB, free: 8.141 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003112/1.245, allocations: 48.38 kB / 1.176 GB, free: 8.094 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001012/1.246, allocations: 408.8 kB / 1.177 GB, free: 7.652 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.61e-05/1.246, allocations: 29.36 kB / 1.177 GB, free: 7.625 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001414/1.246, allocations: 40.38 kB / 1.177 GB, free: 7.586 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002053/1.248, allocations: 0.6745 MB / 1.178 GB, free: 6.871 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/1.248, allocations: 192 / 1.178 GB, free: 6.871 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.601e-05/1.249, allocations: 18.33 kB / 1.178 GB, free: 6.855 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/1.249, allocations: 8.938 kB / 1.178 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002155/1.251, allocations: 0.6144 MB / 1.178 GB, free: 6.234 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004186/1.255, allocations: 1.671 MB / 1.18 GB, free: 4.496 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003468/1.258, allocations: 0.9631 MB / 1.181 GB, free: 3.48 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00128/1.26, allocations: 369.8 kB / 1.181 GB, free: 3.102 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 6.051e-05/1.26, allocations: 4 kB / 1.181 GB, free: 3.098 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001751/1.262, allocations: 0.5536 MB / 1.182 GB, free: 2.516 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=51): time 5.831e-06/1.262, allocations: 0 / 1.182 GB, free: 2.516 MB / 0.7448 GB Notification: Performance of matching and sorting (n=51): time 0.004423/1.266, allocations: 1.137 MB / 1.183 GB, free: 1.375 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002041/1.266, allocations: 285 kB / 1.183 GB, free: 1.035 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009618/1.267, allocations: 433.4 kB / 1.184 GB, free: 0.6016 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0001243/1.267, allocations: 49.69 kB / 1.184 GB, free: 0.5469 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002602/1.268, allocations: 196.9 kB / 1.184 GB, free: 360 kB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.000225/1.268, allocations: 123.8 kB / 1.184 GB, free: 236 kB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-05/1.268, allocations: 12 kB / 1.184 GB, free: 224 kB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002193/1.268, allocations: 362.8 kB / 1.184 GB, free: 15.86 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/1.269, allocations: 308.8 kB / 1.185 GB, free: 15.55 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/1.271, allocations: 493.8 kB / 1.185 GB, free: 15 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002478/1.273, allocations: 0.7728 MB / 1.186 GB, free: 14.16 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.05e-05/1.273, allocations: 3.938 kB / 1.186 GB, free: 14.16 MB / 0.7605 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.003064/1.276, allocations: 0.8394 MB / 1.187 GB, free: 13.31 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002555/1.277, allocations: 251.8 kB / 1.187 GB, free: 12.99 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.161e-05/1.277, allocations: 8 kB / 1.187 GB, free: 12.98 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.36e-05/1.277, allocations: 4 kB / 1.187 GB, free: 12.98 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006913/1.278, allocations: 117.5 kB / 1.187 GB, free: 12.86 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.623e-05/1.278, allocations: 12.69 kB / 1.187 GB, free: 12.85 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000859/1.278, allocations: 103.7 kB / 1.187 GB, free: 12.75 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.924e-05/1.279, allocations: 29.86 kB / 1.187 GB, free: 12.72 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/1.279, allocations: 11.88 kB / 1.187 GB, free: 12.71 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001791/1.28, allocations: 0.6078 MB / 1.188 GB, free: 12.1 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/1.28, allocations: 4 kB / 1.188 GB, free: 12.09 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/1.28, allocations: 8 kB / 1.188 GB, free: 12.09 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004167/1.281, allocations: 79.81 kB / 1.188 GB, free: 12.01 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.574e-05/1.281, allocations: 15.92 kB / 1.188 GB, free: 11.99 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006362/1.282, allocations: 75.64 kB / 1.188 GB, free: 11.92 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.515e-05/1.282, allocations: 28.77 kB / 1.188 GB, free: 11.89 MB / 0.7605 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.000696/1.282, allocations: 364.7 kB / 1.188 GB, free: 11.53 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000206/1.283, allocations: 47.47 kB / 1.188 GB, free: 11.48 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002246/1.283, allocations: 55.88 kB / 1.188 GB, free: 11.43 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.661e-05/1.283, allocations: 8 kB / 1.188 GB, free: 11.42 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/1.283, allocations: 3.938 kB / 1.188 GB, free: 11.41 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/1.283, allocations: 3.984 kB / 1.188 GB, free: 11.41 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004658/1.288, allocations: 1.932 MB / 1.19 GB, free: 9.422 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/1.288, allocations: 0 / 1.19 GB, free: 9.422 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005621/1.288, allocations: 87.84 kB / 1.19 GB, free: 9.336 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.497e-05/1.288, allocations: 8 kB / 1.19 GB, free: 9.328 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.726e-05/1.288, allocations: 14.3 kB / 1.19 GB, free: 9.316 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.321e-05/1.288, allocations: 11.22 kB / 1.19 GB, free: 9.309 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/1.288, allocations: 4 kB / 1.19 GB, free: 9.305 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002982/1.291, allocations: 1.275 MB / 1.192 GB, free: 8.012 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002101/1.292, allocations: 132.5 kB / 1.192 GB, free: 7.863 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001441/1.292, allocations: 11.98 kB / 1.192 GB, free: 7.852 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001301/1.293, allocations: 127.8 kB / 1.192 GB, free: 7.727 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001925/1.293, allocations: 47.92 kB / 1.192 GB, free: 7.68 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.271e-05/1.293, allocations: 19.98 kB / 1.192 GB, free: 7.66 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0006438/1.294, allocations: 303.1 kB / 1.192 GB, free: 7.367 MB / 0.7605 GB Notification: Performance of sort global known variables: time 3.31e-07/1.294, allocations: 7.938 kB / 1.192 GB, free: 7.359 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.001819/1.296, allocations: 183.7 kB / 1.192 GB, free: 7.18 MB / 0.7605 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.0003602/1.296, allocations: 147.4 kB / 1.193 GB, free: 7.031 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.004055/1.3, allocations: 1.147 MB / 1.194 GB, free: 5.863 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/1.3, allocations: 0 / 1.194 GB, free: 5.863 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.001398/1.302, allocations: 404.8 kB / 1.194 GB, free: 5.469 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002001/1.304, allocations: 87.47 kB / 1.194 GB, free: 5.387 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003622/1.307, allocations: 1.136 MB / 1.195 GB, free: 4.207 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008964/1.308, allocations: 0.9151 MB / 1.196 GB, free: 3.266 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0009849/1.309, allocations: 205 kB / 1.196 GB, free: 3.066 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002071/1.31, allocations: 35.44 kB / 1.196 GB, free: 3.031 MB / 0.7605 GB Notification: Performance of SimCode: time 1.052e-06/1.31, allocations: 4 kB / 1.196 GB, free: 3.027 MB / 0.7605 GB Notification: Performance of Templates: time 0.01987/1.329, allocations: 6.128 MB / 1.202 GB, free: 13.09 MB / 0.7761 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1)