Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WetCoilEffectivenessNTUMassFlow.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.Examples.WetCoilEffectivenessNTUMassFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WetCoilEffectivenessNTUMassFlow") translateModel(BuildingSystems.Fluid.HeatExchangers.Examples.WetCoilEffectivenessNTUMassFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WetCoilEffectivenessNTUMassFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9404/0.9404, allocations: 143.4 MB / 159.2 MB, free: 4.867 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 184.5 kB / 191.9 MB, free: 5.727 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 222.9 MB / 447.3 MB, free: 5.836 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009837/0.0009836, allocations: 103.7 kB / 0.517 GB, free: 3.711 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002015/0.002015, allocations: 281.8 kB / 0.5973 GB, free: 49.37 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 79.88 kB / 0.6885 GB, free: 3.84 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3037/0.305, allocations: 81.29 MB / 0.7679 GB, free: 27.65 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.Examples.WetCoilEffectivenessNTUMassFlow): time 0.5367/0.8418, allocations: 248.4 MB / 1.011 GB, free: 2.996 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.02626/0.8681, allocations: 19.5 MB / 1.03 GB, free: 1.023 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003493/0.8716, allocations: 67.56 kB / 1.03 GB, free: 0.957 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.003138/0.8747, allocations: 0.9793 MB / 1.031 GB, free: 15.97 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.01042/0.8852, allocations: 3.701 MB / 1.034 GB, free: 12.26 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.006192/0.8914, allocations: 2.164 MB / 1.036 GB, free: 10.11 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.00802/0.8995, allocations: 6.536 MB / 1.043 GB, free: 3.559 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002954/0.9024, allocations: 1.595 MB / 1.044 GB, free: 1.926 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007259/0.9097, allocations: 2.087 MB / 1.046 GB, free: 15.85 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003294/0.913, allocations: 1.65 MB / 1.048 GB, free: 14.2 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0007439/0.9138, allocations: 116 kB / 1.048 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008548/0.9223, allocations: 4.646 MB / 1.053 GB, free: 9.43 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0009391/0.9233, allocations: 0.568 MB / 1.053 GB, free: 8.859 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.002423/0.9257, allocations: 1.251 MB / 1.054 GB, free: 7.602 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.009402/0.9352, allocations: 5.384 MB / 1.06 GB, free: 2.203 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.9352, allocations: 0 / 1.06 GB, free: 2.203 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.263e-06/0.9352, allocations: 0 / 1.06 GB, free: 2.203 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 0.000109/0.9353, allocations: 0 / 1.06 GB, free: 2.203 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 421 * Number of variables: 421 Notification: Performance of Generate backend data structure: time 0.008092/0.9434, allocations: 3.307 MB / 1.063 GB, free: 14.81 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.9435, allocations: 8.031 kB / 1.063 GB, free: 14.8 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01536/0.9588, allocations: 2.135 MB / 1.065 GB, free: 12.66 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004697/0.9636, allocations: 1.87 MB / 1.067 GB, free: 10.74 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007879/0.9644, allocations: 251.5 kB / 1.067 GB, free: 10.49 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005184/0.9649, allocations: 176 kB / 1.067 GB, free: 10.32 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007736/0.9727, allocations: 2.872 MB / 1.07 GB, free: 7.406 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.985e-05/0.9727, allocations: 4 kB / 1.07 GB, free: 7.402 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002153/0.9729, allocations: 71.94 kB / 1.07 GB, free: 7.332 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.065e-05/0.973, allocations: 63.19 kB / 1.07 GB, free: 7.27 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0108/0.9838, allocations: 3.424 MB / 1.073 GB, free: 3.84 MB / 0.6355 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01614/1, allocations: 9.086 MB / 1.082 GB, free: 10.3 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008291/1.008, allocations: 2.519 MB / 1.085 GB, free: 7.785 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004762/1.013, allocations: 1.523 MB / 1.086 GB, free: 6.262 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01086/1.024, allocations: 5.266 MB / 1.091 GB, free: 0.668 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004853/1.029, allocations: 1.725 MB / 1.093 GB, free: 14.91 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=150): time 3.347e-06/1.029, allocations: 0 / 1.093 GB, free: 14.91 MB / 0.6667 GB Notification: Performance of matching and sorting (n=150): time 0.02036/1.049, allocations: 5.109 MB / 1.098 GB, free: 9.738 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/1.049, allocations: 153.8 kB / 1.098 GB, free: 9.559 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002756/1.052, allocations: 1.657 MB / 1.1 GB, free: 7.902 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0004576/1.053, allocations: 61.7 kB / 1.1 GB, free: 7.836 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008004/1.054, allocations: 0.8385 MB / 1.101 GB, free: 6.984 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006244/1.054, allocations: 0.489 MB / 1.101 GB, free: 6.488 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008655/1.055, allocations: 427.1 kB / 1.102 GB, free: 6.062 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.000117/1.055, allocations: 309.1 kB / 1.102 GB, free: 5.758 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004679/1.06, allocations: 1.441 MB / 1.103 GB, free: 4.312 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005109/1.065, allocations: 1.776 MB / 1.105 GB, free: 2.426 MB / 0.6667 GB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01196/1.077, allocations: 3.691 MB / 1.109 GB, free: 14.61 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.606e-05/1.077, allocations: 4 kB / 1.109 GB, free: 14.61 MB / 0.6823 GB Notification: Performance of matching and sorting (n=234) (initialization): time 0.01341/1.09, allocations: 3.976 MB / 1.113 GB, free: 10.6 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.643e-05/1.091, allocations: 71.39 kB / 1.113 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.012e-05/1.091, allocations: 8 kB / 1.113 GB, free: 10.51 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00128/1.092, allocations: 343.3 kB / 1.113 GB, free: 10.16 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004632/1.096, allocations: 0.7333 MB / 1.114 GB, free: 9.43 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006594/1.103, allocations: 5.947 MB / 1.119 GB, free: 3.027 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004457/1.108, allocations: 0.4888 MB / 1.12 GB, free: 2.539 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003846/1.108, allocations: 99.91 kB / 1.12 GB, free: 2.441 MB / 0.6823 GB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: hex.UAFroRated.TAirIn = 293.15 hex.UAFroRated.TWatIn = 293.15. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005568/1.114, allocations: 1.837 MB / 1.122 GB, free: 0.6016 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005022/1.119, allocations: 1.772 MB / 1.124 GB, free: 14.72 MB / 0.698 GB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01161/1.13, allocations: 3.669 MB / 1.127 GB, free: 10.93 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.255e-05/1.13, allocations: 11.94 kB / 1.127 GB, free: 10.92 MB / 0.698 GB Notification: Performance of matching and sorting (n=234) (initialization_lambda0): time 0.0134/1.144, allocations: 3.972 MB / 1.131 GB, free: 6.906 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 6.42e-05/1.144, allocations: 75.38 kB / 1.131 GB, free: 6.82 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/1.144, allocations: 8 kB / 1.131 GB, free: 6.812 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/1.145, allocations: 339.3 kB / 1.131 GB, free: 6.469 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004629/1.15, allocations: 0.7373 MB / 1.132 GB, free: 5.73 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006693/1.156, allocations: 5.944 MB / 1.138 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004352/1.161, allocations: 462.4 kB / 1.138 GB, free: 14.89 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005235/1.161, allocations: 95.92 kB / 1.138 GB, free: 14.79 MB / 0.7136 GB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization_lambda0 system: hex.UAFroRated.TAirIn = 293.15 hex.UAFroRated.TWatIn = 293.15. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 18 (hex.UAFroRated.isFulWet,hex.UAFroRated.isFulDry,hex.flowRegime_nominal,hex.flowRegime,mAirGai.nextEventScaled,mAirGai.nextEvent,$PRE.mAirGai.nextEvent,mAirGai.last,mAirGai.b,mAirGai.a,mWatGai.nextEventScaled,mWatGai.nextEvent,$PRE.mWatGai.nextEvent,mWatGai.last,mWatGai.b,mWatGai.a,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 203 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,1), (1,3), (1,4), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0008981/1.162, allocations: 356.6 kB / 1.139 GB, free: 14.43 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007187/1.163, allocations: 209.5 kB / 1.139 GB, free: 14.22 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01279/1.176, allocations: 3.821 MB / 1.143 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.101e-05/1.176, allocations: 12 kB / 1.143 GB, free: 10.35 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/1.176, allocations: 4 kB / 1.143 GB, free: 10.35 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-05/1.176, allocations: 7.969 kB / 1.143 GB, free: 10.34 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01739/1.193, allocations: 6.587 MB / 1.149 GB, free: 3.633 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-05/1.193, allocations: 7.938 kB / 1.149 GB, free: 3.625 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003059/1.196, allocations: 471.7 kB / 1.15 GB, free: 3.164 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001221/1.198, allocations: 298.3 kB / 1.15 GB, free: 2.863 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002763/1.198, allocations: 55.94 kB / 1.15 GB, free: 2.809 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005098/1.203, allocations: 3.973 MB / 1.154 GB, free: 14.54 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/1.203, allocations: 8.094 kB / 1.154 GB, free: 14.53 MB / 0.7292 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/Differentiate.mo:267:5-267:157:writable] Error: Derivative of expression "hex.flowRegime = if hex.C1_flow * hex.C2_flow >= 0.0 then BuildingSystems.Fluid.Types.HeatExchangerFlowRegime.CounterFlow else BuildingSystems.Fluid.Types.HeatExchangerFlowRegime.ParallelFlow" w.r.t. "dummyVarA" is non-existent. Error: Internal error SymbolicJacobian.deriveAll failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2440:7-2440:87:writable] Error: Internal error function generateSymbolicJacobian failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2231:9-2231:79:writable] Error: Internal error function createJacobian failed Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05898/1.262, allocations: 12.54 MB / 1.166 GB, free: 1.801 MB / 0.7292 GB Error: post-optimization module symbolicJacobian (simulation) failed.