Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.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_latest_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_latest_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.001591/0.001591, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001672/0.001672, allocations: 192.6 kB / 16.25 MB, free: 6.625 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.402/1.402, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.859/2.859, allocations: 472.7 MB / 0.7449 GB, free: 4.844 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001443, allocations: 62.66 kB / 0.9116 GB, free: 33.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3192, allocations: 159.9 MB / 1.068 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled): time 0.004948/0.3242, allocations: 2.93 MB / 1.071 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003486/0.3277, allocations: 2.196 MB / 1.073 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002202/0.328, allocations: 4 kB / 1.073 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000951/0.329, allocations: 247.1 kB / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002711/0.3293, allocations: 67.41 kB / 1.073 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001289/0.3306, allocations: 455.4 kB / 1.073 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007687/0.3314, allocations: 0.5181 MB / 1.074 GB, free: 4.309 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001501/0.3315, allocations: 48.73 kB / 1.074 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003484/0.3319, allocations: 203.4 kB / 1.074 GB, free: 4.059 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003563/0.3322, allocations: 211.3 kB / 1.074 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.000112/0.3324, allocations: 36 kB / 1.074 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000492/0.3329, allocations: 247.7 kB / 1.075 GB, free: 3.574 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002076/0.3331, allocations: 159.6 kB / 1.075 GB, free: 3.418 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002877/0.3334, allocations: 218.9 kB / 1.075 GB, free: 3.203 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008764/0.3343, allocations: 0.7516 MB / 1.076 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3343, allocations: 0 / 1.076 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.874e-06/0.3343, allocations: 4 kB / 1.076 GB, free: 2.445 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.548e-05/0.3343, allocations: 0 / 1.076 GB, free: 2.445 MB / 0.8262 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.001651/0.336, allocations: 0.8321 MB / 1.077 GB, free: 1.551 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.336, allocations: 8.031 kB / 1.077 GB, free: 1.543 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002343/0.3384, allocations: 236.1 kB / 1.077 GB, free: 1.312 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008831/0.3393, allocations: 426 kB / 1.077 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001722/0.3395, allocations: 83.92 kB / 1.077 GB, free: 0.7695 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.394e-05/0.3395, allocations: 12.38 kB / 1.077 GB, free: 0.7578 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/0.341, allocations: 0.534 MB / 1.078 GB, free: 224 kB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.3411, allocations: 0 / 1.078 GB, free: 224 kB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.215e-05/0.3411, allocations: 4 kB / 1.078 GB, free: 220 kB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.3411, allocations: 4 kB / 1.078 GB, free: 216 kB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002255/0.3434, allocations: 0.7611 MB / 1.079 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002939/0.3463, allocations: 1.276 MB / 1.08 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005569/0.3519, allocations: 1.009 MB / 1.081 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001052/0.353, allocations: 400.6 kB / 1.081 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.881e-05/0.3531, allocations: 7.922 kB / 1.081 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001294/0.3544, allocations: 0.5379 MB / 1.082 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=21): time 3.847e-06/0.3544, allocations: 0 / 1.082 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of matching and sorting (n=21): time 0.003329/0.3577, allocations: 1.176 MB / 1.083 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.854e-05/0.3578, allocations: 55.41 kB / 1.083 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008261/0.3587, allocations: 0.5175 MB / 1.083 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001199/0.3588, allocations: 41.69 kB / 1.084 GB, free: 10.33 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001993/0.359, allocations: 196.4 kB / 1.084 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.3591, allocations: 63.11 kB / 1.084 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001819/0.3593, allocations: 69.64 kB / 1.084 GB, free: 9.996 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000153/0.3595, allocations: 354.8 kB / 1.084 GB, free: 9.641 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001148/0.3606, allocations: 472.5 kB / 1.085 GB, free: 9.176 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001104/0.3617, allocations: 0.4915 MB / 1.085 GB, free: 8.68 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001853/0.3636, allocations: 0.7585 MB / 1.086 GB, free: 7.914 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.3636, allocations: 0 / 1.086 GB, free: 7.914 MB / 0.8419 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.003396/0.367, allocations: 1.077 MB / 1.087 GB, free: 6.824 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.768e-05/0.3671, allocations: 37.69 kB / 1.087 GB, free: 6.781 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.3671, allocations: 4 kB / 1.087 GB, free: 6.777 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.3672, allocations: 3.938 kB / 1.087 GB, free: 6.773 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006095/0.3678, allocations: 99.77 kB / 1.087 GB, free: 6.676 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.3678, allocations: 4 kB / 1.087 GB, free: 6.672 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006389/0.3684, allocations: 59.88 kB / 1.087 GB, free: 6.613 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.126e-05/0.3685, allocations: 15.97 kB / 1.087 GB, free: 6.598 MB / 0.8419 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.00039/0.3689, allocations: 214.5 kB / 1.087 GB, free: 6.379 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001568/0.3691, allocations: 47.44 kB / 1.087 GB, free: 6.332 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001315/0.3692, allocations: 59.84 kB / 1.087 GB, free: 6.27 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.3692, allocations: 0 / 1.087 GB, free: 6.27 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.3692, allocations: 0 / 1.087 GB, free: 6.27 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.3693, allocations: 0 / 1.087 GB, free: 6.27 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000841/0.3701, allocations: 0.6414 MB / 1.088 GB, free: 5.578 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.3701, allocations: 0 / 1.088 GB, free: 5.578 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006073/0.3707, allocations: 87.89 kB / 1.088 GB, free: 5.492 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.3707, allocations: 0 / 1.088 GB, free: 5.492 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.067e-05/0.3708, allocations: 19.91 kB / 1.088 GB, free: 5.473 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.3708, allocations: 0 / 1.088 GB, free: 5.473 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.3708, allocations: 0 / 1.088 GB, free: 5.473 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002271/0.3731, allocations: 0.8416 MB / 1.089 GB, free: 4.613 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003343/0.3734, allocations: 180.5 kB / 1.089 GB, free: 4.418 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/0.3736, allocations: 19.92 kB / 1.089 GB, free: 4.398 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005937/0.3742, allocations: 55.92 kB / 1.089 GB, free: 4.344 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.3743, allocations: 27.97 kB / 1.089 GB, free: 4.316 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-05/0.3744, allocations: 11.98 kB / 1.089 GB, free: 4.305 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005369/0.3749, allocations: 395 kB / 1.09 GB, free: 3.918 MB / 0.8419 GB Notification: Performance of sort global known variables: time 4.21e-07/0.3749, allocations: 0 / 1.09 GB, free: 3.918 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004813/0.3754, allocations: 99.98 kB / 1.09 GB, free: 3.82 MB / 0.8419 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.0003814/0.3758, allocations: 148.4 kB / 1.09 GB, free: 3.668 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002328/0.3781, allocations: 0.9661 MB / 1.091 GB, free: 2.691 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.3781, allocations: 0 / 1.091 GB, free: 2.691 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001022/0.3792, allocations: 419.6 kB / 1.091 GB, free: 2.281 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005729/0.3798, allocations: 93.83 kB / 1.091 GB, free: 2.191 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002588/0.3824, allocations: 1.15 MB / 1.092 GB, free: 1.012 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004884/0.3829, allocations: 0.8656 MB / 1.093 GB, free: 124 kB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0005973/0.3835, allocations: 131 kB / 1.093 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001859/0.3837, allocations: 47.34 kB / 1.093 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of SimCode: time 7.92e-07/0.3837, allocations: 0 / 1.093 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of Templates: time 0.01623/0.3999, allocations: 8.533 MB / 1.102 GB, free: 7.535 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.makefile (rm -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe ; mkfifo Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe >> ../files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.sim & ./Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_CoolingCapacityWaterCooled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches