Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.WetCoilEffectivenessNTU.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.HeatExchangers.Validation.WetCoilEffectivenessNTU,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.WetCoilEffectivenessNTU") translateModel(BuildingSystems.Fluid.HeatExchangers.Validation.WetCoilEffectivenessNTU,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.WetCoilEffectivenessNTU") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7735/0.7735, allocations: 141.8 MB / 149.1 MB, free: 3.355 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 174.2 kB / 181.9 MB, free: 15.18 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 221.4 MB / 436 MB, free: 8.273 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000957/0.0009569, allocations: 97.69 kB / 0.507 GB, free: 24.33 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001755/0.001755, allocations: 270.6 kB / 0.5884 GB, free: 11.39 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.04e-05/1.043e-05, allocations: 3.938 kB / 0.6759 GB, free: 1.758 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4609/0.4609, allocations: 82.76 MB / 0.7567 GB, free: 112 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.266/5.727, allocations: 2.255 GB / 3.012 GB, free: 91.66 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003377/5.728, allocations: 87.89 kB / 3.012 GB, free: 91.58 MB / 0.6982 GB Notification: Performance of FrontEnd: time 9.768/15.5, allocations: 2.497 GB / 5.509 GB, free: 46.77 MB / 0.7919 GB Notification: Performance of Transformations before backend: time 0.0006788/15.5, allocations: 104 kB / 5.509 GB, free: 46.76 MB / 0.7919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 851 * Number of variables: 851 Notification: Performance of Generate backend data structure: time 0.02629/15.52, allocations: 5.004 MB / 5.514 GB, free: 44.36 MB / 0.7919 GB Notification: Performance of prepare preOptimizeDAE: time 8.142e-05/15.52, allocations: 8.75 kB / 5.514 GB, free: 44.36 MB / 0.7919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03478/15.56, allocations: 4.792 MB / 5.519 GB, free: 44.09 MB / 0.7919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01679/15.57, allocations: 4.272 MB / 5.523 GB, free: 43.33 MB / 0.7919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001553/15.58, allocations: 430.6 kB / 5.524 GB, free: 43.32 MB / 0.7919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002133/15.58, allocations: 212.5 kB / 5.524 GB, free: 43.32 MB / 0.7919 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01137/15.59, allocations: 4.473 MB / 5.528 GB, free: 43.3 MB / 0.7919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009701/15.6, allocations: 4.212 MB / 5.532 GB, free: 42.97 MB / 0.7919 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.076e-05/15.6, allocations: 0 / 5.532 GB, free: 42.97 MB / 0.7919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004713/15.6, allocations: 2.375 kB / 5.532 GB, free: 42.97 MB / 0.7919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001461/15.6, allocations: 142.3 kB / 5.532 GB, free: 42.96 MB / 0.7919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04672/15.65, allocations: 21.73 MB / 5.554 GB, free: 35.18 MB / 0.7919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005156/15.65, allocations: 3.04 MB / 5.557 GB, free: 35.01 MB / 0.7919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002484/15.65, allocations: 1.577 MB / 5.558 GB, free: 34.99 MB / 0.7919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01728/15.67, allocations: 8.348 MB / 5.566 GB, free: 30.35 MB / 0.7919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003188/15.67, allocations: 1.734 MB / 5.568 GB, free: 29.67 MB / 0.7919 GB Notification: Performance of pre-optimization done (n=233): time 6.503e-06/15.67, allocations: 0 / 5.568 GB, free: 29.67 MB / 0.7919 GB Notification: Performance of matching and sorting (n=233): time 0.01696/15.69, allocations: 4.439 MB / 5.572 GB, free: 28.12 MB / 0.7919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/15.69, allocations: 77.34 kB / 5.572 GB, free: 28.05 MB / 0.7919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Media/package.mo:5870:7-5870:44:writable] Warning: Parameter hexWetNTU.UAFroRated.staWat.T has no value, and is fixed during initialization (fixed=true), using available start value (start=293.15) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Media/package.mo:5869:7-5869:55:writable] Warning: Parameter hexWetNTU.UAFroRated.staWat.p has no value, and is fixed during initialization (fixed=true), using available start value (start=300000.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Media/package.mo:5093:7-5094:64:writable] Warning: Parameter hexWetNTU.UAFroRated.staAir.X[2] has no value, and is fixed during initialization (fixed=true), using available start value (start=0.99) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Media/package.mo:5093:7-5094:64:writable] Warning: Parameter hexWetNTU.UAFroRated.staAir.X[1] has no value, and is fixed during initialization (fixed=true), using available start value (start=0.01) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Media/package.mo:5092:7-5092:44:writable] Warning: Parameter hexWetNTU.UAFroRated.staAir.T has no value, and is fixed during initialization (fixed=true), using available start value (start=293.15) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Media/package.mo:5091:7-5091:55:writable] Warning: Parameter hexWetNTU.UAFroRated.staAir.p has no value, and is fixed during initialization (fixed=true), using available start value (start=101325.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007931/15.7, allocations: 2.69 MB / 5.575 GB, free: 26.91 MB / 0.7919 GB Notification: Performance of collectPreVariables (initialization): time 0.001328/15.7, allocations: 30.17 kB / 5.575 GB, free: 26.88 MB / 0.7919 GB Notification: Performance of collectInitialEqns (initialization): time 0.001654/15.7, allocations: 1.321 MB / 5.576 GB, free: 25.94 MB / 0.7919 GB Notification: Performance of collectInitialBindings (initialization): time 0.001769/15.7, allocations: 0.7642 MB / 5.577 GB, free: 25.34 MB / 0.7919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004556/15.7, allocations: 0.7812 kB / 5.577 GB, free: 25.34 MB / 0.7919 GB Notification: Performance of setup shared object (initialization): time 0.0002363/15.71, allocations: 437.2 kB / 5.578 GB, free: 24.97 MB / 0.7919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003732/15.71, allocations: 1.627 MB / 5.579 GB, free: 24.05 MB / 0.7919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003501/15.71, allocations: 2.308 MB / 5.581 GB, free: 21.6 MB / 0.7919 GB Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.00726/15.72, allocations: 2.685 MB / 5.584 GB, free: 19.33 MB / 0.7919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.107e-05/15.72, allocations: 4 kB / 5.584 GB, free: 19.33 MB / 0.7919 GB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01741/15.74, allocations: 5.619 MB / 5.589 GB, free: 14.45 MB / 0.7919 GB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/15.74, allocations: 4 kB / 5.589 GB, free: 14.44 MB / 0.7919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.653e-05/15.74, allocations: 16 kB / 5.59 GB, free: 14.43 MB / 0.7919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004366/15.74, allocations: 1.157 MB / 5.591 GB, free: 13.52 MB / 0.7919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009653/15.75, allocations: 1.405 MB / 5.592 GB, free: 12.41 MB / 0.7919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01288/15.76, allocations: 13.46 MB / 5.605 GB, free: 14.54 MB / 0.8075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0132/15.78, allocations: 1.216 MB / 5.606 GB, free: 13.57 MB / 0.8075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001756/15.78, allocations: 176.5 kB / 5.607 GB, free: 13.43 MB / 0.8075 GB Warning: Assuming redundant initial conditions for the following 2 initial equations: hexWetNTU.UAFroRated.hAirOut = 45300.945 hexWetNTU.UAFroRated.X_wAirIn = 0.01 Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: hexWetNTU_TX.UAFroRated.cpEff:VARIABLE(min = 0.0 unit = "J/(kg.K)" fixed = false protected = true ) "Effective specific heat: change in saturated moist air enthalpy with respect to temperature along the saturation line between inlet and outlet water temperatures" type: Real hexWetNTU_TX.UAFroRated.LMED:VARIABLE(unit = "J/kg" fixed = false protected = true ) "Log mean enthalpy difference" type: Real hexWetNTU_TX.UAFroRated.UA:VARIABLE(unit = "W/K" protected = true ) = hexWetNTU_TX.UA_nominal "Overall heat transfer coefficient for a fully dry condition" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hexWetNTU_TX.heaCoo.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true final = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hexWetNTU_TX.heaCooHum_u.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true final = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hexWetNTU.heaCoo.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true final = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hexWetNTU.heaCooHum_u.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true final = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 13 (hexWetNTU.UAFroRated.isFulDry,hexWetNTU.UAFroRated.isFulWet,hexWetNTU.flowRegime_nominal,hexWetNTU_TX.flowRegime_nominal,$whenCondition1,$PRE.w_a2.nextTimeEvent,hexWetNTU.flowRegime,hexWetNTU_TX.flowRegime,w_a2.nextTimeEvent,$PRE.w_a2.nextTimeEventScaled,w_a2.nextTimeEventScaled,hexWetNTU_TX.UAFroRated.isFulDry,hexWetNTU_TX.UAFroRated.isFulWet) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (376): * Single equations (assignments): 364 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {3,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {1 1,1 2,1 2,1 4,1 4,1 2,1 4,1 4,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.001254/15.78, allocations: 202.8 kB / 5.607 GB, free: 13.25 MB / 0.8075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002086/15.78, allocations: 359.6 kB / 5.607 GB, free: 12.89 MB / 0.8075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01826/15.8, allocations: 4.996 MB / 5.612 GB, free: 8.828 MB / 0.8075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.551e-05/15.8, allocations: 27.81 kB / 5.612 GB, free: 8.805 MB / 0.8075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/15.8, allocations: 0 / 5.612 GB, free: 8.805 MB / 0.8075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.987e-05/15.8, allocations: 13.45 kB / 5.612 GB, free: 8.805 MB / 0.8075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03073/15.83, allocations: 9.48 MB / 5.621 GB, free: 1.328 MB / 0.8075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.253e-05/15.83, allocations: 8.062 kB / 5.621 GB, free: 1.32 MB / 0.8075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0061/15.84, allocations: 0.6954 MB / 5.622 GB, free: 0.7812 MB / 0.8075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00483/15.84, allocations: 0.9748 MB / 5.623 GB, free: 8 kB / 0.8075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001122/15.84, allocations: 66.48 kB / 5.623 GB, free: 0 / 0.8075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5832/16.43, allocations: 11.56 MB / 5.634 GB, free: 102.9 MB / 0.8075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.188e-05/16.43, allocations: 8.344 kB / 5.634 GB, free: 102.9 MB / 0.8075 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01912/16.45, allocations: 6.919 MB / 5.641 GB, free: 102.1 MB / 0.8075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003595/16.45, allocations: 1.07 MB / 5.642 GB, free: 102 MB / 0.8075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001223/16.45, allocations: 13.78 kB / 5.642 GB, free: 102 MB / 0.8075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006743/16.46, allocations: 0.6498 MB / 5.643 GB, free: 102 MB / 0.8075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003356/16.46, allocations: 134.5 kB / 5.643 GB, free: 102 MB / 0.8075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003742/16.46, allocations: 112.5 kB / 5.643 GB, free: 102 MB / 0.8075 GB Notification: Performance of sort global known variables: time 0.00364/16.46, allocations: 1.946 MB / 5.645 GB, free: 101.9 MB / 0.8075 GB Notification: Performance of remove unused functions: time 0.008318/16.47, allocations: 1.882 MB / 5.647 GB, free: 101.8 MB / 0.8075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (relHumIn.phi,TDryBulIn.T,senMasFraIn.X,senMasFraOut.X,TDryBulOut.T,hexWetNTU.dryWetCalcs.fullyWet.TWatOutEst,relHumOut_eps.phi,hexWetNTU_TX.dryWetCalcs.fullyWet.TWatOutEst) * Number of discrete variables: 5 ($whenCondition1,hexWetNTU.flowRegime,hexWetNTU_TX.flowRegime,w_a2.nextTimeEvent,w_a2.nextTimeEventScaled) * Number of discrete states: 2 (w_a2.nextTimeEvent,w_a2.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (221): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 10 {1 4,1 4,1 2,1 1,1 4,1 4,1 2,1 1,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.009607/16.48, allocations: 6.071 MB / 5.653 GB, free: 99.36 MB / 0.8075 GB Error: Internal error function createNonlinearResidualEquations failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3706:7-3706:48:writable] Error: Internal error createOdeSystem2 failed for Generic Jacobian via directional derivatives [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3599:9-3599:50:writable] Error: Internal error function createOdeSystem failed for component {12, 11, 10:35, 34, 36, 33, 32, 31, 37} Size: 3 Generic Jacobian via directional derivatives [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1356:5-1356:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:596:5-596:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]