Running command: translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 1.056/1.056, allocations: 111.1 MB / 126.3 MB, free: 6.406 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.331e-05/3.32e-05, allocations: 8 kB / 154.5 MB, free: 2.844 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05777/0.05783, allocations: 25.18 MB / 179.7 MB, free: 9.629 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.289/0.3469, allocations: 87.81 MB / 267.5 MB, free: 11.83 MB / 218.7 MB Notification: Performance of NFInst.instExpressions: time 0.3369/0.6839, allocations: 33.61 MB / 301.1 MB, free: 4.031 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005237/0.6892, allocations: 134.5 kB / 301.2 MB, free: 4.031 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006434/0.6957, allocations: 1.054 MB / 302.3 MB, free: 4.027 MB / 234.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Fluid/Vessels.mo:284:9-285:134:writable] Warning: Conditional component portsData is used in a non-connect context. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Fluid/Vessels.mo:286:9-286:130:writable] Warning: Conditional component portsData is used in a non-connect context. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Fluid/Vessels.mo:287:9-287:132:writable] Warning: Conditional component portsData is used in a non-connect context. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Fluid/Vessels.mo:288:9-289:134:writable] Warning: Conditional component portsData is used in a non-connect context. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Fluid/Machines.mo:422:5-423:45:writable] Warning: Conditional component state_a is used in a non-connect context. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Fluid/Machines.mo:424:5-425:46:writable] Warning: Conditional component NPSPa is used in a non-connect context. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Fluid/Machines.mo:424:5-425:46:writable] Warning: Conditional component rho_in is used in a non-connect context. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Fluid/Machines.mo:426:5-428:50:writable] Warning: Conditional component state_a is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.0349/0.7307, allocations: 5.775 MB / 308.1 MB, free: 3.902 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03282/0.7636, allocations: 5.704 MB / 313.8 MB, free: 3.758 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.01267/0.7763, allocations: 3.174 MB / 316.9 MB, free: 3.34 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004415/0.7808, allocations: 1.175 MB / 318.1 MB, free: 2.887 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009284/0.7901, allocations: 1.874 MB / 320 MB, free: 2.617 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.08693/0.8771, allocations: 23.3 MB / 343.3 MB, free: 4.457 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0431/0.9203, allocations: 11.64 MB / 354.9 MB, free: 10.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004623/0.925, allocations: 0.5469 MB / 355.5 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002146/0.9272, allocations: 0.7895 MB / 356.3 MB, free: 9.773 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001716/0.9289, allocations: 304 kB / 356.6 MB, free: 9.477 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01757/0.9465, allocations: 6.211 MB / 362.8 MB, free: 4.168 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.9466, allocations: 0 / 362.8 MB, free: 4.168 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.9466, allocations: 0 / 362.8 MB, free: 4.168 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.337e-05/0.9467, allocations: 4 kB / 362.8 MB, free: 4.164 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 573 * Number of variables: 573 Notification: Performance of Generate backend data structure: time 0.01275/0.9594, allocations: 3.331 MB / 366.1 MB, free: 1.008 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.9595, allocations: 8.031 kB / 366.1 MB, free: 1 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001161/0.9607, allocations: 305.9 kB / 366.4 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005103/0.9658, allocations: 1.606 MB / 368 MB, free: 15.45 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004861/0.9663, allocations: 265.8 kB / 368.3 MB, free: 15.25 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006979/0.967, allocations: 228.8 kB / 368.5 MB, free: 15.1 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0104/0.9774, allocations: 3.713 MB / 372.2 MB, free: 12.31 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.767e-05/0.9776, allocations: 6.906 kB / 372.2 MB, free: 12.3 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003614/0.978, allocations: 92 kB / 372.3 MB, free: 12.28 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000439/0.9784, allocations: 204.2 kB / 372.5 MB, free: 12.1 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01098/0.9894, allocations: 3.698 MB / 376.2 MB, free: 9.559 MB / 282.7 MB 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.03203/1.021, allocations: 16.86 MB / 393.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007061/1.029, allocations: 2.26 MB / 395.3 MB, free: 8.895 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2784/1.307, allocations: 44.34 MB / 439.7 MB, free: 110.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.665e-05/1.307, allocations: 55.97 kB / 439.7 MB, free: 110.3 MB / 298.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001298/1.308, allocations: 169.9 kB / 439.9 MB, free: 110.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=182): time 7.033e-06/1.308, allocations: 3.375 kB / 439.9 MB, free: 110.3 MB / 298.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pump.medium.p 2: tank.level 3: tank.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=238): time 0.4356/1.744, allocations: 30.86 MB / 470.8 MB, free: 80.47 MB / 298.7 MB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of inlineWhenForInitialization (initialization): time 0.01166/1.756, allocations: 2.094 MB / 472.8 MB, free: 78.34 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00269/1.758, allocations: 1.401 MB / 474.2 MB, free: 76.94 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000661/1.759, allocations: 65.7 kB / 474.3 MB, free: 76.87 MB / 298.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Fluid/Valves.mo:368:7-373:78:writable] Warning: The parameter valve.Av has fixed = false, a start value, start = valve.m_flow_nominal / sqrt(valve.rho_nominal * valve.dp_nominal) * Modelica.Fluid.Examples.HeatingSystem.valve.valveCharacteristic(valve.opening_nominal) and a binding equation valve.Av = 0.0, which is probably redundant. The binding equation will be ignored, as it is expected for Modelica 3.1. Notification: Performance of collectInitialEqns (initialization): time 0.0008068/1.76, allocations: 0.9679 MB / 475.3 MB, free: 75.9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001259/1.761, allocations: 0.8152 MB / 476.1 MB, free: 75.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003594/1.762, allocations: 48.7 kB / 476.1 MB, free: 75.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001791/1.762, allocations: 419.8 kB / 476.6 MB, free: 74.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006432/1.768, allocations: 2.062 MB / 478.6 MB, free: 72.56 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006916/1.775, allocations: 2.559 MB / 481.2 MB, free: 69.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1149/1.89, allocations: 11.96 MB / 493.1 MB, free: 57.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.497e-05/1.89, allocations: 4 kB / 493.1 MB, free: 57.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=320) (initialization): time 0.02211/1.912, allocations: 6.62 MB / 499.8 MB, free: 51.14 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.635e-05/1.913, allocations: 8 kB / 499.8 MB, free: 51.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.065e-05/1.913, allocations: 16 kB / 499.8 MB, free: 51.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04398/1.957, allocations: 6.953 MB / 0.4949 GB, free: 44.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002864/1.959, allocations: 343.5 kB / 0.4952 GB, free: 43.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02112/1.981, allocations: 7.72 MB / 0.5027 GB, free: 36.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006077/1.987, allocations: 407.2 kB / 0.5031 GB, free: 35.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009101/1.988, allocations: 141 kB / 0.5033 GB, free: 35.49 MB / 298.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.heater.mediums[1].p = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 14 (radiator.state_b.phase,heater.state_a.phase,valve.state_b.phase,valve.state_a.phase,tank.heatTransfer.states[1].phase,pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[1].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.state_b.phase,pipe.state_a.phase,radiator.state_a.phase,heater.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (159): * Single equations (assignments): 154 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 11,20 124} Notification: Performance of prepare postOptimizeDAE: time 0.002661/1.99, allocations: 0.6883 MB / 0.5039 GB, free: 34.79 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001049/1.992, allocations: 221.3 kB / 0.5041 GB, free: 34.57 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02821/2.02, allocations: 10.17 MB / 0.5141 GB, free: 24.28 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02304/2.043, allocations: 8.817 MB / 0.5227 GB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-05/2.043, allocations: 0 / 0.5227 GB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02282/2.066, allocations: 8.959 MB / 0.5314 GB, free: 6.234 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2187/2.285, allocations: 17.23 MB / 0.5483 GB, free: 126.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.532e-05/2.285, allocations: 3.938 kB / 0.5483 GB, free: 126.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005501/2.29, allocations: 410.2 kB / 0.5486 GB, free: 126.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04389/2.334, allocations: 4.902 MB / 0.5534 GB, free: 125.8 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008049/2.335, allocations: 110.8 kB / 0.5535 GB, free: 125.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01998/2.355, allocations: 8.896 MB / 0.5622 GB, free: 120.1 MB / 298.7 MB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01598/2.371, allocations: 2.324 MB / 0.5645 GB, free: 119 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04492/2.416, allocations: 12.89 MB / 0.5771 GB, free: 108.9 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004013/2.42, allocations: 0.9356 MB / 0.578 GB, free: 108.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001624/2.422, allocations: 59.98 kB / 0.5781 GB, free: 108.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006012/2.428, allocations: 332.1 kB / 0.5784 GB, free: 107.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001047/2.429, allocations: 257.5 kB / 0.5786 GB, free: 107.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006211/2.43, allocations: 115.9 kB / 0.5787 GB, free: 107.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.002301/2.432, allocations: 1.08 MB / 0.5798 GB, free: 106.4 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.182e-06/2.432, allocations: 0 / 0.5798 GB, free: 106.4 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.01041/2.442, allocations: 2.957 MB / 0.5827 GB, free: 103.7 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 ($STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],radiator.mediums[1].p,radiator.mediums[1].h,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h) * Number of discrete variables: 40 ($cse3.phase,$cse6.phase,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse21.phase,$cse24.phase,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse33.phase,$cse33.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse47.phase,$cse47.region,$cse50.phase,$cse50.region,$cse54.phase,$cse54.region,$cse57.phase,$cse57.region,$cse58.phase,$cse61.phase,$cse61.region,$cse64.phase,tank.heatTransfer.states[1].phase,pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[1].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (214): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 1,1 1,2 9,4 16,2 4,2 12,1 1,7 33} Notification: Performance of Backend phase and start with SimCode phase: time 0.01496/2.457, allocations: 2.881 MB / 0.5855 GB, free: 101.4 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.02113/2.479, allocations: 6.17 MB / 0.5915 GB, free: 95.19 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/2.479, allocations: 0 / 0.5915 GB, free: 95.19 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01461/2.493, allocations: 4.153 MB / 0.5956 GB, free: 91.05 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009601/2.503, allocations: 1.091 MB / 0.5966 GB, free: 90.02 MB / 298.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4485:9-4485:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:742:5-742:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]