Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001849/0.001849, allocations: 113.8 kB / 16.42 MB, free: 6.441 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.002124/0.002124, allocations: 187.9 kB / 17.35 MB, free: 5.715 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.385/1.385, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.496/2.496, allocations: 390.3 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001735/0.001735, allocations: 63.91 kB / 0.9515 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9935/0.9953, allocations: 140.4 MB / 1.089 GB, free: 5.777 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond): time 0.003772/0.9991, allocations: 2.036 MB / 1.091 GB, free: 4.359 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001318/1, allocations: 0.6647 MB / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/1.001, allocations: 6.156 kB / 1.091 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 8.129e-05/1.001, allocations: 21.25 kB / 1.091 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001508/1.001, allocations: 39.25 kB / 1.091 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004724/1.001, allocations: 125.9 kB / 1.091 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0007349/1.002, allocations: 0.5544 MB / 1.092 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000409/1.003, allocations: 254 kB / 1.092 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000361/1.003, allocations: 239.3 kB / 1.092 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003005/1.003, allocations: 238.2 kB / 1.093 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001255/1.003, allocations: 52.25 kB / 1.093 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/1.003, allocations: 52.72 kB / 1.093 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000157/1.004, allocations: 126.2 kB / 1.093 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002996/1.004, allocations: 240.5 kB / 1.093 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001018/1.005, allocations: 0.6846 MB / 1.094 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/1.005, allocations: 8.594 kB / 1.094 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.325e-06/1.005, allocations: 0 / 1.094 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.185e-05/1.005, allocations: 1 kB / 1.094 GB, free: 2.652 MB / 0.8575 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.002561/1.008, allocations: 0.9932 MB / 1.095 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.042e-05/1.008, allocations: 9.766 kB / 1.095 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001615/1.008, allocations: 51.73 kB / 1.095 GB, free: 2 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007112/1.009, allocations: 397.9 kB / 1.095 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.822e-05/1.009, allocations: 32.38 kB / 1.095 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.437e-05/1.009, allocations: 42.2 kB / 1.095 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001594/1.01, allocations: 0.6771 MB / 1.096 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/1.01, allocations: 1.641 kB / 1.096 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.708e-05/1.01, allocations: 17.64 kB / 1.096 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.111e-05/1.01, allocations: 8.688 kB / 1.096 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/1.012, allocations: 0.5905 MB / 1.097 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002941/1.015, allocations: 1.641 MB / 1.098 GB, free: 268 kB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002162/1.017, allocations: 0.8897 MB / 1.099 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008031/1.018, allocations: 344.7 kB / 1.099 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 4.734e-05/1.018, allocations: 16.66 kB / 1.099 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001163/1.019, allocations: 0.5208 MB / 1.1 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=51): time 2.715e-06/1.019, allocations: 1.031 kB / 1.1 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of matching and sorting (n=51): time 0.003045/1.022, allocations: 1.081 MB / 1.101 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001961/1.022, allocations: 279.3 kB / 1.101 GB, free: 15.03 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007074/1.023, allocations: 436.9 kB / 1.102 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 9.256e-05/1.023, allocations: 44.38 kB / 1.102 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001986/1.023, allocations: 202.1 kB / 1.102 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/1.024, allocations: 125.3 kB / 1.102 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000214/1.024, allocations: 113.2 kB / 1.102 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000177/1.024, allocations: 356.1 kB / 1.102 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007242/1.025, allocations: 304.5 kB / 1.103 GB, free: 14.06 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008673/1.026, allocations: 476.9 kB / 1.103 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001527/1.027, allocations: 0.7498 MB / 1.104 GB, free: 13.4 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/1.027, allocations: 5.125 kB / 1.104 GB, free: 13.4 MB / 0.8731 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001891/1.029, allocations: 0.8017 MB / 1.105 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.358e-05/1.029, allocations: 34.72 kB / 1.105 GB, free: 13.1 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/1.029, allocations: 8.031 kB / 1.105 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.432e-05/1.029, allocations: 7.469 kB / 1.105 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004583/1.03, allocations: 104.7 kB / 1.105 GB, free: 13.08 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.883e-05/1.03, allocations: 8.484 kB / 1.105 GB, free: 13.08 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000543/1.03, allocations: 100.7 kB / 1.105 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.018e-05/1.03, allocations: 26.7 kB / 1.105 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000764/1.031, allocations: 397.7 kB / 1.105 GB, free: 12.87 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006609/1.032, allocations: 398.9 kB / 1.106 GB, free: 12.61 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001066/1.033, allocations: 0.6016 MB / 1.106 GB, free: 12.24 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.561e-06/1.033, allocations: 6.5 kB / 1.106 GB, free: 12.24 MB / 0.8731 GB Notification: Performance of matching and sorting (n=66) (initialization_lambda0): time 0.00131/1.034, allocations: 0.6592 MB / 1.107 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.838e-05/1.034, allocations: 34.86 kB / 1.107 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/1.034, allocations: 4.969 kB / 1.107 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/1.034, allocations: 7.219 kB / 1.107 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002916/1.035, allocations: 73 kB / 1.107 GB, free: 11.93 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.343e-05/1.035, allocations: 11.14 kB / 1.107 GB, free: 11.93 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004426/1.035, allocations: 71.73 kB / 1.107 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.698e-05/1.035, allocations: 26.84 kB / 1.107 GB, free: 11.9 MB / 0.8731 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.0004216/1.036, allocations: 267 kB / 1.107 GB, free: 11.67 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/1.036, allocations: 48.5 kB / 1.107 GB, free: 11.65 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001776/1.036, allocations: 54.12 kB / 1.108 GB, free: 11.61 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/1.036, allocations: 7.109 kB / 1.108 GB, free: 11.61 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/1.036, allocations: 2.188 kB / 1.108 GB, free: 11.61 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001301/1.036, allocations: 124.8 kB / 1.108 GB, free: 11.49 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.721e-05/1.036, allocations: 19.03 kB / 1.108 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005602/1.037, allocations: 96.88 kB / 1.108 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/1.037, allocations: 56.64 kB / 1.108 GB, free: 11.46 MB / 0.8731 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002529/1.039, allocations: 1.288 MB / 1.109 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002082/1.041, allocations: 1.325 MB / 1.11 GB, free: 10.02 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008379/1.042, allocations: 369.3 kB / 1.111 GB, free: 9.93 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004351/1.043, allocations: 307.3 kB / 1.111 GB, free: 9.793 MB / 0.8731 GB Notification: Performance of Backend: time 5.81e-07/1.043, allocations: 0 / 1.111 GB, free: 9.793 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002767/1.046, allocations: 0.8948 MB / 1.112 GB, free: 9.418 MB / 0.8731 GB Notification: Performance of SimCode: time 0.00203/1.048, allocations: 1.261 MB / 1.113 GB, free: 8.543 MB / 0.8731 GB Notification: Performance of Templates: time 0.0248/1.072, allocations: 10.27 MB / 1.123 GB, free: 7.898 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches