Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.HeatExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.HeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.HeatExchanger") translateModel(Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.HeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.HeatExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.064/2.064, allocations: 391.2 MB / 407 MB, free: 10.92 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 191.5 kB / 499.1 MB, free: 4.672 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 0.7948 GB, free: 15.72 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 100.6 kB / 0.9329 GB, free: 7.066 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0009703/0.0009704, allocations: 48.16 kB / 1.081 GB, free: 218.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2254, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.HeatExchanger): time 0.7491/0.9746, allocations: 344.7 MB / 1.555 GB, free: 17.18 MB / 0.9167 GB Notification: Performance of NFInst.instExpressions: time 0.09891/1.074, allocations: 76.42 MB / 1.629 GB, free: 14.67 MB / 0.9792 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01865/1.092, allocations: 393.6 kB / 1.63 GB, free: 14.29 MB / 0.9792 GB Notification: Performance of NFTyping.typeComponents: time 0.01371/1.106, allocations: 3.7 MB / 1.633 GB, free: 10.57 MB / 0.9792 GB Notification: Performance of NFTyping.typeBindings: time 0.02963/1.136, allocations: 10.32 MB / 1.643 GB, free: 220 kB / 0.9792 GB Notification: Performance of NFTyping.typeClassSections: time 0.02216/1.158, allocations: 8.756 MB / 1.652 GB, free: 7.527 MB / 0.9948 GB Notification: Performance of NFFlatten.flatten: time 0.03323/1.191, allocations: 28.74 MB / 1.68 GB, free: 10.71 MB / 1.026 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01456/1.206, allocations: 6.667 MB / 1.687 GB, free: 3.941 MB / 1.026 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02116/1.227, allocations: 8.401 MB / 1.695 GB, free: 11.5 MB / 1.042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01199/1.239, allocations: 6.397 MB / 1.701 GB, free: 5.078 MB / 1.042 GB Notification: Performance of NFPackage.collectConstants: time 0.00354/1.243, allocations: 428 kB / 1.701 GB, free: 4.66 MB / 1.042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01456/1.257, allocations: 5.277 MB / 1.707 GB, free: 15.38 MB / 1.057 GB Notification: Performance of NFScalarize.scalarize: time 0.004138/1.261, allocations: 1.918 MB / 1.708 GB, free: 13.45 MB / 1.057 GB Notification: Performance of NFVerifyModel.verify: time 0.009719/1.271, allocations: 4.547 MB / 1.713 GB, free: 8.879 MB / 1.057 GB Notification: Performance of NFConvertDAE.convert: time 0.02495/1.296, allocations: 16.45 MB / 1.729 GB, free: 8.383 MB / 1.073 GB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/1.296, allocations: 0 / 1.729 GB, free: 8.383 MB / 1.073 GB Notification: Performance of FrontEnd: time 1.824e-06/1.296, allocations: 0 / 1.729 GB, free: 8.383 MB / 1.073 GB Notification: Performance of Transformations before backend: time 0.0005037/1.297, allocations: 0 / 1.729 GB, free: 8.383 MB / 1.073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1247 * Number of variables: 1247 Notification: Performance of Generate backend data structure: time 0.02463/1.321, allocations: 9.974 MB / 1.739 GB, free: 14.29 MB / 1.089 GB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/1.321, allocations: 11.98 kB / 1.739 GB, free: 14.28 MB / 1.089 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01009/1.331, allocations: 2.003 MB / 1.741 GB, free: 12.26 MB / 1.089 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01955/1.351, allocations: 8.323 MB / 1.749 GB, free: 3.863 MB / 1.089 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002371/1.353, allocations: 0.7836 MB / 1.75 GB, free: 3.078 MB / 1.089 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001894/1.355, allocations: 0.5194 MB / 1.75 GB, free: 2.559 MB / 1.089 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01665/1.372, allocations: 6.092 MB / 1.756 GB, free: 12.3 MB / 1.104 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000162/1.372, allocations: 7.938 kB / 1.756 GB, free: 12.3 MB / 1.104 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00111/1.373, allocations: 200 kB / 1.756 GB, free: 12.1 MB / 1.104 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000107/1.373, allocations: 124 kB / 1.756 GB, free: 11.98 MB / 1.104 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01438/1.388, allocations: 5.533 MB / 1.762 GB, free: 6.434 MB / 1.104 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.04972/1.438, allocations: 30.71 MB / 1.792 GB, free: 5.617 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008736/1.446, allocations: 3.69 MB / 1.795 GB, free: 1.879 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004554/1.451, allocations: 2.031 MB / 1.797 GB, free: 15.84 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01869/1.47, allocations: 10.59 MB / 1.808 GB, free: 4.355 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005327/1.475, allocations: 2.339 MB / 1.81 GB, free: 1.965 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003788/1.479, allocations: 0.8394 MB / 1.811 GB, free: 1.121 MB / 1.151 GB Notification: Performance of pre-optimization done (n=326): time 1.178e-05/1.479, allocations: 3.938 kB / 1.811 GB, free: 1.117 MB / 1.151 GB Notification: Performance of matching and sorting (n=326): time 0.01712/1.496, allocations: 6.587 MB / 1.817 GB, free: 10.42 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.819e-05/1.496, allocations: 175 kB / 1.817 GB, free: 10.22 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01277/1.509, allocations: 6.581 MB / 1.824 GB, free: 3.656 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0005548/1.509, allocations: 121.7 kB / 1.824 GB, free: 3.531 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.003874/1.513, allocations: 3.582 MB / 1.827 GB, free: 15.92 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.001197/1.515, allocations: 1.082 MB / 1.828 GB, free: 14.82 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002117/1.517, allocations: 0.9477 MB / 1.829 GB, free: 13.86 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 8.205e-05/1.517, allocations: 301.1 kB / 1.83 GB, free: 13.57 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005078/1.522, allocations: 2.046 MB / 1.832 GB, free: 11.5 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00605/1.528, allocations: 3.271 MB / 1.835 GB, free: 7.707 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01057/1.539, allocations: 5.164 MB / 1.84 GB, free: 2.062 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.283e-05/1.539, allocations: 12 kB / 1.84 GB, free: 2.051 MB / 1.182 GB Notification: Performance of matching and sorting (n=565) (initialization): time 0.01553/1.554, allocations: 6.386 MB / 1.846 GB, free: 11.61 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001082/1.554, allocations: 117.3 kB / 1.846 GB, free: 11.48 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.221e-05/1.554, allocations: 32 kB / 1.846 GB, free: 11.45 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006219/1.555, allocations: 173.6 kB / 1.846 GB, free: 11.27 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004468/1.559, allocations: 1.127 MB / 1.848 GB, free: 10.14 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008585/1.56, allocations: 1.229 MB / 1.849 GB, free: 8.859 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006452/1.567, allocations: 0.5988 MB / 1.849 GB, free: 8.262 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006404/1.567, allocations: 243.9 kB / 1.85 GB, free: 8.023 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.008869/1.576, allocations: 3.296 MB / 1.853 GB, free: 4.715 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.006109/1.582, allocations: 3.201 MB / 1.856 GB, free: 0.9922 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01219/1.595, allocations: 5.036 MB / 1.861 GB, free: 11.48 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.683e-05/1.595, allocations: 8 kB / 1.861 GB, free: 11.47 MB / 1.214 GB Notification: Performance of matching and sorting (n=565) (initialization_lambda0): time 0.01616/1.611, allocations: 6.207 MB / 1.867 GB, free: 5.211 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001192/1.611, allocations: 117.1 kB / 1.867 GB, free: 5.078 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.981e-05/1.611, allocations: 32 kB / 1.867 GB, free: 5.047 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003551/1.611, allocations: 129.8 kB / 1.867 GB, free: 4.914 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004592/1.616, allocations: 1.123 MB / 1.868 GB, free: 3.789 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002948/1.619, allocations: 3.109 MB / 1.871 GB, free: 420 kB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006543/1.626, allocations: 0.5876 MB / 1.872 GB, free: 15.82 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007769/1.626, allocations: 235.9 kB / 1.872 GB, free: 15.59 MB / 1.229 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 137 * Number of states: 0 () * Number of discrete variables: 44 (hexVal.hex.flowRegime_nominal,hexPum.hex.flowRegime_nominal,TSerWat.nextEventScaled,TSerWat.nextEvent,$PRE.TSerWat.nextEvent,TSerWat.last,TSerWat.b,TSerWat.a,THotVal.nextEventScaled,THotVal.nextEvent,$PRE.THotVal.nextEvent,THotVal.last,THotVal.b,THotVal.a,TColVal.nextEventScaled,TColVal.nextEvent,$PRE.TColVal.nextEvent,TColVal.last,TColVal.b,TColVal.a,or2.y,hexVal.hex.flowRegime,hexVal.con.or1.y,hexVal.con.cooRej.greHys.y,$PRE.hexVal.con.cooRej.greHys.y,hexVal.con.heaRej.greHys.y,$PRE.hexVal.con.heaRej.greHys.y,hexVal.con.and2.y,hexVal.con.greThr.greHys.y,$PRE.hexVal.con.greThr.greHys.y,hexPum.hex.flowRegime,hexPum.con.or1.y,hexPum.con.cooRej.greHys.y,$PRE.hexPum.con.cooRej.greHys.y,hexPum.con.heaRej.greHys.y,$PRE.hexPum.con.heaRej.greHys.y,hexPum.con.and2.y,hexPum.con.greThr.greHys.y,$PRE.hexPum.con.greThr.greHys.y,uEnaColRej.y,uHeaRej.y,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (539): * Single equations (assignments): 531 * Array equations: 3 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 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): 2 systems {(1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.001587/1.628, allocations: 0.5559 MB / 1.873 GB, free: 15.01 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002453/1.63, allocations: 0.7368 MB / 1.873 GB, free: 14.26 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01743/1.648, allocations: 6.416 MB / 1.88 GB, free: 7.902 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.812e-05/1.648, allocations: 47.97 kB / 1.88 GB, free: 7.855 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.265e-05/1.648, allocations: 0 / 1.88 GB, free: 7.855 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01144/1.659, allocations: 4.93 MB / 1.884 GB, free: 2.801 MB / 1.229 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 postOpt removeSimpleEquations (simulation): time 0.5233/2.183, allocations: 12.08 MB / 1.896 GB, free: 482.7 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.688e-05/2.183, allocations: 6.422 kB / 1.896 GB, free: 482.7 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003561/2.186, allocations: 0.7618 MB / 1.897 GB, free: 482.7 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002743/2.187, allocations: 104.3 kB / 1.897 GB, free: 482.6 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003844/2.187, allocations: 119.2 kB / 1.897 GB, free: 482.6 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005517/2.188, allocations: 1.168 MB / 1.898 GB, free: 481.5 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/2.188, allocations: 7.156 kB / 1.898 GB, free: 481.5 MB / 1.229 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/Differentiate.mo:267:5-267:157:writable] Error: Derivative of expression "hexPum.hex.flowRegime = if hexPum.hex.C1_flow * hexPum.hex.C2_flow >= 0.0 then Buildings.Fluid.Types.HeatExchangerFlowRegime.CounterFlow else Buildings.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.04183/2.23, allocations: 15.72 MB / 1.914 GB, free: 475.9 MB / 1.229 GB Error: post-optimization module symbolicJacobian (simulation) failed.