Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_FixedInitial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo): time 0.0159/0.01591, allocations: 103.5 kB / 15.05 MB, free: 5.949 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo): time 0.001874/0.001874, allocations: 172.1 kB / 15.93 MB, free: 5.91 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.679/1.679, allocations: 170.9 MB / 187.6 MB, free: 0.8438 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.3604/0.3604, allocations: 38.09 MB / 265.1 MB, free: 3.945 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000732/0.000732, allocations: 12 kB / 323.6 MB, free: 29.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0992/0.09998, allocations: 48.71 MB / 372.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial): time 0.4916/0.5916, allocations: 90.24 MB / 462.5 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.06826/0.6599, allocations: 37.61 MB / 0.4884 GB, free: 7.289 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004586/0.6646, allocations: 100.3 kB / 0.4885 GB, free: 7.234 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005891/0.6705, allocations: 1.226 MB / 0.4897 GB, free: 6.184 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02826/0.6988, allocations: 6.417 MB / 0.496 GB, free: 368 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03083/0.7297, allocations: 7.414 MB / 0.5032 GB, free: 8.934 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.01028/0.74, allocations: 4.296 MB / 0.5074 GB, free: 4.637 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004004/0.7441, allocations: 1.601 MB / 0.509 GB, free: 3.016 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.07387/0.818, allocations: 24.23 MB / 0.5326 GB, free: 10.76 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07124/0.8893, allocations: 23.85 MB / 0.5559 GB, free: 2.895 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001346/0.8907, allocations: 140 kB / 0.5561 GB, free: 2.758 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.08264/0.9734, allocations: 12.48 MB / 0.5683 GB, free: 6.262 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003234/0.9767, allocations: 0.9154 MB / 0.5692 GB, free: 5.344 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002539/0.9792, allocations: 0.6212 MB / 0.5698 GB, free: 4.715 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02517/1.004, allocations: 6.934 MB / 0.5765 GB, free: 13.77 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/1.005, allocations: 0 / 0.5765 GB, free: 13.77 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.767e-06/1.005, allocations: 0 / 0.5765 GB, free: 13.77 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001742/1.005, allocations: 0 / 0.5765 GB, free: 13.77 MB / 442.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.01795/1.023, allocations: 3.968 MB / 0.5804 GB, free: 9.73 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.063e-05/1.023, allocations: 8.031 kB / 0.5804 GB, free: 9.723 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002081/1.025, allocations: 415.7 kB / 0.5808 GB, free: 9.305 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01049/1.035, allocations: 0.9603 MB / 0.5817 GB, free: 8.34 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005731/1.041, allocations: 1.728 MB / 0.5834 GB, free: 6.555 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005608/1.042, allocations: 288.1 kB / 0.5837 GB, free: 6.258 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001086/1.043, allocations: 244 kB / 0.5839 GB, free: 6.02 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01669/1.06, allocations: 4.425 MB / 0.5883 GB, free: 1.414 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001355/1.06, allocations: 11.92 kB / 0.5883 GB, free: 1.402 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008523/1.061, allocations: 107.9 kB / 0.5884 GB, free: 1.297 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005965/1.061, allocations: 272.7 kB / 0.5886 GB, free: 1.027 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2971/1.358, allocations: 4.203 MB / 0.5927 GB, free: 161.6 MB / 442.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.05485/1.413, allocations: 18.84 MB / 0.6111 GB, free: 147.8 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01587/1.429, allocations: 2.871 MB / 0.6139 GB, free: 146.4 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05937/1.489, allocations: 17.22 MB / 0.6308 GB, free: 132.8 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.829e-05/1.489, allocations: 60.22 kB / 0.6308 GB, free: 132.8 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002066/1.491, allocations: 211.9 kB / 0.631 GB, free: 132.6 MB / 442.7 MB Notification: Performance of pre-optimization done (n=192): time 5.19e-06/1.491, allocations: 4 kB / 0.631 GB, free: 132.6 MB / 442.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: 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.5106/2.001, allocations: 33.28 MB / 0.6635 GB, free: 100.4 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.003376/2.005, allocations: 1.045 MB / 0.6645 GB, free: 99.29 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003386/2.008, allocations: 1.829 MB / 0.6663 GB, free: 97.41 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007079/2.009, allocations: 65.7 kB / 0.6664 GB, free: 97.34 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009625/2.01, allocations: 1.173 MB / 0.6675 GB, free: 96.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001307/2.011, allocations: 0.829 MB / 0.6684 GB, free: 95.34 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003982/2.012, allocations: 52 kB / 0.6684 GB, free: 95.29 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001848/2.012, allocations: 411.5 kB / 0.6688 GB, free: 94.89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006483/2.019, allocations: 2.016 MB / 0.6708 GB, free: 92.87 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006997/2.026, allocations: 2.596 MB / 0.6733 GB, free: 90.04 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007357/2.033, allocations: 2.237 MB / 0.6755 GB, free: 87.78 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.651e-05/2.033, allocations: 8 kB / 0.6755 GB, free: 87.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=346) (initialization): time 0.02834/2.061, allocations: 5.975 MB / 0.6813 GB, free: 81.72 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001823/2.063, allocations: 6.699 MB / 0.6879 GB, free: 74.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.242e-05/2.063, allocations: 16 kB / 0.6879 GB, free: 74.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03041/2.094, allocations: 3.613 MB / 0.6914 GB, free: 70.81 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007188/2.101, allocations: 0.6084 MB / 0.692 GB, free: 70.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01668/2.118, allocations: 7.776 MB / 0.6996 GB, free: 62.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007315/2.125, allocations: 459.1 kB / 0.7 GB, free: 61.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009713/2.126, allocations: 151.9 kB / 0.7002 GB, free: 61.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/2.126, allocations: 7.938 kB / 0.7002 GB, free: 61.59 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01823/2.145, allocations: 5.382 MB / 0.7054 GB, free: 56.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.286e-05/2.145, allocations: 19.94 kB / 0.7055 GB, free: 56.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01046/2.155, allocations: 2.295 MB / 0.7077 GB, free: 53.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00632/2.162, allocations: 0.667 MB / 0.7084 GB, free: 53.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01844/2.18, allocations: 11.06 MB / 0.7192 GB, free: 41.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006917/2.187, allocations: 439.3 kB / 0.7196 GB, free: 41.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000934/2.188, allocations: 151.9 kB / 0.7197 GB, free: 40.94 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 (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.003012/2.191, allocations: 0.8383 MB / 0.7205 GB, free: 40.09 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001052/2.192, allocations: 237.1 kB / 0.7208 GB, free: 39.85 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03601/2.228, allocations: 12.47 MB / 0.7329 GB, free: 27.28 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03189/2.26, allocations: 11.06 MB / 0.7437 GB, free: 16.11 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.456e-05/2.26, allocations: 0 / 0.7437 GB, free: 16.11 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02996/2.29, allocations: 11.19 MB / 0.7547 GB, free: 4.77 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3398/2.63, allocations: 19.05 MB / 0.7733 GB, free: 147 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-05/2.63, allocations: 0 / 0.7733 GB, free: 147 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00415/2.634, allocations: 447.4 kB / 0.7737 GB, free: 147 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02861/2.663, allocations: 5.933 MB / 0.7795 GB, free: 146 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007518/2.664, allocations: 93.44 kB / 0.7796 GB, free: 146 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0184/2.682, allocations: 10.82 MB / 0.7901 GB, free: 138.7 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.00415/2.686, allocations: 1.833 MB / 0.7919 GB, free: 137.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04064/2.727, allocations: 14.7 MB / 0.8063 GB, free: 126.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00328/2.73, allocations: 0.949 MB / 0.8072 GB, free: 125.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001148/2.732, allocations: 59.98 kB / 0.8073 GB, free: 125.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006376/2.738, allocations: 389.8 kB / 0.8076 GB, free: 125.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001098/2.739, allocations: 225.9 kB / 0.8079 GB, free: 124.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004955/2.74, allocations: 107.9 kB / 0.808 GB, free: 124.8 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002724/2.742, allocations: 1.262 MB / 0.8092 GB, free: 123.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.21e-07/2.742, allocations: 0 / 0.8092 GB, free: 123.6 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01449/2.757, allocations: 3.539 MB / 0.8126 GB, free: 120.3 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.05578/2.813, allocations: 16.71 MB / 0.829 GB, free: 104 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.03781/2.851, allocations: 9.397 MB / 0.8381 GB, free: 94.65 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.196e-06/2.851, allocations: 3.75 kB / 0.8381 GB, free: 94.65 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01729/2.868, allocations: 4.277 MB / 0.8423 GB, free: 90.39 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009321/2.877, allocations: 1.034 MB / 0.8433 GB, free: 89.41 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4497:9-4497:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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]