Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_FixedInitial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.257/2.257, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004197/0.0004196, allocations: 8 kB / 314.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3352/0.3356, allocations: 54.87 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial): time 0.1425/0.4782, allocations: 90.98 MB / 460.3 MB, free: 15.52 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.4007/0.8789, allocations: 37.85 MB / 498.1 MB, free: 6.41 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003638/0.8826, allocations: 103 kB / 498.2 MB, free: 6.41 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005012/0.8876, allocations: 1.218 MB / 499.4 MB, free: 6.41 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0257/0.9134, allocations: 6.483 MB / 0.494 GB, free: 6.332 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02904/0.9424, allocations: 7.465 MB / 0.5013 GB, free: 6.242 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01069/0.9531, allocations: 5.392 MB / 0.5066 GB, free: 5.383 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00341/0.9566, allocations: 1.599 MB / 0.5082 GB, free: 4.742 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.06274/1.019, allocations: 24.43 MB / 0.532 GB, free: 5.516 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06027/1.08, allocations: 23.98 MB / 0.5554 GB, free: 15.46 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009609/1.081, allocations: 140 kB / 0.5556 GB, free: 15.33 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03678/1.117, allocations: 12.66 MB / 0.5679 GB, free: 5.031 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002208/1.12, allocations: 0.9225 MB / 0.5688 GB, free: 4.438 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001601/1.121, allocations: 0.6236 MB / 0.5694 GB, free: 4.074 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01854/1.14, allocations: 7.005 MB / 0.5763 GB, free: 14.08 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/1.14, allocations: 0 / 0.5763 GB, free: 14.08 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.326e-06/1.14, allocations: 2.734 kB / 0.5763 GB, free: 14.08 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001071/1.14, allocations: 0 / 0.5763 GB, free: 14.08 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.01633/1.156, allocations: 4.017 MB / 0.5802 GB, free: 10.32 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.453e-05/1.157, allocations: 12.03 kB / 0.5802 GB, free: 10.31 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001473/1.158, allocations: 416.5 kB / 0.5806 GB, free: 10.05 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009637/1.168, allocations: 0.9952 MB / 0.5816 GB, free: 9.125 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005275/1.173, allocations: 1.726 MB / 0.5833 GB, free: 7.824 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004067/1.173, allocations: 285.1 kB / 0.5835 GB, free: 7.625 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006925/1.174, allocations: 245.6 kB / 0.5838 GB, free: 7.465 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01454/1.189, allocations: 4.458 MB / 0.5881 GB, free: 4.07 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-05/1.189, allocations: 7.094 kB / 0.5881 GB, free: 4.066 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004316/1.189, allocations: 101.4 kB / 0.5882 GB, free: 4.043 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005681/1.19, allocations: 278.4 kB / 0.5885 GB, free: 3.801 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01561/1.205, allocations: 4.205 MB / 0.5926 GB, free: 0.8242 MB / 458.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.03894/1.244, allocations: 18.85 MB / 0.611 GB, free: 14.07 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01132/1.256, allocations: 2.859 MB / 0.6138 GB, free: 11.23 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06029/1.316, allocations: 17.24 MB / 0.6306 GB, free: 7.949 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.438e-05/1.316, allocations: 60.55 kB / 0.6307 GB, free: 7.883 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001995/1.318, allocations: 220.6 kB / 0.6309 GB, free: 7.668 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=192): time 6.132e-06/1.318, allocations: 0 / 0.6309 GB, free: 7.668 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.7381/2.056, allocations: 33.26 MB / 0.6634 GB, free: 206.3 MB / 0.5105 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.003166/2.06, allocations: 1.038 MB / 0.6644 GB, free: 205.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003173/2.063, allocations: 1.839 MB / 0.6662 GB, free: 205 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006465/2.063, allocations: 70.08 kB / 0.6663 GB, free: 204.9 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007525/2.064, allocations: 1.095 MB / 0.6673 GB, free: 204 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001087/2.065, allocations: 0.8259 MB / 0.6681 GB, free: 203.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000351/2.066, allocations: 55.84 kB / 0.6682 GB, free: 203.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001588/2.066, allocations: 418.8 kB / 0.6686 GB, free: 203 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00603/2.072, allocations: 2.017 MB / 0.6706 GB, free: 202.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006624/2.079, allocations: 2.597 MB / 0.6731 GB, free: 201 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007178/2.086, allocations: 2.231 MB / 0.6753 GB, free: 200.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.133e-05/2.086, allocations: 5.25 kB / 0.6753 GB, free: 200.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=346) (initialization): time 0.02002/2.106, allocations: 5.851 MB / 0.681 GB, free: 197.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000317/2.106, allocations: 0.578 MB / 0.6816 GB, free: 196.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.906e-05/2.106, allocations: 14.81 kB / 0.6816 GB, free: 196.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02151/2.128, allocations: 3.619 MB / 0.6851 GB, free: 194.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005119/2.133, allocations: 0.5982 MB / 0.6857 GB, free: 194 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01343/2.146, allocations: 7.787 MB / 0.6933 GB, free: 186 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00697/2.153, allocations: 449.8 kB / 0.6937 GB, free: 185.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007922/2.154, allocations: 152.8 kB / 0.6939 GB, free: 185.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/2.154, allocations: 7.938 kB / 0.6939 GB, free: 185.4 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01741/2.172, allocations: 5.384 MB / 0.6991 GB, free: 180 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.481e-05/2.172, allocations: 20.17 kB / 0.6992 GB, free: 180 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009291/2.181, allocations: 2.191 MB / 0.7013 GB, free: 177.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006053/2.187, allocations: 0.667 MB / 0.702 GB, free: 177.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01635/2.204, allocations: 11.01 MB / 0.7127 GB, free: 165.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005919/2.21, allocations: 449.7 kB / 0.7131 GB, free: 165.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006089/2.21, allocations: 147.9 kB / 0.7133 GB, free: 165 MB / 0.5105 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.002342/2.213, allocations: 0.8342 MB / 0.7141 GB, free: 164.2 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008078/2.213, allocations: 241.1 kB / 0.7143 GB, free: 163.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0318/2.245, allocations: 12.48 MB / 0.7265 GB, free: 151.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02799/2.273, allocations: 11.06 MB / 0.7373 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/2.273, allocations: 0 / 0.7373 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02776/2.301, allocations: 11.19 MB / 0.7482 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0477/2.349, allocations: 19.04 MB / 0.7668 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.801e-05/2.349, allocations: 0 / 0.7668 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003999/2.353, allocations: 451.4 kB / 0.7673 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02722/2.38, allocations: 5.941 MB / 0.7731 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007048/2.381, allocations: 91.92 kB / 0.7732 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0176/2.398, allocations: 10.83 MB / 0.7837 GB, free: 92.16 MB / 0.5105 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.003778/2.402, allocations: 1.82 MB / 0.7855 GB, free: 90.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03858/2.441, allocations: 14.69 MB / 0.7999 GB, free: 75.48 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002966/2.444, allocations: 0.9441 MB / 0.8008 GB, free: 74.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00106/2.445, allocations: 55.98 kB / 0.8008 GB, free: 74.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006085/2.451, allocations: 399.2 kB / 0.8012 GB, free: 74.06 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008428/2.452, allocations: 226 kB / 0.8014 GB, free: 73.84 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003742/2.452, allocations: 107.9 kB / 0.8015 GB, free: 73.73 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002372/2.455, allocations: 1.258 MB / 0.8028 GB, free: 72.46 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.31e-07/2.455, allocations: 0 / 0.8028 GB, free: 72.46 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01325/2.468, allocations: 3.548 MB / 0.8062 GB, free: 69.16 MB / 0.5105 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.05268/2.521, allocations: 16.64 MB / 0.8225 GB, free: 52.81 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03579/2.557, allocations: 9.353 MB / 0.8316 GB, free: 43.38 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.355e-06/2.557, allocations: 4 kB / 0.8316 GB, free: 43.38 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01634/2.573, allocations: 4.261 MB / 0.8358 GB, free: 39.11 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008724/2.582, allocations: 1.034 MB / 0.8368 GB, free: 38.07 MB / 0.5105 GB [/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]