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/ModelicaServices 4.0.0+maint.om/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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|act1.y|act2.y|act3.y|triAndRes.1..y|triAndRes.2..y|triAndRes.3..y",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|act1.y|act2.y|act3.y|triAndRes.1..y|triAndRes.2..y|triAndRes.3..y",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001842/0.001842, allocations: 114.6 kB / 16.42 MB, free: 6.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001828/0.001827, allocations: 186.6 kB / 17.35 MB, free: 5.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 241.1 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.807/2.807, allocations: 472.7 MB / 0.746 GB, free: 488 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 71.83 kB / 1.07 GB, free: 9.578 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9198/0.9213, allocations: 159.9 MB / 1.226 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond): time 0.003516/0.9248, allocations: 2.036 MB / 1.228 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001382/0.9263, allocations: 0.6701 MB / 1.229 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001574/0.9264, allocations: 0 / 1.229 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 8.8e-05/0.9265, allocations: 19.73 kB / 1.229 GB, free: 10.76 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001804/0.9267, allocations: 39.59 kB / 1.229 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005016/0.9273, allocations: 131 kB / 1.229 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0007466/0.928, allocations: 0.5572 MB / 1.23 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004237/0.9284, allocations: 254.2 kB / 1.23 GB, free: 9.781 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003872/0.9288, allocations: 235.2 kB / 1.23 GB, free: 9.551 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003154/0.9292, allocations: 250.8 kB / 1.23 GB, free: 9.305 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001255/0.9293, allocations: 52 kB / 1.23 GB, free: 9.254 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001138/0.9294, allocations: 52 kB / 1.231 GB, free: 9.203 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.9296, allocations: 123.7 kB / 1.231 GB, free: 9.082 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0003165/0.9299, allocations: 238.7 kB / 1.231 GB, free: 8.848 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000794/0.9307, allocations: 0.6855 MB / 1.232 GB, free: 8.164 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 8.076e-06/0.9307, allocations: 4 kB / 1.232 GB, free: 8.16 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.134e-06/0.9307, allocations: 3.938 kB / 1.232 GB, free: 8.156 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.859e-05/0.9307, allocations: 0 / 1.232 GB, free: 8.156 MB / 0.9512 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.002428/0.9332, allocations: 1.007 MB / 1.233 GB, free: 7.098 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.9332, allocations: 8.031 kB / 1.233 GB, free: 7.09 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001443/0.9334, allocations: 56.61 kB / 1.233 GB, free: 7.035 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005964/0.934, allocations: 412 kB / 1.233 GB, free: 6.594 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.024e-05/0.934, allocations: 29.38 kB / 1.233 GB, free: 6.566 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.974e-05/0.9341, allocations: 36.38 kB / 1.233 GB, free: 6.531 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/0.9354, allocations: 0.682 MB / 1.234 GB, free: 5.816 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.9354, allocations: 0 / 1.234 GB, free: 5.816 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.442e-05/0.9355, allocations: 12 kB / 1.234 GB, free: 5.805 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.9355, allocations: 12 kB / 1.234 GB, free: 5.793 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001239/0.9367, allocations: 0.5911 MB / 1.234 GB, free: 5.203 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002783/0.9395, allocations: 1.638 MB / 1.236 GB, free: 3.496 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001883/0.9414, allocations: 0.8978 MB / 1.237 GB, free: 2.543 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007075/0.9421, allocations: 344.8 kB / 1.237 GB, free: 2.188 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.581e-05/0.9422, allocations: 15.94 kB / 1.237 GB, free: 2.172 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009148/0.9431, allocations: 0.5292 MB / 1.238 GB, free: 1.609 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=51): time 2.945e-06/0.9431, allocations: 0 / 1.238 GB, free: 1.609 MB / 0.9512 GB Notification: Performance of matching and sorting (n=51): time 0.002389/0.9455, allocations: 1.078 MB / 1.239 GB, free: 0.5234 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000179/0.9457, allocations: 281 kB / 1.239 GB, free: 192 kB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005539/0.9463, allocations: 429.6 kB / 1.239 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 7.562e-05/0.9464, allocations: 49.69 kB / 1.239 GB, free: 15.7 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001793/0.9465, allocations: 201.1 kB / 1.24 GB, free: 15.5 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001548/0.9467, allocations: 134.9 kB / 1.24 GB, free: 15.37 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001969/0.9469, allocations: 110.2 kB / 1.24 GB, free: 15.25 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002436/0.9472, allocations: 362.7 kB / 1.24 GB, free: 14.89 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007138/0.9479, allocations: 302.8 kB / 1.24 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008568/0.9488, allocations: 477.9 kB / 1.241 GB, free: 14.05 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001305/0.9501, allocations: 0.7445 MB / 1.242 GB, free: 13.24 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/0.9501, allocations: 4 kB / 1.242 GB, free: 13.24 MB / 0.9669 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001696/0.9518, allocations: 0.8069 MB / 1.242 GB, free: 12.42 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.389e-05/0.9519, allocations: 35.42 kB / 1.242 GB, free: 12.38 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.9519, allocations: 4 kB / 1.242 GB, free: 12.38 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.657e-05/0.9519, allocations: 8 kB / 1.242 GB, free: 12.37 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003903/0.9523, allocations: 104.1 kB / 1.243 GB, free: 12.27 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.074e-05/0.9523, allocations: 11.98 kB / 1.243 GB, free: 12.25 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004837/0.9528, allocations: 91.75 kB / 1.243 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.393e-05/0.9529, allocations: 31.92 kB / 1.243 GB, free: 12.13 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007547/0.9537, allocations: 389 kB / 1.243 GB, free: 11.75 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006735/0.9543, allocations: 404.2 kB / 1.243 GB, free: 11.28 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009174/0.9553, allocations: 0.6007 MB / 1.244 GB, free: 10.61 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.758e-06/0.9553, allocations: 4 kB / 1.244 GB, free: 10.61 MB / 0.9669 GB Notification: Performance of matching and sorting (n=66) (initialization_lambda0): time 0.001227/0.9565, allocations: 0.666 MB / 1.245 GB, free: 9.93 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.187e-05/0.9566, allocations: 33.7 kB / 1.245 GB, free: 9.891 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.637e-06/0.9566, allocations: 4 kB / 1.245 GB, free: 9.887 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.9566, allocations: 8 kB / 1.245 GB, free: 9.879 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002522/0.9568, allocations: 71.81 kB / 1.245 GB, free: 9.809 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/0.9569, allocations: 11.94 kB / 1.245 GB, free: 9.797 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004238/0.9573, allocations: 80.3 kB / 1.245 GB, free: 9.719 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.846e-05/0.9574, allocations: 28.06 kB / 1.245 GB, free: 9.691 MB / 0.9669 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 (triAndRes[1].uniDel1.firstTrigger,$PRE.triAndRes[1].uniDel1.firstTrigger,triAndRes[1].sam.firstTrigger,$PRE.triAndRes[1].sam.firstTrigger,triAndRes[1].sam.sampleTrigger,$whenCondition9,triAndRes[1].uniDel1.sampleTrigger,$whenCondition10,triAndRes[1].firstTrigger,$PRE.triAndRes[1].firstTrigger,triAndRes[1].sampleTrigger,$whenCondition7,triAndRes[2].uniDel1.firstTrigger,$PRE.triAndRes[2].uniDel1.firstTrigger,triAndRes[2].sam.firstTrigger,$PRE.triAndRes[2].sam.firstTrigger,triAndRes[2].sam.sampleTrigger,$whenCondition5,triAndRes[2].uniDel1.sampleTrigger,$whenCondition6,triAndRes[2].uniDel1.y,$PRE.triAndRes[2].uniDel1.y,triAndRes[2].sam.y,triAndRes[2].incY.y,triAndRes[2].firstTrigger,$PRE.triAndRes[2].firstTrigger,triAndRes[2].sampleTrigger,$whenCondition4,triAndRes[3].uniDel1.firstTrigger,$PRE.triAndRes[3].uniDel1.firstTrigger,triAndRes[3].sam.firstTrigger,$PRE.triAndRes[3].sam.firstTrigger,triAndRes[3].sam.sampleTrigger,$whenCondition2,triAndRes[3].uniDel1.sampleTrigger,$whenCondition3,triAndRes[3].uniDel1.y,$PRE.triAndRes[3].uniDel1.y,triAndRes[3].sam.y,triAndRes[3].incY.y,triAndRes[3].firstTrigger,$PRE.triAndRes[3].firstTrigger,triAndRes[3].sampleTrigger,$whenCondition1,triAndRes[1].uniDel1.y,$PRE.triAndRes[1].uniDel1.y,triAndRes[1].sam.y,triAndRes[1].incY.y,act1.count,$PRE.act1.count,act1.T_start,$PRE.act1.T_start,$whenCondition8) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003225/0.9577, allocations: 268.5 kB / 1.245 GB, free: 9.422 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/0.9578, allocations: 47.72 kB / 1.245 GB, free: 9.375 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001299/0.9579, allocations: 55.36 kB / 1.245 GB, free: 9.324 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.958, allocations: 7.984 kB / 1.245 GB, free: 9.316 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.958, allocations: 4 kB / 1.245 GB, free: 9.312 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.9581, allocations: 128.8 kB / 1.245 GB, free: 9.168 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.643e-05/0.9582, allocations: 15.98 kB / 1.245 GB, free: 9.152 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005157/0.9587, allocations: 99.86 kB / 1.246 GB, free: 9.055 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.9589, allocations: 55.88 kB / 1.246 GB, free: 9 MB / 0.9669 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00213/0.961, allocations: 1.278 MB / 1.247 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0019/0.9629, allocations: 1.326 MB / 1.248 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007465/0.9637, allocations: 373.7 kB / 1.248 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0003641/0.9641, allocations: 311.1 kB / 1.249 GB, free: 5.688 MB / 0.9669 GB Notification: Performance of Backend: time 6.92e-07/0.9641, allocations: 0 / 1.249 GB, free: 5.688 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002362/0.9665, allocations: 0.8974 MB / 1.25 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of SimCode: time 0.001789/0.9683, allocations: 1.26 MB / 1.251 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of Templates: time 0.01799/0.9863, allocations: 10.27 MB / 1.261 GB, free: 9.23 MB / 0.9825 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 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches