Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.HeatingSystem.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.HeatingSystem,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="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 1.666/1.666, allocations: 171.2 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003558/0.000356, allocations: 8 kB / 233.1 MB, free: 3.066 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07033/0.07072, allocations: 38.77 MB / 271.9 MB, free: 12.22 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.3098/0.3806, allocations: 90.22 MB / 362.1 MB, free: 4.551 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.06607/0.4467, allocations: 37.59 MB / 399.7 MB, free: 14.89 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004019/0.4507, allocations: 99.12 kB / 399.8 MB, free: 14.79 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004739/0.4555, allocations: 1.233 MB / 401.1 MB, free: 13.55 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02377/0.4793, allocations: 6.405 MB / 407.5 MB, free: 7.129 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02632/0.5057, allocations: 7.424 MB / 414.9 MB, free: 15.69 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01054/0.5163, allocations: 5.422 MB / 420.3 MB, free: 10.26 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003475/0.5198, allocations: 1.583 MB / 421.9 MB, free: 8.652 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2867/0.8066, allocations: 24.12 MB / 446 MB, free: 17.21 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03826/0.8449, allocations: 23.74 MB / 469.8 MB, free: 4.609 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008462/0.8458, allocations: 140 kB / 469.9 MB, free: 4.473 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02749/0.8733, allocations: 12.48 MB / 482.4 MB, free: 12.87 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001805/0.8751, allocations: 0.9215 MB / 483.3 MB, free: 12.51 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001503/0.8766, allocations: 0.6236 MB / 483.9 MB, free: 12.15 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01559/0.8923, allocations: 6.933 MB / 490.9 MB, free: 6.582 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.443e-06/0.8923, allocations: 0 / 490.9 MB, free: 6.582 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.722e-06/0.8923, allocations: 0 / 490.9 MB, free: 6.582 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.088e-05/0.8924, allocations: 2.297 kB / 490.9 MB, free: 6.582 MB / 362.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.01312/0.9055, allocations: 3.964 MB / 494.8 MB, free: 2.879 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.9056, allocations: 12.02 kB / 494.8 MB, free: 2.867 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008717/0.9143, allocations: 0.9595 MB / 495.8 MB, free: 1.973 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004706/0.9191, allocations: 1.72 MB / 497.5 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004755/0.9196, allocations: 287.9 kB / 497.8 MB, free: 488 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009121/0.9205, allocations: 249 kB / 498 MB, free: 324 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0174/0.938, allocations: 4.436 MB / 0.4907 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.521e-05/0.9381, allocations: 9.906 kB / 0.4907 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003911/0.9385, allocations: 108.3 kB / 0.4908 GB, free: 12.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004369/0.9389, allocations: 268.9 kB / 0.4911 GB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01494/0.9539, allocations: 4.2 MB / 0.4952 GB, free: 9.695 MB / 378.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.03574/0.9897, allocations: 18.81 MB / 0.5135 GB, free: 8.59 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009336/0.9991, allocations: 2.868 MB / 0.5163 GB, free: 6.59 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04168/1.041, allocations: 17.22 MB / 0.5332 GB, free: 3.656 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.578e-05/1.041, allocations: 54.25 kB / 0.5332 GB, free: 3.609 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001599/1.043, allocations: 212.1 kB / 0.5334 GB, free: 3.434 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 7.167e-06/1.043, allocations: 0 / 0.5334 GB, free: 3.434 MB / 410.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 Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=244): time 0.2479/1.29, allocations: 31.35 MB / 0.564 GB, free: 8.672 MB / 442.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.002896/1.293, allocations: 1.037 MB / 0.565 GB, free: 7.707 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003457/1.297, allocations: 1.828 MB / 0.5668 GB, free: 6.305 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000568/1.297, allocations: 67.2 kB / 0.5669 GB, free: 6.266 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009675/1.298, allocations: 1.096 MB / 0.568 GB, free: 5.531 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001226/1.3, allocations: 0.8168 MB / 0.5688 GB, free: 4.832 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003146/1.3, allocations: 54.19 kB / 0.5688 GB, free: 4.82 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000288/1.3, allocations: 424.7 kB / 0.5692 GB, free: 4.441 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005407/1.306, allocations: 2.017 MB / 0.5712 GB, free: 3.074 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006231/1.312, allocations: 2.602 MB / 0.5737 GB, free: 0.957 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2644/1.576, allocations: 2.23 MB / 0.5759 GB, free: 198.8 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.608e-05/1.577, allocations: 4.766 kB / 0.5759 GB, free: 198.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=346) (initialization): time 0.01919/1.596, allocations: 6.453 MB / 0.5822 GB, free: 197.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003191/1.596, allocations: 0.5702 MB / 0.5828 GB, free: 197.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.718e-05/1.596, allocations: 17 kB / 0.5828 GB, free: 197.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04263/1.639, allocations: 8.077 MB / 0.5907 GB, free: 196.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002286/1.641, allocations: 392.8 kB / 0.5911 GB, free: 196.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01662/1.658, allocations: 6.807 MB / 0.5977 GB, free: 193.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004899/1.663, allocations: 452.3 kB / 0.5981 GB, free: 193.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007272/1.664, allocations: 151.9 kB / 0.5983 GB, free: 193.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/1.664, allocations: 3.531 kB / 0.5983 GB, free: 193.2 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01601/1.68, allocations: 5.942 MB / 0.6041 GB, free: 190.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.413e-05/1.68, allocations: 18.53 kB / 0.6041 GB, free: 190.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02824/1.708, allocations: 4.172 MB / 0.6082 GB, free: 188 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004584/1.713, allocations: 464.8 kB / 0.6086 GB, free: 187.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02175/1.734, allocations: 5.793 MB / 0.6143 GB, free: 181.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006977/1.741, allocations: 440.9 kB / 0.6147 GB, free: 181.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008939/1.742, allocations: 151.9 kB / 0.6148 GB, free: 181.2 MB / 442.7 MB 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 (185): * Single equations (assignments): 181 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 12,20 122} Notification: Performance of prepare postOptimizeDAE: time 0.003445/1.746, allocations: 0.8225 MB / 0.6156 GB, free: 180.4 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001209/1.747, allocations: 245.4 kB / 0.6159 GB, free: 180.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04466/1.792, allocations: 12.46 MB / 0.628 GB, free: 168 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0392/1.831, allocations: 11.06 MB / 0.6388 GB, free: 156.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.451e-05/1.831, allocations: 0 / 0.6388 GB, free: 156.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02997/1.861, allocations: 11.18 MB / 0.6498 GB, free: 145.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03727/1.898, allocations: 19.05 MB / 0.6684 GB, free: 126.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.696e-05/1.899, allocations: 0 / 0.6684 GB, free: 126.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002702/1.901, allocations: 443.5 kB / 0.6688 GB, free: 126 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02007/1.921, allocations: 5.943 MB / 0.6746 GB, free: 120 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005791/1.922, allocations: 87.94 kB / 0.6747 GB, free: 119.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01321/1.935, allocations: 10.84 MB / 0.6853 GB, free: 108.9 MB / 442.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.002962/1.938, allocations: 1.82 MB / 0.687 GB, free: 107 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02944/1.968, allocations: 14.68 MB / 0.7014 GB, free: 92.18 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002386/1.97, allocations: 0.9441 MB / 0.7023 GB, free: 91.21 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006659/1.971, allocations: 55.98 kB / 0.7023 GB, free: 91.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003703/1.974, allocations: 394.5 kB / 0.7027 GB, free: 90.78 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000608/1.975, allocations: 237.9 kB / 0.703 GB, free: 90.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003421/1.975, allocations: 103.9 kB / 0.7031 GB, free: 90.44 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00208/1.978, allocations: 1.262 MB / 0.7043 GB, free: 89.16 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.101e-06/1.978, allocations: 0 / 0.7043 GB, free: 89.16 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00983/1.987, allocations: 3.496 MB / 0.7077 GB, free: 85.91 MB / 442.7 MB 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.01065/1.998, allocations: 2.534 MB / 0.7102 GB, free: 83.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0364/2.035, allocations: 9.162 MB / 0.7191 GB, free: 74.59 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.239e-05/2.035, allocations: 0 / 0.7191 GB, free: 74.59 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02176/2.056, allocations: 4.255 MB / 0.7233 GB, free: 70.33 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0117/2.068, allocations: 1.031 MB / 0.7243 GB, free: 69.3 MB / 442.7 MB [/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]