Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadModel(ModelicaTest): time 2.145/2.145, allocations: 234.9 MB / 250.5 MB, free: 9.535 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004433/0.0004434, allocations: 16 kB / 314.4 MB, free: 9.535 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2763, allocations: 54.85 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.192/6.468, allocations: 2.67 GB / 3.031 GB, free: 36.32 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/6.468, allocations: 80.14 kB / 3.031 GB, free: 36.28 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.775/11.24, allocations: 1.024 GB / 4.055 GB, free: 34.06 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.384e-06/11.24, allocations: 4.281 kB / 4.055 GB, free: 34.06 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003121/11.24, allocations: 72.83 kB / 4.055 GB, free: 34.05 MB / 0.5261 GB 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.01798/11.26, allocations: 4.69 MB / 4.06 GB, free: 32.04 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/11.26, allocations: 9.469 kB / 4.06 GB, free: 32.04 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01007/11.27, allocations: 1.019 MB / 4.061 GB, free: 31.88 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007665/11.28, allocations: 2.263 MB / 4.063 GB, free: 31.4 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004561/11.28, allocations: 289.3 kB / 4.063 GB, free: 31.33 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001035/11.28, allocations: 243.1 kB / 4.063 GB, free: 31.33 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01314/11.29, allocations: 4.482 MB / 4.068 GB, free: 30.73 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.207e-05/11.29, allocations: 5.156 kB / 4.068 GB, free: 30.73 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005188/11.29, allocations: 110.5 kB / 4.068 GB, free: 30.73 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003208/11.3, allocations: 223.4 kB / 4.068 GB, free: 30.72 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01356/11.31, allocations: 4.182 MB / 4.072 GB, free: 30.69 MB / 0.5261 GB 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.03145/11.34, allocations: 19.03 MB / 4.091 GB, free: 19.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008978/11.35, allocations: 2.778 MB / 4.093 GB, free: 19.75 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03707/11.39, allocations: 17 MB / 4.11 GB, free: 25.23 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.534e-05/11.39, allocations: 54.16 kB / 4.11 GB, free: 25.19 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002087/11.39, allocations: 364.2 kB / 4.11 GB, free: 25.09 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=181): time 7.169e-06/11.39, allocations: 0 / 4.11 GB, free: 25.09 MB / 0.5417 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: 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 0.7927/12.18, allocations: 69.99 MB / 4.179 GB, free: 19.7 MB / 0.5417 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.05843/12.24, allocations: 10.11 MB / 4.189 GB, free: 18.58 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003117/12.24, allocations: 1.701 MB / 4.19 GB, free: 18.35 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0007162/12.24, allocations: 73.89 kB / 4.19 GB, free: 18.32 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007368/12.24, allocations: 1.095 MB / 4.191 GB, free: 17.76 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001137/12.25, allocations: 0.9321 MB / 4.192 GB, free: 17.16 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004307/12.25, allocations: 56.03 kB / 4.192 GB, free: 17.16 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002894/12.25, allocations: 428.9 kB / 4.193 GB, free: 16.84 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007265/12.25, allocations: 2.775 MB / 4.196 GB, free: 16.82 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00817/12.26, allocations: 3.326 MB / 4.199 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009725/12.27, allocations: 3.196 MB / 4.202 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-05/12.27, allocations: 5.125 kB / 4.202 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of matching and sorting (n=372) (initialization): time 0.02627/12.3, allocations: 9.174 MB / 4.211 GB, free: 9.477 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.003309/12.3, allocations: 5.842 MB / 4.217 GB, free: 3.301 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.845e-05/12.3, allocations: 16 kB / 4.217 GB, free: 3.285 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08343/12.38, allocations: 15.97 MB / 4.232 GB, free: 9.004 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002195/12.39, allocations: 368.6 kB / 4.233 GB, free: 8.734 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02957/12.42, allocations: 10.83 MB / 4.243 GB, free: 2.723 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005503/12.42, allocations: 395.9 kB / 4.244 GB, free: 2.477 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001096/12.42, allocations: 180.7 kB / 4.244 GB, free: 2.352 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/12.42, allocations: 4 kB / 4.244 GB, free: 2.348 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.3976/12.82, allocations: 8.991 MB / 4.252 GB, free: 60.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.556e-05/12.82, allocations: 15.25 kB / 4.252 GB, free: 60.33 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03782/12.86, allocations: 8.016 MB / 4.26 GB, free: 60.29 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002381/12.86, allocations: 428.7 kB / 4.261 GB, free: 60.29 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02581/12.89, allocations: 9.895 MB / 4.27 GB, free: 59.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004466/12.89, allocations: 384.8 kB / 4.271 GB, free: 59.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008306/12.89, allocations: 170.5 kB / 4.271 GB, free: 59.2 MB / 0.5573 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.002827/12.9, allocations: 0.8731 MB / 4.272 GB, free: 59.02 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009288/12.9, allocations: 253.6 kB / 4.272 GB, free: 59.02 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03597/12.93, allocations: 17.59 MB / 4.289 GB, free: 58.46 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001259/12.93, allocations: 122.8 kB / 4.289 GB, free: 58.46 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/12.93, allocations: 0 / 4.289 GB, free: 58.46 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03103/12.96, allocations: 15.78 MB / 4.305 GB, free: 57.61 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0548/13.02, allocations: 27.22 MB / 4.331 GB, free: 56.17 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-05/13.02, allocations: 3.375 kB / 4.331 GB, free: 56.17 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001498/13.02, allocations: 230 kB / 4.332 GB, free: 56.17 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.09673/13.12, allocations: 27.51 MB / 4.358 GB, free: 55.71 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007907/13.12, allocations: 108.8 kB / 4.358 GB, free: 55.71 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03266/13.15, allocations: 16.03 MB / 4.374 GB, free: 51.97 MB / 0.5573 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.06196/13.21, allocations: 14.44 MB / 4.388 GB, free: 49.3 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04465/13.26, allocations: 22.76 MB / 4.41 GB, free: 30.25 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003368/13.26, allocations: 1.126 MB / 4.412 GB, free: 29.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001244/13.26, allocations: 56.17 kB / 4.412 GB, free: 29.28 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004946/13.27, allocations: 430.8 kB / 4.412 GB, free: 28.99 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001009/13.27, allocations: 263.5 kB / 4.412 GB, free: 28.84 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005721/13.27, allocations: 132.7 kB / 4.412 GB, free: 28.72 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002805/13.27, allocations: 1.322 MB / 4.414 GB, free: 27.6 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.08e-06/13.27, allocations: 0 / 4.414 GB, free: 27.6 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01798/13.29, allocations: 4.513 MB / 4.418 GB, free: 23.75 MB / 0.5573 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.02103/13.31, allocations: 4.348 MB / 4.422 GB, free: 21.13 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.03623/13.35, allocations: 12.44 MB / 4.434 GB, free: 10.77 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/13.35, allocations: 0 / 4.434 GB, free: 10.77 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01466/13.36, allocations: 5.781 MB / 4.44 GB, free: 5.777 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006437/13.37, allocations: 1.021 MB / 4.441 GB, free: 5.07 MB / 0.5573 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]