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_SteadyState.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: 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.479/2.479, allocations: 234.9 MB / 251.1 MB, free: 9.691 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004546/0.0004548, allocations: 12 kB / 314.9 MB, free: 9.738 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3658, allocations: 54.86 MB / 369.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.854/8.22, allocations: 2.67 GB / 3.031 GB, free: 49.34 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000293/8.221, allocations: 91.33 kB / 3.031 GB, free: 49.29 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.879/14.1, allocations: 1.024 GB / 4.055 GB, free: 33.86 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.236e-06/14.1, allocations: 0 / 4.055 GB, free: 33.86 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.00038/14.1, allocations: 76.5 kB / 4.056 GB, free: 33.85 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.02414/14.12, allocations: 4.689 MB / 4.06 GB, free: 31.88 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/14.12, allocations: 11.77 kB / 4.06 GB, free: 31.88 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01183/14.14, allocations: 1.026 MB / 4.061 GB, free: 31.71 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01001/14.15, allocations: 2.261 MB / 4.063 GB, free: 31.24 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005464/14.15, allocations: 280.3 kB / 4.064 GB, free: 31.17 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001418/14.15, allocations: 244.9 kB / 4.064 GB, free: 31.17 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01807/14.17, allocations: 4.502 MB / 4.068 GB, free: 30.57 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001456/14.17, allocations: 7.188 kB / 4.068 GB, free: 30.57 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001141/14.17, allocations: 112.3 kB / 4.068 GB, free: 30.57 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004189/14.17, allocations: 227.2 kB / 4.069 GB, free: 30.56 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01729/14.19, allocations: 4.185 MB / 4.073 GB, free: 30.53 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.04225/14.23, allocations: 19.03 MB / 4.091 GB, free: 19.64 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01079/14.24, allocations: 2.782 MB / 4.094 GB, free: 19.59 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05419/14.29, allocations: 17 MB / 4.111 GB, free: 25.06 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.696e-05/14.29, allocations: 50.78 kB / 4.111 GB, free: 25.02 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002549/14.3, allocations: 363.9 kB / 4.111 GB, free: 24.92 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=181): time 1.047e-05/14.3, allocations: 0 / 4.111 GB, free: 24.92 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 1.275/15.57, allocations: 71.04 MB / 4.18 GB, free: 19.71 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.08508/15.66, allocations: 10.32 MB / 4.19 GB, free: 18.59 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004685/15.66, allocations: 1.911 MB / 4.192 GB, free: 18.34 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001066/15.66, allocations: 73.86 kB / 4.192 GB, free: 18.31 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001197/15.66, allocations: 1.09 MB / 4.193 GB, free: 17.75 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001936/15.67, allocations: 0.9485 MB / 4.194 GB, free: 17.14 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006661/15.67, allocations: 58.06 kB / 4.194 GB, free: 17.14 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0003362/15.67, allocations: 426.2 kB / 4.195 GB, free: 16.83 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009815/15.68, allocations: 2.801 MB / 4.198 GB, free: 16.8 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01036/15.69, allocations: 3.373 MB / 4.201 GB, free: 16.2 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01269/15.7, allocations: 3.225 MB / 4.204 GB, free: 16.12 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.531e-05/15.7, allocations: 3.906 kB / 4.204 GB, free: 16.12 MB / 0.5417 GB Notification: Performance of matching and sorting (n=372) (initialization): time 0.03611/15.74, allocations: 9.26 MB / 4.213 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004095/15.74, allocations: 0.5211 MB / 4.214 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.849e-05/15.74, allocations: 24.64 kB / 4.214 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.129/15.87, allocations: 16.44 MB / 4.23 GB, free: 0.6133 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003528/15.87, allocations: 376.6 kB / 4.23 GB, free: 344 kB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04403/15.91, allocations: 10.99 MB / 4.241 GB, free: 10.24 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008167/15.92, allocations: 385.5 kB / 4.241 GB, free: 10 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001376/15.92, allocations: 176.2 kB / 4.241 GB, free: 9.879 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/15.92, allocations: 8 kB / 4.241 GB, free: 9.871 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03711/15.96, allocations: 8.675 MB / 4.25 GB, free: 5.418 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.069e-05/15.96, allocations: 12.97 kB / 4.25 GB, free: 5.406 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0563/16.02, allocations: 8.239 MB / 4.258 GB, free: 0.5703 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004154/16.02, allocations: 441.1 kB / 4.258 GB, free: 260 kB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5099/16.53, allocations: 10.03 MB / 4.268 GB, free: 59.29 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006797/16.54, allocations: 387.8 kB / 4.268 GB, free: 59.29 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001243/16.54, allocations: 170.1 kB / 4.269 GB, free: 59.29 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.003865/16.54, allocations: 0.8756 MB / 4.269 GB, free: 59.1 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001208/16.54, allocations: 249.2 kB / 4.27 GB, free: 59.1 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04746/16.59, allocations: 17.69 MB / 4.287 GB, free: 58.54 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001678/16.59, allocations: 115.1 kB / 4.287 GB, free: 58.54 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/16.59, allocations: 0 / 4.287 GB, free: 58.54 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03986/16.63, allocations: 15.86 MB / 4.303 GB, free: 57.69 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07332/16.7, allocations: 27.37 MB / 4.329 GB, free: 56.24 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.429e-05/16.7, allocations: 10.08 kB / 4.329 GB, free: 56.24 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002278/16.71, allocations: 230 kB / 4.329 GB, free: 56.24 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1348/16.84, allocations: 27.82 MB / 4.357 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001029/16.84, allocations: 104.2 kB / 4.357 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04479/16.89, allocations: 16.16 MB / 4.373 GB, free: 54 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.08576/16.97, allocations: 14.38 MB / 4.387 GB, free: 51.29 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07083/17.04, allocations: 24.08 MB / 4.41 GB, free: 36.79 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004382/17.05, allocations: 1.146 MB / 4.411 GB, free: 35.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001766/17.05, allocations: 57.22 kB / 4.411 GB, free: 35.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007597/17.06, allocations: 425.8 kB / 4.412 GB, free: 35.52 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001294/17.06, allocations: 263.6 kB / 4.412 GB, free: 35.36 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006152/17.06, allocations: 137.3 kB / 4.412 GB, free: 35.25 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.003112/17.06, allocations: 1.326 MB / 4.413 GB, free: 34.12 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7.92e-07/17.06, allocations: 3.688 kB / 4.413 GB, free: 34.12 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0223/17.09, allocations: 4.523 MB / 4.418 GB, free: 30.25 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.02862/17.11, allocations: 4.364 MB / 4.422 GB, free: 27.61 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.05312/17.17, allocations: 12.54 MB / 4.434 GB, free: 17.16 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.098e-05/17.17, allocations: 0 / 4.434 GB, free: 17.16 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.02178/17.19, allocations: 5.837 MB / 4.44 GB, free: 12.12 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009848/17.2, allocations: 1.017 MB / 4.441 GB, free: 11.41 MB / 0.5573 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]