Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_FixedInitial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.217/2.217, allocations: 209.2 MB / 224.8 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004431/0.0004436, allocations: 12 kB / 282.6 MB, free: 9.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.109, allocations: 48.71 MB / 331.3 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial): time 0.4252/0.5342, allocations: 90.25 MB / 421.5 MB, free: 10.54 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.08089/0.6152, allocations: 37.6 MB / 459.1 MB, free: 4.867 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004102/0.6194, allocations: 103.1 kB / 459.2 MB, free: 4.766 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005986/0.6254, allocations: 1.225 MB / 460.5 MB, free: 3.535 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02871/0.6542, allocations: 6.416 MB / 466.9 MB, free: 13.1 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03169/0.6859, allocations: 7.423 MB / 474.3 MB, free: 5.668 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01356/0.6995, allocations: 5.348 MB / 479.6 MB, free: 316 kB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004255/0.7038, allocations: 1.595 MB / 481.2 MB, free: 14.7 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4158/1.12, allocations: 24.14 MB / 0.4935 GB, free: 26.23 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05643/1.176, allocations: 23.74 MB / 0.5167 GB, free: 20.7 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001189/1.177, allocations: 144 kB / 0.5169 GB, free: 20.56 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03351/1.211, allocations: 12.47 MB / 0.529 GB, free: 12.93 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002173/1.213, allocations: 0.9286 MB / 0.5299 GB, free: 12.57 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001731/1.215, allocations: 0.6209 MB / 0.5305 GB, free: 12.21 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01868/1.234, allocations: 6.921 MB / 0.5373 GB, free: 8.09 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.696e-06/1.234, allocations: 2.531 kB / 0.5373 GB, free: 8.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.176e-06/1.234, allocations: 4 kB / 0.5373 GB, free: 8.086 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001362/1.234, allocations: 0 / 0.5373 GB, free: 8.086 MB / 410.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.01579/1.25, allocations: 3.963 MB / 0.5412 GB, free: 4.387 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/1.25, allocations: 8.031 kB / 0.5412 GB, free: 4.379 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001759/1.252, allocations: 419.7 kB / 0.5416 GB, free: 4.121 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009556/1.261, allocations: 0.9619 MB / 0.5425 GB, free: 3.223 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005119/1.266, allocations: 1.722 MB / 0.5442 GB, free: 1.926 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003803/1.267, allocations: 284 kB / 0.5445 GB, free: 1.727 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008126/1.268, allocations: 249.8 kB / 0.5447 GB, free: 1.566 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01473/1.282, allocations: 4.448 MB / 0.5491 GB, free: 14.18 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001011/1.282, allocations: 8.797 kB / 0.5491 GB, free: 14.17 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004837/1.283, allocations: 106.9 kB / 0.5492 GB, free: 14.15 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005592/1.284, allocations: 276.1 kB / 0.5494 GB, free: 13.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01715/1.301, allocations: 4.204 MB / 0.5535 GB, free: 10.93 MB / 426.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.04351/1.344, allocations: 18.83 MB / 0.5719 GB, free: 9.816 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.012/1.356, allocations: 2.877 MB / 0.5747 GB, free: 7.809 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06087/1.417, allocations: 17.22 MB / 0.5916 GB, free: 4.879 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.691e-05/1.417, allocations: 66.56 kB / 0.5916 GB, free: 4.82 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002051/1.419, allocations: 211.3 kB / 0.5918 GB, free: 4.641 MB / 458.7 MB Notification: Performance of pre-optimization done (n=192): time 6.973e-06/1.42, allocations: 1.094 kB / 0.5918 GB, free: 4.641 MB / 458.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.4825/1.902, allocations: 33.28 MB / 0.6243 GB, free: 8.023 MB / 490.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.003736/1.906, allocations: 1.039 MB / 0.6253 GB, free: 7.066 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004154/1.91, allocations: 1.835 MB / 0.6271 GB, free: 5.656 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000787/1.911, allocations: 67.95 kB / 0.6272 GB, free: 5.613 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001231/1.912, allocations: 1.097 MB / 0.6283 GB, free: 4.887 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001682/1.914, allocations: 0.8271 MB / 0.6291 GB, free: 4.176 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004406/1.914, allocations: 54.94 kB / 0.6291 GB, free: 4.164 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003134/1.915, allocations: 419.6 kB / 0.6295 GB, free: 3.789 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007411/1.922, allocations: 2.012 MB / 0.6315 GB, free: 2.426 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008189/1.93, allocations: 2.603 MB / 0.634 GB, free: 308 kB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008213/1.939, allocations: 2.234 MB / 0.6362 GB, free: 14.85 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.535e-05/1.939, allocations: 4 kB / 0.6362 GB, free: 14.85 MB / 0.4948 GB Notification: Performance of matching and sorting (n=346) (initialization): time 0.02319/1.962, allocations: 5.849 MB / 0.6419 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005909/1.962, allocations: 0.5773 MB / 0.6425 GB, free: 10.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-05/1.963, allocations: 16 kB / 0.6425 GB, free: 10.01 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02363/1.986, allocations: 3.608 MB / 0.646 GB, free: 6.875 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00565/1.992, allocations: 0.605 MB / 0.6466 GB, free: 6.328 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01655/2.009, allocations: 7.784 MB / 0.6542 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007462/2.016, allocations: 445.8 kB / 0.6546 GB, free: 14.99 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001013/2.017, allocations: 158.5 kB / 0.6548 GB, free: 14.86 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/2.017, allocations: 4 kB / 0.6548 GB, free: 14.86 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02072/2.038, allocations: 5.386 MB / 0.6601 GB, free: 11.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.268e-05/2.038, allocations: 16 kB / 0.6601 GB, free: 11.15 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01055/2.049, allocations: 2.191 MB / 0.6622 GB, free: 9.348 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006629/2.055, allocations: 0.6775 MB / 0.6629 GB, free: 8.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3269/2.382, allocations: 11 MB / 0.6736 GB, free: 223.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006501/2.389, allocations: 438.8 kB / 0.674 GB, free: 223.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000765/2.39, allocations: 150.7 kB / 0.6742 GB, free: 223.5 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.002958/2.393, allocations: 0.8375 MB / 0.675 GB, free: 223.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008928/2.393, allocations: 240.9 kB / 0.6752 GB, free: 223.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03883/2.432, allocations: 12.47 MB / 0.6874 GB, free: 220.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03105/2.463, allocations: 11.07 MB / 0.6982 GB, free: 216 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.624e-05/2.463, allocations: 2.625 kB / 0.6982 GB, free: 216 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02938/2.493, allocations: 11.18 MB / 0.7091 GB, free: 211.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05048/2.543, allocations: 19.05 MB / 0.7277 GB, free: 198.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.832e-05/2.543, allocations: 0 / 0.7277 GB, free: 198.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004134/2.548, allocations: 447.2 kB / 0.7282 GB, free: 197.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0273/2.575, allocations: 5.939 MB / 0.734 GB, free: 192 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007576/2.576, allocations: 91.94 kB / 0.7341 GB, free: 191.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0178/2.594, allocations: 10.84 MB / 0.7446 GB, free: 180.9 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.003817/2.597, allocations: 1.813 MB / 0.7464 GB, free: 179.1 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03875/2.636, allocations: 14.7 MB / 0.7608 GB, free: 164.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003016/2.639, allocations: 0.9402 MB / 0.7617 GB, free: 163.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009992/2.64, allocations: 59.98 kB / 0.7617 GB, free: 163.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005989/2.646, allocations: 387.8 kB / 0.7621 GB, free: 163 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000912/2.647, allocations: 229.1 kB / 0.7623 GB, free: 162.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004013/2.648, allocations: 103.9 kB / 0.7624 GB, free: 162.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002535/2.65, allocations: 1.267 MB / 0.7637 GB, free: 161.4 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.81e-07/2.65, allocations: 0 / 0.7637 GB, free: 161.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01394/2.664, allocations: 3.529 MB / 0.7671 GB, free: 158.1 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.05348/2.718, allocations: 16.63 MB / 0.7833 GB, free: 141.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0365/2.754, allocations: 9.354 MB / 0.7925 GB, free: 132.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.818e-06/2.754, allocations: 0 / 0.7925 GB, free: 132.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01683/2.771, allocations: 4.268 MB / 0.7966 GB, free: 128.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009084/2.78, allocations: 1.05 MB / 0.7977 GB, free: 127.1 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]