Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial") Notification: Performance of loadModel(ModelicaTest): time 2.645/2.645, allocations: 234.9 MB / 250.1 MB, free: 10.92 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.073e-05/3.066e-05, allocations: 0 / 308 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.3687, allocations: 54.88 MB / 362.9 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial): time 0.1509/0.5197, allocations: 88.58 MB / 451.4 MB, free: 3.094 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.4632/0.9829, allocations: 35.44 MB / 486.9 MB, free: 7.145 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004151/0.9871, allocations: 107.3 kB / 487 MB, free: 7.145 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005308/0.9925, allocations: 1.147 MB / 488.1 MB, free: 7.141 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02534/1.018, allocations: 5.704 MB / 493.8 MB, free: 7.062 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02478/1.043, allocations: 6.606 MB / 0.4887 GB, free: 6.895 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.009645/1.052, allocations: 3.587 MB / 0.4922 GB, free: 6.883 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003686/1.056, allocations: 1.32 MB / 0.4935 GB, free: 6.863 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.06214/1.118, allocations: 24.07 MB / 0.517 GB, free: 2.449 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06642/1.185, allocations: 23.97 MB / 0.5404 GB, free: 12.57 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03811/1.223, allocations: 12.17 MB / 0.5523 GB, free: 2.641 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005431/1.228, allocations: 0.6016 MB / 0.5529 GB, free: 2.039 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00256/1.231, allocations: 0.9097 MB / 0.5538 GB, free: 1.438 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002361/1.233, allocations: 340 kB / 0.5541 GB, free: 1.105 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01955/1.253, allocations: 6.816 MB / 0.5608 GB, free: 11.29 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/1.253, allocations: 4 kB / 0.5608 GB, free: 11.28 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.647e-06/1.253, allocations: 0 / 0.5608 GB, free: 11.28 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001703/1.253, allocations: 4 kB / 0.5608 GB, free: 11.28 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 670 * Number of variables: 670 Notification: Performance of Generate backend data structure: time 0.0169/1.27, allocations: 3.769 MB / 0.5645 GB, free: 7.711 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.168e-05/1.27, allocations: 12.03 kB / 0.5645 GB, free: 7.699 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01105/1.281, allocations: 0.9888 MB / 0.5654 GB, free: 6.777 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006003/1.287, allocations: 1.722 MB / 0.5671 GB, free: 5.473 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005328/1.288, allocations: 289.2 kB / 0.5674 GB, free: 5.27 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001202/1.289, allocations: 245.4 kB / 0.5676 GB, free: 5.109 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01741/1.307, allocations: 4.427 MB / 0.5719 GB, free: 1.738 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001115/1.307, allocations: 7 kB / 0.572 GB, free: 1.734 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006087/1.308, allocations: 101.9 kB / 0.572 GB, free: 1.711 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000595/1.308, allocations: 270.5 kB / 0.5723 GB, free: 1.477 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01702/1.325, allocations: 4.203 MB / 0.5764 GB, free: 14.5 MB / 474.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.04223/1.367, allocations: 18.85 MB / 0.5948 GB, free: 13.34 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01179/1.379, allocations: 2.875 MB / 0.5976 GB, free: 11.34 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06129/1.441, allocations: 17.21 MB / 0.6144 GB, free: 8.406 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.341e-05/1.441, allocations: 53.94 kB / 0.6145 GB, free: 8.359 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002115/1.443, allocations: 215.8 kB / 0.6147 GB, free: 8.18 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=192): time 1.001e-05/1.443, allocations: 0 / 0.6147 GB, free: 8.18 MB / 0.4948 GB 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: heater.mediums[1].p 2: pump.medium.p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=244): time 0.4322/1.875, allocations: 32.5 MB / 0.6464 GB, free: 12.3 MB / 0.5261 GB 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.002957/1.878, allocations: 1.011 MB / 0.6474 GB, free: 11.37 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003543/1.882, allocations: 1.619 MB / 0.649 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007379/1.882, allocations: 66.39 kB / 0.6491 GB, free: 10.08 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001067/1.884, allocations: 1.089 MB / 0.6501 GB, free: 9.344 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001531/1.885, allocations: 0.8242 MB / 0.6509 GB, free: 8.637 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003817/1.886, allocations: 56.95 kB / 0.651 GB, free: 8.625 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002708/1.886, allocations: 427 kB / 0.6514 GB, free: 8.246 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006835/1.893, allocations: 1.996 MB / 0.6533 GB, free: 6.891 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007902/1.901, allocations: 2.576 MB / 0.6559 GB, free: 4.785 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007848/1.909, allocations: 2.225 MB / 0.658 GB, free: 3.336 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.245e-05/1.909, allocations: 4 kB / 0.658 GB, free: 3.332 MB / 0.5261 GB Notification: Performance of matching and sorting (n=346) (initialization): time 0.02097/1.93, allocations: 5.797 MB / 0.6637 GB, free: 15.29 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002777/1.932, allocations: 6.445 MB / 0.67 GB, free: 8.348 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.026e-05/1.933, allocations: 16 kB / 0.67 GB, free: 8.332 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01983/1.952, allocations: 3.425 MB / 0.6733 GB, free: 4.891 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005249/1.958, allocations: 0.5987 MB / 0.6739 GB, free: 4.324 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3423/2.3, allocations: 7.725 MB / 0.6815 GB, free: 235.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007373/2.307, allocations: 445.6 kB / 0.6819 GB, free: 235.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001083/2.309, allocations: 156.2 kB / 0.6821 GB, free: 235.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/2.309, allocations: 6.188 kB / 0.6821 GB, free: 235.5 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01941/2.328, allocations: 5.355 MB / 0.6873 GB, free: 234.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.942e-05/2.328, allocations: 15.84 kB / 0.6873 GB, free: 234.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008102/2.336, allocations: 2.094 MB / 0.6893 GB, free: 234 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006137/2.342, allocations: 0.664 MB / 0.69 GB, free: 233.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01723/2.36, allocations: 10.97 MB / 0.7007 GB, free: 225.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006252/2.366, allocations: 442.5 kB / 0.7011 GB, free: 225.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009331/2.367, allocations: 148.3 kB / 0.7013 GB, free: 225.3 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 19 (radiator.state_b.phase,radiator.state_a.phase,heater.state_b.phase,heater.state_a.phase,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.state_b.phase,pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (282): * Single equations (assignments): 271 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {3 12,2 4,1 1,2 7,1 1,5 16,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002899/2.37, allocations: 0.7565 MB / 0.702 GB, free: 224.9 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009184/2.371, allocations: 244.3 kB / 0.7022 GB, free: 224.9 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03343/2.404, allocations: 12.39 MB / 0.7143 GB, free: 218.9 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02905/2.433, allocations: 11.08 MB / 0.7252 GB, free: 207.8 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.852e-05/2.434, allocations: 3.984 kB / 0.7252 GB, free: 207.8 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02896/2.463, allocations: 11.2 MB / 0.7361 GB, free: 196.5 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04859/2.511, allocations: 19.05 MB / 0.7547 GB, free: 177.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-05/2.511, allocations: 3.938 kB / 0.7547 GB, free: 177.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003845/2.515, allocations: 439.2 kB / 0.7551 GB, free: 177.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02583/2.541, allocations: 5.77 MB / 0.7608 GB, free: 171.4 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007356/2.542, allocations: 95.88 kB / 0.7609 GB, free: 171.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01744/2.559, allocations: 10.81 MB / 0.7714 GB, free: 160.3 MB / 0.5417 GB 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.00393/2.563, allocations: 1.815 MB / 0.7732 GB, free: 158.5 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03791/2.601, allocations: 14.66 MB / 0.7875 GB, free: 143.7 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003077/2.604, allocations: 0.948 MB / 0.7884 GB, free: 142.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001038/2.605, allocations: 59.95 kB / 0.7885 GB, free: 142.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005886/2.611, allocations: 387.3 kB / 0.7889 GB, free: 142.3 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008743/2.612, allocations: 234 kB / 0.7891 GB, free: 142.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004025/2.613, allocations: 107.9 kB / 0.7892 GB, free: 141.9 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002383/2.615, allocations: 1.26 MB / 0.7904 GB, free: 140.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.41e-07/2.615, allocations: 5.422 kB / 0.7904 GB, free: 140.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01331/2.628, allocations: 3.486 MB / 0.7938 GB, free: 137.4 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 ($STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],radiator.mediums[1].p,radiator.mediums[1].h,pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h) * Number of discrete variables: 58 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse40.phase,$cse40.region,$cse43.region3boundary,$cse44.region3boundary,$cse45.phase,$cse45.region,$cse46.region3boundary,$cse47.region3boundary,$cse48.phase,$cse48.region,$cse50.phase,$cse50.region,$cse52.phase,$cse52.region,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (213): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 19 * When equations: 0 * 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 1,1 1,1 10,1 1,2 12,1 1,2 4,2 9,1 9,9 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0137/2.642, allocations: 2.565 MB / 0.7963 GB, free: 135.3 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.03647/2.679, allocations: 9.376 MB / 0.8055 GB, free: 125.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/2.679, allocations: 0 / 0.8055 GB, free: 125.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01698/2.696, allocations: 4.299 MB / 0.8097 GB, free: 121.5 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009171/2.705, allocations: 1.034 MB / 0.8107 GB, free: 120.5 MB / 0.5417 GB [/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]