Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) 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.389/2.389, allocations: 234.9 MB / 250.5 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007741/0.0007744, allocations: 12 kB / 314.3 MB, free: 9.656 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3441/0.3449, allocations: 54.87 MB / 369.2 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial): time 0.1726/0.5176, allocations: 90.98 MB / 460.2 MB, free: 1.559 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.06942/0.587, allocations: 37.85 MB / 498 MB, free: 11.64 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003588/0.5907, allocations: 103.1 kB / 498.1 MB, free: 11.54 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004471/0.5952, allocations: 1.225 MB / 499.3 MB, free: 10.3 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02348/0.6187, allocations: 6.474 MB / 0.494 GB, free: 3.812 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.3221/0.9408, allocations: 7.47 MB / 0.5013 GB, free: 12.16 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.008368/0.9492, allocations: 5.395 MB / 0.5065 GB, free: 12.16 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002946/0.9522, allocations: 1.599 MB / 0.5081 GB, free: 12.03 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04257/0.9948, allocations: 24.42 MB / 0.5319 GB, free: 9.984 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04707/1.042, allocations: 24.22 MB / 0.5556 GB, free: 6.844 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009515/1.043, allocations: 140 kB / 0.5557 GB, free: 6.707 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.031/1.074, allocations: 12.67 MB / 0.5681 GB, free: 12.41 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001888/1.076, allocations: 0.9194 MB / 0.569 GB, free: 11.81 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001548/1.077, allocations: 0.6191 MB / 0.5696 GB, free: 11.45 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01578/1.093, allocations: 7.006 MB / 0.5764 GB, free: 5.469 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.295e-06/1.093, allocations: 0 / 0.5764 GB, free: 5.469 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.086e-06/1.093, allocations: 4 kB / 0.5764 GB, free: 5.465 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.902e-05/1.093, allocations: 0 / 0.5764 GB, free: 5.465 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.01343/1.107, allocations: 4.019 MB / 0.5804 GB, free: 1.703 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/1.107, allocations: 12.03 kB / 0.5804 GB, free: 1.691 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008805/1.116, allocations: 0.9982 MB / 0.5813 GB, free: 0.7617 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004811/1.121, allocations: 1.718 MB / 0.583 GB, free: 15.46 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000429/1.121, allocations: 286.7 kB / 0.5833 GB, free: 15.26 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008172/1.122, allocations: 243.5 kB / 0.5835 GB, free: 15.11 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01335/1.135, allocations: 4.443 MB / 0.5879 GB, free: 11.72 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.883e-05/1.135, allocations: 10.89 kB / 0.5879 GB, free: 11.71 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004029/1.136, allocations: 106.4 kB / 0.588 GB, free: 11.69 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004622/1.136, allocations: 273.6 kB / 0.5882 GB, free: 11.45 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01416/1.15, allocations: 4.194 MB / 0.5923 GB, free: 8.484 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.03582/1.186, allocations: 18.83 MB / 0.6107 GB, free: 7.355 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009468/1.196, allocations: 2.88 MB / 0.6135 GB, free: 5.355 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04218/1.238, allocations: 17.21 MB / 0.6303 GB, free: 2.43 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.079e-05/1.238, allocations: 60.05 kB / 0.6304 GB, free: 2.379 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001667/1.24, allocations: 210.7 kB / 0.6306 GB, free: 2.203 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=192): time 7.512e-06/1.24, allocations: 0 / 0.6306 GB, free: 2.203 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.2598/1.5, allocations: 33.27 MB / 0.6631 GB, free: 5.59 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.002905/1.503, allocations: 1.044 MB / 0.6641 GB, free: 4.629 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003417/1.506, allocations: 1.829 MB / 0.6659 GB, free: 3.227 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005272/1.507, allocations: 75.89 kB / 0.666 GB, free: 3.18 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000974/1.508, allocations: 1.095 MB / 0.667 GB, free: 2.449 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001271/1.509, allocations: 0.8211 MB / 0.6678 GB, free: 1.746 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003088/1.509, allocations: 54.88 kB / 0.6679 GB, free: 1.734 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000294/1.51, allocations: 422.1 kB / 0.6683 GB, free: 1.355 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005213/1.515, allocations: 2.014 MB / 0.6703 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006206/1.521, allocations: 2.602 MB / 0.6728 GB, free: 13.87 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006003/1.527, allocations: 2.241 MB / 0.675 GB, free: 12.41 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.32e-05/1.527, allocations: 4 kB / 0.675 GB, free: 12.41 MB / 0.5417 GB Notification: Performance of matching and sorting (n=346) (initialization): time 0.01739/1.545, allocations: 5.851 MB / 0.6807 GB, free: 8.328 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005647/1.545, allocations: 0.5726 MB / 0.6813 GB, free: 7.582 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.909e-05/1.545, allocations: 16 kB / 0.6813 GB, free: 7.566 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01703/1.562, allocations: 3.617 MB / 0.6848 GB, free: 4.43 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003744/1.566, allocations: 0.6035 MB / 0.6854 GB, free: 3.883 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01304/1.579, allocations: 7.771 MB / 0.693 GB, free: 12.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00504/1.584, allocations: 447.7 kB / 0.6934 GB, free: 12.56 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007976/1.585, allocations: 156.7 kB / 0.6936 GB, free: 12.43 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/1.585, allocations: 4 kB / 0.6936 GB, free: 12.43 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01547/1.6, allocations: 5.384 MB / 0.6988 GB, free: 8.738 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.223e-05/1.601, allocations: 19.98 kB / 0.6988 GB, free: 8.719 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00808/1.609, allocations: 2.202 MB / 0.701 GB, free: 6.906 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004416/1.613, allocations: 0.6676 MB / 0.7017 GB, free: 6.297 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2823/1.895, allocations: 11.01 MB / 0.7124 GB, free: 249.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004049/1.9, allocations: 440.3 kB / 0.7128 GB, free: 249.1 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005975/1.9, allocations: 148.7 kB / 0.713 GB, free: 249.1 MB / 0.5573 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 () * Number of clocked 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.002179/1.902, allocations: 0.8347 MB / 0.7138 GB, free: 249 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007236/1.903, allocations: 246.5 kB / 0.714 GB, free: 249 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02713/1.93, allocations: 12.47 MB / 0.7262 GB, free: 244.9 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02367/1.954, allocations: 11.07 MB / 0.737 GB, free: 240.6 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.56e-05/1.954, allocations: 1.406 kB / 0.737 GB, free: 240.6 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02203/1.976, allocations: 11.18 MB / 0.7479 GB, free: 230.2 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03684/2.013, allocations: 19.05 MB / 0.7665 GB, free: 211.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.019e-05/2.013, allocations: 0 / 0.7665 GB, free: 211.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002608/2.016, allocations: 439.3 kB / 0.7669 GB, free: 210.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02046/2.036, allocations: 5.942 MB / 0.7727 GB, free: 205 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008359/2.037, allocations: 87.94 kB / 0.7728 GB, free: 204.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01497/2.052, allocations: 10.83 MB / 0.7834 GB, free: 193.9 MB / 0.5573 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.00296/2.055, allocations: 1.831 MB / 0.7852 GB, free: 192 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02871/2.084, allocations: 14.69 MB / 0.7995 GB, free: 177.3 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002439/2.086, allocations: 0.9479 MB / 0.8005 GB, free: 176.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006642/2.087, allocations: 56 kB / 0.8005 GB, free: 176.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004073/2.091, allocations: 388.1 kB / 0.8009 GB, free: 175.9 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008586/2.092, allocations: 225.9 kB / 0.8011 GB, free: 175.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003829/2.092, allocations: 107.1 kB / 0.8012 GB, free: 175.6 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002224/2.095, allocations: 1.265 MB / 0.8024 GB, free: 174.3 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.09e-07/2.095, allocations: 0 / 0.8024 GB, free: 174.3 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01101/2.106, allocations: 3.547 MB / 0.8059 GB, free: 171 MB / 0.5573 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,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.region3boundary,$cse18.region3boundary,$cse19.phase,$cse19.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse41.phase,$cse41.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse47.region3boundary,$cse48.region3boundary,$cse49.phase,$cse49.region,$cse51.phase,$cse51.region,$cse53.phase,$cse53.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 () * Number of clocked 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.01069/2.116, allocations: 2.569 MB / 0.8084 GB, free: 168.9 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02513/2.141, allocations: 9.359 MB / 0.8175 GB, free: 159.5 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.99e-06/2.142, allocations: 0 / 0.8175 GB, free: 159.5 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01131/2.153, allocations: 4.261 MB / 0.8217 GB, free: 155.2 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005969/2.159, allocations: 1.04 MB / 0.8227 GB, free: 154.2 MB / 0.5573 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4497:9-4497:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:748:5-748:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]