Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cooCap.TConIn|cooCap.TEvaIn|cooCap.m_flow|cooCap.Q_flow.1.|cooCap.EIR.1.",fileNamePrefix="Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled") translateModel(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cooCap.TConIn|cooCap.TEvaIn|cooCap.m_flow|cooCap.Q_flow.1.|cooCap.EIR.1.",fileNamePrefix="Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01029/0.01029, allocations: 99.97 kB / 15.73 MB, free: 5.555 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.00192/0.00192, allocations: 196.5 kB / 16.68 MB, free: 5.484 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.458/1.458, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 3.005/3.005, allocations: 469.8 MB / 0.7425 GB, free: 7.355 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 71.89 kB / 1.065 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3281, allocations: 159.1 MB / 1.221 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled): time 0.004091/0.3322, allocations: 2.908 MB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.003115/0.3353, allocations: 2.219 MB / 1.226 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00013/0.3354, allocations: 4 kB / 1.226 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0007895/0.3362, allocations: 274.5 kB / 1.226 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001609/0.3364, allocations: 79.22 kB / 1.226 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.00118/0.3375, allocations: 482.2 kB / 1.226 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0006002/0.3381, allocations: 0.5064 MB / 1.227 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.3383, allocations: 36.73 kB / 1.227 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002197/0.3385, allocations: 211.3 kB / 1.227 GB, free: 7.07 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000268/0.3387, allocations: 203.3 kB / 1.227 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.726e-05/0.3388, allocations: 36 kB / 1.227 GB, free: 6.836 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003837/0.3392, allocations: 247.7 kB / 1.228 GB, free: 6.594 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001824/0.3394, allocations: 167.5 kB / 1.228 GB, free: 6.43 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002047/0.3396, allocations: 210.9 kB / 1.228 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0007863/0.3404, allocations: 0.7591 MB / 1.229 GB, free: 5.461 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.3404, allocations: 0 / 1.229 GB, free: 5.461 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.296e-06/0.3404, allocations: 4 kB / 1.229 GB, free: 5.457 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.795e-06/0.3404, allocations: 0 / 1.229 GB, free: 5.457 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001439/0.3418, allocations: 0.8435 MB / 1.23 GB, free: 4.551 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.3419, allocations: 12.03 kB / 1.23 GB, free: 4.539 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002089/0.344, allocations: 232.4 kB / 1.23 GB, free: 4.312 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005133/0.3445, allocations: 430.4 kB / 1.23 GB, free: 3.855 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001315/0.3446, allocations: 87.89 kB / 1.23 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.114e-05/0.3447, allocations: 12.38 kB / 1.23 GB, free: 3.746 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/0.3459, allocations: 0.534 MB / 1.231 GB, free: 3.207 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.3459, allocations: 0 / 1.231 GB, free: 3.207 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.957e-05/0.346, allocations: 8 kB / 1.231 GB, free: 3.199 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.346, allocations: 0 / 1.231 GB, free: 3.199 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001951/0.3479, allocations: 0.7611 MB / 1.232 GB, free: 2.438 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002174/0.3501, allocations: 1.277 MB / 1.233 GB, free: 1.109 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005345/0.3554, allocations: 0.9939 MB / 1.234 GB, free: 108 kB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009549/0.3564, allocations: 392.7 kB / 1.234 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.656e-05/0.3564, allocations: 3.906 kB / 1.234 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001215/0.3576, allocations: 0.5323 MB / 1.235 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=21): time 3.055e-06/0.3576, allocations: 0 / 1.235 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of matching and sorting (n=21): time 0.003095/0.3607, allocations: 1.177 MB / 1.236 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.612e-05/0.3608, allocations: 59.39 kB / 1.236 GB, free: 13.92 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005981/0.3614, allocations: 0.5214 MB / 1.236 GB, free: 13.39 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.9e-05/0.3614, allocations: 33.7 kB / 1.236 GB, free: 13.35 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001594/0.3616, allocations: 200.4 kB / 1.237 GB, free: 13.15 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 7.719e-05/0.3617, allocations: 75.42 kB / 1.237 GB, free: 13.07 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001602/0.3618, allocations: 65.66 kB / 1.237 GB, free: 13 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.362, allocations: 354.8 kB / 1.237 GB, free: 12.65 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.363, allocations: 472.5 kB / 1.238 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001081/0.3641, allocations: 0.5055 MB / 1.238 GB, free: 11.68 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001858/0.366, allocations: 0.7538 MB / 1.239 GB, free: 10.91 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.366, allocations: 0 / 1.239 GB, free: 10.91 MB / 0.9981 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.002379/0.3683, allocations: 1.069 MB / 1.24 GB, free: 9.832 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.848e-05/0.3684, allocations: 45.69 kB / 1.24 GB, free: 9.781 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.3684, allocations: 0 / 1.24 GB, free: 9.781 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.3684, allocations: 7.938 kB / 1.24 GB, free: 9.773 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006184/0.3691, allocations: 87.83 kB / 1.24 GB, free: 9.688 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.347e-06/0.3691, allocations: 3.984 kB / 1.24 GB, free: 9.684 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004989/0.3696, allocations: 59.89 kB / 1.24 GB, free: 9.625 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.526e-05/0.3696, allocations: 19.92 kB / 1.24 GB, free: 9.605 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (cooCap.checkBoundsTCon[1],$PRE.cooCap.checkBoundsTCon[1],cooCap.checkBoundsTEva[1],$PRE.cooCap.checkBoundsTEva[1],cooCap.stage,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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.0002927/0.3699, allocations: 218.2 kB / 1.24 GB, free: 9.383 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.607e-05/0.37, allocations: 43.72 kB / 1.24 GB, free: 9.34 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.769e-05/0.3701, allocations: 55.84 kB / 1.24 GB, free: 9.281 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.3701, allocations: 0 / 1.24 GB, free: 9.281 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.3701, allocations: 0 / 1.24 GB, free: 9.281 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.3701, allocations: 0 / 1.24 GB, free: 9.281 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006864/0.3708, allocations: 0.6454 MB / 1.241 GB, free: 8.586 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3708, allocations: 0 / 1.241 GB, free: 8.586 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005828/0.3714, allocations: 95.88 kB / 1.241 GB, free: 8.492 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.3714, allocations: 0 / 1.241 GB, free: 8.492 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.608e-05/0.3714, allocations: 11.92 kB / 1.241 GB, free: 8.48 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.3714, allocations: 0 / 1.241 GB, free: 8.48 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3714, allocations: 0 / 1.241 GB, free: 8.48 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002021/0.3734, allocations: 0.8459 MB / 1.242 GB, free: 7.617 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002493/0.3737, allocations: 196.7 kB / 1.242 GB, free: 7.406 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.67e-05/0.3738, allocations: 11.94 kB / 1.242 GB, free: 7.395 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005104/0.3743, allocations: 59.92 kB / 1.242 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.527e-05/0.3744, allocations: 27.95 kB / 1.242 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.85e-05/0.3744, allocations: 11.98 kB / 1.242 GB, free: 7.297 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004101/0.3748, allocations: 387.1 kB / 1.243 GB, free: 6.922 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.3748, allocations: 0 / 1.243 GB, free: 6.922 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003938/0.3752, allocations: 103.9 kB / 1.243 GB, free: 6.82 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,cooCap.stage,cooCap.checkBoundsTEva[1],cooCap.checkBoundsTCon[1]) * Number of discrete states: 3 (cooCap.stage,cooCap.checkBoundsTEva[cooCap.stage],cooCap.checkBoundsTCon[cooCap.stage]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002707/0.3755, allocations: 143.1 kB / 1.243 GB, free: 6.672 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002203/0.3777, allocations: 0.9244 MB / 1.244 GB, free: 5.734 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3777, allocations: 0 / 1.244 GB, free: 5.734 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.3787, allocations: 418.8 kB / 1.244 GB, free: 5.328 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000472/0.3792, allocations: 97.75 kB / 1.244 GB, free: 5.23 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002299/0.3815, allocations: 1.054 MB / 1.245 GB, free: 4.148 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004581/0.3819, allocations: 0.8617 MB / 1.246 GB, free: 3.258 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0004083/0.3823, allocations: 130.9 kB / 1.246 GB, free: 3.125 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001723/0.3825, allocations: 43.41 kB / 1.246 GB, free: 3.086 MB / 0.9981 GB Notification: Performance of SimCode: time 7.51e-07/0.3825, allocations: 0 / 1.246 GB, free: 3.086 MB / 0.9981 GB Notification: Performance of Templates: time 0.6101/0.9926, allocations: 8.842 MB / 1.255 GB, free: 29.33 MB / 0.9981 GB make -j1 -f Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.makefile (rm -f Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe ; mkfifo Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe >> ../files/Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.sim & ./Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_CoolingCapacityWaterCooled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches