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_SteadyState.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_SteadyState,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.012/2.012, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004433/0.0004434, allocations: 12 kB / 282.7 MB, free: 9.562 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1081, allocations: 48.71 MB / 331.4 MB, free: 8.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.083/8.191, allocations: 2.56 GB / 2.883 GB, free: 59.71 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003011/8.191, allocations: 80.84 kB / 2.883 GB, free: 59.67 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.575/13.77, allocations: 0.9985 GB / 3.882 GB, free: 17.89 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.755e-06/13.77, allocations: 1.219 kB / 3.882 GB, free: 17.89 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003374/13.77, allocations: 73.17 kB / 3.882 GB, free: 17.88 MB / 474.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.02296/13.79, allocations: 4.577 MB / 3.886 GB, free: 15.73 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/13.79, allocations: 9.219 kB / 3.886 GB, free: 15.73 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002435/13.79, allocations: 422.6 kB / 3.887 GB, free: 15.67 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01183/13.8, allocations: 0.9843 MB / 3.888 GB, free: 15.51 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009321/13.81, allocations: 2.254 MB / 3.89 GB, free: 15.03 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004566/13.81, allocations: 284 kB / 3.89 GB, free: 14.95 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001219/13.82, allocations: 244.7 kB / 3.89 GB, free: 14.95 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0157/13.83, allocations: 4.492 MB / 3.895 GB, free: 14.35 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.058e-05/13.83, allocations: 7.188 kB / 3.895 GB, free: 14.35 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005343/13.83, allocations: 110.4 kB / 3.895 GB, free: 14.35 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004014/13.83, allocations: 227.6 kB / 3.895 GB, free: 14.34 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01606/13.85, allocations: 4.185 MB / 3.899 GB, free: 14.31 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.04201/13.89, allocations: 19.06 MB / 3.918 GB, free: 19.36 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01058/13.9, allocations: 2.774 MB / 3.921 GB, free: 19.32 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05519/13.96, allocations: 17.01 MB / 3.937 GB, free: 8.719 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.777e-05/13.96, allocations: 54.69 kB / 3.937 GB, free: 8.68 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002724/13.96, allocations: 361.2 kB / 3.938 GB, free: 8.555 MB / 490.7 MB Notification: Performance of pre-optimization done (n=181): time 8.365e-06/13.96, allocations: 0 / 3.938 GB, free: 8.555 MB / 490.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: tank.medium.h 2: radiator.mediums[1].h 3: pipe.mediums[2].h 4: pipe.mediums[2].p 5: pipe.mediums[1].p 6: pipe.mediums[1].h 7: heater.mediums[1].h 8: radiator.mediums[1].p 9: pump.medium.h 10: pump.medium.p 11: heater.mediums[1].p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=283): time 1.137/15.1, allocations: 69.98 MB / 4.006 GB, free: 2.75 MB / 0.4948 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.5007/15.6, allocations: 10.13 MB / 4.016 GB, free: 48.08 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004522/15.6, allocations: 1.697 MB / 4.017 GB, free: 47.89 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001003/15.6, allocations: 74.02 kB / 4.017 GB, free: 47.86 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001062/15.6, allocations: 1.099 MB / 4.019 GB, free: 47.7 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001809/15.61, allocations: 0.9417 MB / 4.019 GB, free: 47.28 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005445/15.61, allocations: 55.94 kB / 4.02 GB, free: 47.28 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002241/15.61, allocations: 431.8 kB / 4.02 GB, free: 46.96 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009049/15.62, allocations: 2.769 MB / 4.023 GB, free: 46.95 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01055/15.63, allocations: 3.329 MB / 4.026 GB, free: 46.38 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01219/15.64, allocations: 3.191 MB / 4.029 GB, free: 46.34 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.724e-05/15.64, allocations: 3.906 kB / 4.029 GB, free: 46.34 MB / 0.4948 GB Notification: Performance of matching and sorting (n=372) (initialization): time 0.0325/15.67, allocations: 9.185 MB / 4.038 GB, free: 46.13 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001348/15.67, allocations: 5.843 MB / 4.044 GB, free: 40.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.278e-05/15.67, allocations: 16.91 kB / 4.044 GB, free: 40.09 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1115/15.78, allocations: 15.92 MB / 4.059 GB, free: 39.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002974/15.79, allocations: 364.9 kB / 4.06 GB, free: 39.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0352/15.82, allocations: 10.83 MB / 4.07 GB, free: 38.72 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007983/15.83, allocations: 392 kB / 4.071 GB, free: 38.71 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001436/15.83, allocations: 176.8 kB / 4.071 GB, free: 38.71 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/15.83, allocations: 4.656 kB / 4.071 GB, free: 38.71 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03129/15.86, allocations: 8.602 MB / 4.079 GB, free: 38.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.647e-05/15.86, allocations: 13.41 kB / 4.079 GB, free: 38.61 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04787/15.91, allocations: 8.018 MB / 4.087 GB, free: 38.55 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003596/15.91, allocations: 429.2 kB / 4.087 GB, free: 38.55 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03278/15.95, allocations: 9.895 MB / 4.097 GB, free: 37.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006436/15.95, allocations: 379.4 kB / 4.097 GB, free: 37.42 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001119/15.96, allocations: 172.6 kB / 4.098 GB, free: 37.42 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (176): * Single equations (assignments): 174 * Array equations: 0 * 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 {16 79,18 85} Notification: Performance of prepare postOptimizeDAE: time 0.003489/15.96, allocations: 0.8783 MB / 4.098 GB, free: 37.23 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001097/15.96, allocations: 254.6 kB / 4.099 GB, free: 37.1 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04508/16.01, allocations: 17.59 MB / 4.116 GB, free: 36.43 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001637/16.01, allocations: 116.3 kB / 4.116 GB, free: 36.43 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/16.01, allocations: 0 / 4.116 GB, free: 36.43 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03797/16.04, allocations: 15.79 MB / 4.131 GB, free: 33.14 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08378/16.13, allocations: 27.23 MB / 4.158 GB, free: 18.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.312e-05/16.13, allocations: 3.797 kB / 4.158 GB, free: 18.52 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002601/16.13, allocations: 227 kB / 4.158 GB, free: 18.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1602/16.29, allocations: 27.77 MB / 4.185 GB, free: 12.57 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001101/16.29, allocations: 103 kB / 4.185 GB, free: 12.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4897/16.78, allocations: 16.16 MB / 4.201 GB, free: 59.91 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.08643/16.87, allocations: 14.45 MB / 4.215 GB, free: 58.97 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05738/16.92, allocations: 22.75 MB / 4.238 GB, free: 58.25 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004155/16.93, allocations: 1.142 MB / 4.239 GB, free: 58.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00152/16.93, allocations: 62.41 kB / 4.239 GB, free: 58.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007297/16.94, allocations: 429 kB / 4.239 GB, free: 58.11 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001292/16.94, allocations: 257.6 kB / 4.239 GB, free: 58.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000575/16.94, allocations: 132.6 kB / 4.239 GB, free: 58.11 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003229/16.94, allocations: 1.326 MB / 4.241 GB, free: 57.96 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.02e-07/16.94, allocations: 3.094 kB / 4.241 GB, free: 57.96 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02344/16.97, allocations: 4.49 MB / 4.245 GB, free: 57.96 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 60 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.region3boundary,$cse13.region3boundary,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse25.region3boundary,$cse26.region3boundary,$cse27.phase,$cse27.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse48.phase,$cse48.region,$cse49.phase,$cse49.region,$cse50.phase,$cse50.region,$cse51.region3boundary,$cse52.region3boundary,$cse53.phase,$cse53.region,$cse54.region3boundary,$cse55.region3boundary,$cse56.phase,$cse56.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 (108): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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 {15 83,20 123} Notification: Performance of Backend phase and start with SimCode phase: time 0.08823/17.05, allocations: 25.43 MB / 4.27 GB, free: 55.98 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05124/17.11, allocations: 12.45 MB / 4.282 GB, free: 55.76 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/17.11, allocations: 0 / 4.282 GB, free: 55.76 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02056/17.13, allocations: 5.777 MB / 4.288 GB, free: 55.64 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009521/17.14, allocations: 1.024 MB / 4.289 GB, free: 55.61 MB / 0.5105 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4493:9-4493: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]