Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.m|m_flow|T_forward|T_return|tankLevel|tank.ports.1..m_flow|tank.ports.1..p|tank.ports.1..h_outflow|tank.ports.2..m_flow|tank.ports.2..p|tank.ports.2..h_outflow|tank.portsData.1..diameter|tank.portsData.1..height|tank.portsData.1..zeta_out|tank.portsData.1..zeta_in|tank.portsData.2..diameter|tank.portsData.2..height|tank.portsData.2..zeta_out|tank.portsData.2..zeta_in|tank.ports_H_flow.1.|tank.ports_H_flow.2.|tank.ports_E_flow.1.|tank.ports_E_flow.2.|tank.ports_penetration.1.|tank.ports_penetration.2.|tank.portsData_diameter_internal.1.|tank.portsData_diameter_internal.2.|tank.portsData_height_internal.1.|tank.portsData_height_internal.2.|tank.portsData_zeta_in_internal.1.|tank.portsData_zeta_in_internal.2.|tank.portsData_zeta_out_internal.1.|tank.portsData_zeta_out_internal.2.|tank.portsData_diameter.1.|tank.portsData_diameter.2.|tank.portsData_height.1.|tank.portsData_height.2.|tank.portsData_zeta_in.1.|tank.portsData_zeta_in.2.|tank.portsData_zeta_out.1.|tank.portsData_zeta_out.2.|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valve.port_b.m_flow|valve.port_b.p|valve.port_b.h_outflow|valve.minLimiter.y|sensor_m_flow.port_b.m_flow|sensor_m_flow.port_b.p|sensor_m_flow.port_b.h_outflow|heater.port_b.m_flow|heater.port_b.p|heater.port_b.h_outflow|radiator.port_b.m_flow|radiator.port_b.p|radiator.port_b.h_outflow|handle.y|pipe.port_b.m_flow|pipe.port_b.p|pipe.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadModel(ModelicaTest): time 1.823/1.823, allocations: 209.2 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004506/0.0004505, allocations: 12 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2874, allocations: 48.7 MB / 331.3 MB, free: 6.484 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.981/6.269, allocations: 2.56 GB / 2.883 GB, free: 11.1 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001976/6.269, allocations: 82.39 kB / 2.883 GB, free: 11.05 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.675/10.94, allocations: 0.9984 GB / 3.882 GB, free: 24.07 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.109e-06/10.94, allocations: 0 / 3.882 GB, free: 24.07 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002565/10.94, allocations: 71.91 kB / 3.882 GB, free: 24.06 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.01684/10.96, allocations: 4.572 MB / 3.886 GB, free: 21.85 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/10.96, allocations: 10.59 kB / 3.886 GB, free: 21.85 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009746/10.97, allocations: 0.9818 MB / 3.887 GB, free: 21.69 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007436/10.98, allocations: 2.266 MB / 3.889 GB, free: 21.12 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003763/10.98, allocations: 280.4 kB / 3.89 GB, free: 21.05 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000885/10.98, allocations: 240.4 kB / 3.89 GB, free: 21.05 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01324/10.99, allocations: 4.485 MB / 3.894 GB, free: 20.43 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.666e-05/10.99, allocations: 10.55 kB / 3.894 GB, free: 20.43 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004895/10.99, allocations: 112 kB / 3.894 GB, free: 20.42 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003097/10.99, allocations: 219.5 kB / 3.895 GB, free: 20.41 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01345/11.01, allocations: 4.187 MB / 3.899 GB, free: 20.35 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.03056/11.04, allocations: 19.03 MB / 3.917 GB, free: 8.367 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008854/11.05, allocations: 2.781 MB / 3.92 GB, free: 7.449 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03849/11.09, allocations: 16.99 MB / 3.937 GB, free: 11.86 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.713e-05/11.09, allocations: 52.56 kB / 3.937 GB, free: 11.8 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002046/11.09, allocations: 366.5 kB / 3.937 GB, free: 11.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=181): time 7.004e-06/11.09, allocations: 0 / 3.937 GB, free: 11.5 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.104/12.19, allocations: 69.98 MB / 4.005 GB, free: 37.38 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.05747/12.25, allocations: 10.1 MB / 4.015 GB, free: 36.57 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003413/12.25, allocations: 1.694 MB / 4.017 GB, free: 36.35 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008061/12.25, allocations: 74.05 kB / 4.017 GB, free: 36.32 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008043/12.25, allocations: 1.098 MB / 4.018 GB, free: 35.88 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001407/12.25, allocations: 0.931 MB / 4.019 GB, free: 35.41 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004611/12.26, allocations: 62.84 kB / 4.019 GB, free: 35.41 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000204/12.26, allocations: 430.1 kB / 4.019 GB, free: 35.09 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007458/12.26, allocations: 2.766 MB / 4.022 GB, free: 35.07 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008095/12.27, allocations: 3.333 MB / 4.025 GB, free: 34.46 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009641/12.28, allocations: 3.191 MB / 4.028 GB, free: 34.38 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.467e-05/12.28, allocations: 3.469 kB / 4.028 GB, free: 34.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=372) (initialization): time 0.02713/12.31, allocations: 9.189 MB / 4.037 GB, free: 34.11 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001199/12.31, allocations: 5.836 MB / 4.043 GB, free: 27.97 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.084e-05/12.31, allocations: 15.03 kB / 4.043 GB, free: 27.97 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08328/12.39, allocations: 15.93 MB / 4.059 GB, free: 27.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002178/12.39, allocations: 362.1 kB / 4.059 GB, free: 27.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02936/12.42, allocations: 10.82 MB / 4.07 GB, free: 26.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005907/12.43, allocations: 393.3 kB / 4.07 GB, free: 26.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009906/12.43, allocations: 174.1 kB / 4.07 GB, free: 26.07 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/12.43, allocations: 7.703 kB / 4.07 GB, free: 26.07 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0242/12.46, allocations: 8.607 MB / 4.079 GB, free: 23.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.939e-05/12.46, allocations: 12 kB / 4.079 GB, free: 23.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03502/12.49, allocations: 8.019 MB / 4.086 GB, free: 18.78 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002343/12.49, allocations: 430.7 kB / 4.087 GB, free: 18.46 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02426/12.52, allocations: 9.89 MB / 4.096 GB, free: 12.89 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00444/12.52, allocations: 387.2 kB / 4.097 GB, free: 12.65 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000857/12.52, allocations: 171.6 kB / 4.097 GB, free: 12.54 MB / 490.7 MB 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.002922/12.53, allocations: 0.8662 MB / 4.098 GB, free: 12.06 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009506/12.53, allocations: 260.8 kB / 4.098 GB, free: 11.8 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04223/12.57, allocations: 17.95 MB / 4.116 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001583/12.57, allocations: 120.8 kB / 4.116 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/12.57, allocations: 0 / 4.116 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03567/12.6, allocations: 15.78 MB / 4.131 GB, free: 0.625 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4037/13.01, allocations: 27.32 MB / 4.158 GB, free: 68.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.382e-05/13.01, allocations: 3.891 kB / 4.158 GB, free: 68.15 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001525/13.01, allocations: 226.8 kB / 4.158 GB, free: 68.15 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.09566/13.11, allocations: 27.53 MB / 4.185 GB, free: 67.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008264/13.11, allocations: 101 kB / 4.185 GB, free: 67.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03428/13.14, allocations: 16.03 MB / 4.201 GB, free: 66.5 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.06216/13.2, allocations: 14.45 MB / 4.215 GB, free: 65.48 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04951/13.25, allocations: 22.75 MB / 4.237 GB, free: 64.75 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003619/13.26, allocations: 1.136 MB / 4.238 GB, free: 64.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001319/13.26, allocations: 59.47 kB / 4.238 GB, free: 64.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00515/13.26, allocations: 426.6 kB / 4.239 GB, free: 64.54 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001048/13.26, allocations: 258.9 kB / 4.239 GB, free: 64.54 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005786/13.26, allocations: 135.1 kB / 4.239 GB, free: 64.54 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003/13.27, allocations: 1.321 MB / 4.24 GB, free: 64.39 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.09e-07/13.27, allocations: 0.75 kB / 4.24 GB, free: 64.39 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01915/13.29, allocations: 4.485 MB / 4.245 GB, free: 64.3 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.0218/13.31, allocations: 4.334 MB / 4.249 GB, free: 63.68 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03725/13.35, allocations: 12.45 MB / 4.261 GB, free: 56.62 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.153e-05/13.35, allocations: 1.094 kB / 4.261 GB, free: 56.62 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01508/13.36, allocations: 5.773 MB / 4.267 GB, free: 51.63 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006757/13.37, allocations: 1.02 MB / 4.268 GB, free: 50.92 MB / 0.5105 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4493:9-4493: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]