Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.00141/0.00141, allocations: 109 kB / 16.41 MB, free: 6.52 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.001679/0.001679, allocations: 186.7 kB / 17.35 MB, free: 5.738 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.419/1.419, allocations: 222.9 MB / 241.1 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.599/2.599, allocations: 437 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001569/0.001569, allocations: 59.89 kB / 1.019 GB, free: 9.422 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.113/1.114, allocations: 151.6 MB / 1.167 GB, free: 3.977 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond): time 0.005214/1.119, allocations: 2.038 MB / 1.169 GB, free: 1.922 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001737/1.121, allocations: 0.6701 MB / 1.17 GB, free: 1.246 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001542/1.121, allocations: 0 / 1.17 GB, free: 1.246 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001079/1.122, allocations: 19.73 kB / 1.17 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001977/1.122, allocations: 43.66 kB / 1.17 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.00063/1.122, allocations: 125.2 kB / 1.17 GB, free: 1.062 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0009031/1.123, allocations: 0.5572 MB / 1.171 GB, free: 0.5039 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005398/1.124, allocations: 250.2 kB / 1.171 GB, free: 260 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000496/1.124, allocations: 243.1 kB / 1.171 GB, free: 16 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003775/1.125, allocations: 235 kB / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001215/1.125, allocations: 52 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/1.125, allocations: 52 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002119/1.125, allocations: 135.5 kB / 1.172 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.000399/1.126, allocations: 238.7 kB / 1.172 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001102/1.127, allocations: 0.6898 MB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 8.056e-06/1.127, allocations: 0 / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.395e-06/1.127, allocations: 0 / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.417e-05/1.127, allocations: 0 / 1.172 GB, free: 14.62 MB / 0.9044 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.13, allocations: 1.001 MB / 1.173 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 6.525e-05/1.131, allocations: 12.88 kB / 1.173 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001841/1.131, allocations: 56.61 kB / 1.174 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008737/1.132, allocations: 416 kB / 1.174 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.414e-05/1.132, allocations: 29.36 kB / 1.174 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.702e-05/1.132, allocations: 36.38 kB / 1.174 GB, free: 13 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002162/1.134, allocations: 0.6743 MB / 1.175 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/1.134, allocations: 0 / 1.175 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.648e-05/1.134, allocations: 12 kB / 1.175 GB, free: 12.28 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.706e-05/1.134, allocations: 15.94 kB / 1.175 GB, free: 12.26 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002317/1.137, allocations: 0.5937 MB / 1.175 GB, free: 11.67 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004165/1.141, allocations: 1.634 MB / 1.177 GB, free: 9.965 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003303/1.144, allocations: 0.8783 MB / 1.178 GB, free: 9.031 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001271/1.145, allocations: 360.8 kB / 1.178 GB, free: 8.66 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 7.586e-05/1.145, allocations: 11.98 kB / 1.178 GB, free: 8.648 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001667/1.147, allocations: 0.5254 MB / 1.179 GB, free: 8.094 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=51): time 7.764e-06/1.147, allocations: 4 kB / 1.179 GB, free: 8.09 MB / 0.9044 GB Notification: Performance of matching and sorting (n=51): time 0.004357/1.152, allocations: 1.091 MB / 1.18 GB, free: 6.996 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000231/1.152, allocations: 281 kB / 1.18 GB, free: 6.66 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001051/1.153, allocations: 429.5 kB / 1.18 GB, free: 6.23 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001204/1.153, allocations: 49.69 kB / 1.18 GB, free: 6.176 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002737/1.153, allocations: 201.1 kB / 1.181 GB, free: 5.973 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002546/1.154, allocations: 135 kB / 1.181 GB, free: 5.84 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003482/1.154, allocations: 110.2 kB / 1.181 GB, free: 5.727 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002272/1.154, allocations: 366.8 kB / 1.181 GB, free: 5.359 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00107/1.155, allocations: 290.8 kB / 1.181 GB, free: 5.07 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001358/1.157, allocations: 489.7 kB / 1.182 GB, free: 4.523 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002178/1.159, allocations: 0.7417 MB / 1.183 GB, free: 3.711 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.765e-06/1.159, allocations: 3.938 kB / 1.183 GB, free: 3.707 MB / 0.9044 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002921/1.162, allocations: 0.8091 MB / 1.183 GB, free: 2.887 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 6.762e-05/1.162, allocations: 37.7 kB / 1.183 GB, free: 2.844 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.361e-05/1.162, allocations: 4 kB / 1.183 GB, free: 2.84 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.103e-05/1.162, allocations: 11.94 kB / 1.183 GB, free: 2.828 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006591/1.163, allocations: 99.77 kB / 1.184 GB, free: 2.73 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.764e-05/1.163, allocations: 11.98 kB / 1.184 GB, free: 2.719 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008776/1.164, allocations: 91.69 kB / 1.184 GB, free: 2.629 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.99e-05/1.164, allocations: 31.98 kB / 1.184 GB, free: 2.598 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001204/1.165, allocations: 395.8 kB / 1.184 GB, free: 2.207 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009685/1.166, allocations: 402 kB / 1.184 GB, free: 1.746 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001637/1.168, allocations: 0.5942 MB / 1.185 GB, free: 1.082 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.54e-05/1.168, allocations: 160 / 1.185 GB, free: 1.082 MB / 0.9044 GB Notification: Performance of matching and sorting (n=66) (initialization_lambda0): time 0.002234/1.17, allocations: 0.6701 MB / 1.186 GB, free: 404 kB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.681e-05/1.17, allocations: 33.7 kB / 1.186 GB, free: 364 kB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.525e-05/1.17, allocations: 4 kB / 1.186 GB, free: 360 kB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/1.17, allocations: 8 kB / 1.186 GB, free: 352 kB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000458/1.17, allocations: 72.34 kB / 1.186 GB, free: 280 kB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.733e-05/1.17, allocations: 12 kB / 1.186 GB, free: 268 kB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007632/1.171, allocations: 75.7 kB / 1.186 GB, free: 192 kB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.786e-05/1.171, allocations: 24 kB / 1.186 GB, free: 168 kB / 0.9044 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.0005342/1.172, allocations: 260.7 kB / 1.186 GB, free: 15.9 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002573/1.172, allocations: 51.7 kB / 1.186 GB, free: 15.85 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002162/1.172, allocations: 55.36 kB / 1.186 GB, free: 15.8 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/1.172, allocations: 3.984 kB / 1.186 GB, free: 15.8 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.243e-06/1.172, allocations: 4 kB / 1.186 GB, free: 15.79 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002383/1.173, allocations: 132.7 kB / 1.186 GB, free: 15.64 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001754/1.173, allocations: 16 kB / 1.186 GB, free: 15.63 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008957/1.174, allocations: 107.8 kB / 1.187 GB, free: 15.52 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002327/1.174, allocations: 59.81 kB / 1.187 GB, free: 15.46 MB / 0.92 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003485/1.178, allocations: 1.275 MB / 1.188 GB, free: 14.18 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003163/1.181, allocations: 1.335 MB / 1.189 GB, free: 12.82 MB / 0.92 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001375/1.182, allocations: 371.2 kB / 1.189 GB, free: 12.46 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0006743/1.183, allocations: 311.1 kB / 1.19 GB, free: 12.16 MB / 0.92 GB Notification: Performance of Backend: time 6.22e-07/1.183, allocations: 4 kB / 1.19 GB, free: 12.16 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.004152/1.187, allocations: 0.8852 MB / 1.191 GB, free: 11.24 MB / 0.92 GB Notification: Performance of SimCode: time 0.002994/1.19, allocations: 1.285 MB / 1.192 GB, free: 9.902 MB / 0.92 GB Notification: Performance of Templates: time 0.03253/1.223, allocations: 10.25 MB / 1.202 GB, free: 15.72 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches