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: 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.916/1.916, allocations: 209.2 MB / 225.4 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004422/0.0004423, allocations: 12 kB / 283.1 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3472/0.3477, allocations: 48.7 MB / 331.8 MB, free: 6.484 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.41/7.757, allocations: 2.56 GB / 2.884 GB, free: 96.39 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002825/7.758, allocations: 88.56 kB / 2.884 GB, free: 96.39 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.295/13.05, allocations: 0.9984 GB / 3.882 GB, free: 1.516 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.214e-06/13.05, allocations: 0 / 3.882 GB, free: 1.516 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003732/13.05, allocations: 75.92 kB / 3.882 GB, free: 1.441 MB / 490.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.4415/13.49, allocations: 4.563 MB / 3.887 GB, free: 29.49 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/13.49, allocations: 8.781 kB / 3.887 GB, free: 29.49 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0117/13.51, allocations: 0.9824 MB / 3.888 GB, free: 29.32 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00992/13.52, allocations: 2.256 MB / 3.89 GB, free: 28.89 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005257/13.52, allocations: 281.5 kB / 3.89 GB, free: 28.82 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001272/13.52, allocations: 241 kB / 3.89 GB, free: 28.82 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0165/13.53, allocations: 4.502 MB / 3.895 GB, free: 28.21 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.385e-05/13.54, allocations: 11.16 kB / 3.895 GB, free: 28.21 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005453/13.54, allocations: 113.4 kB / 3.895 GB, free: 28.21 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004366/13.54, allocations: 220.4 kB / 3.895 GB, free: 28.2 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01683/13.55, allocations: 4.184 MB / 3.899 GB, free: 28.17 MB / 490.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.04034/13.59, allocations: 19.02 MB / 3.918 GB, free: 17.3 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01045/13.6, allocations: 2.786 MB / 3.92 GB, free: 17.25 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05469/13.66, allocations: 16.98 MB / 3.937 GB, free: 22.75 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.101e-05/13.66, allocations: 64.92 kB / 3.937 GB, free: 22.71 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002686/13.66, allocations: 361.4 kB / 3.937 GB, free: 22.61 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=181): time 9.197e-06/13.66, allocations: 3.688 kB / 3.937 GB, free: 22.61 MB / 0.4948 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.19/14.85, allocations: 71.04 MB / 4.007 GB, free: 17.52 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.08204/14.93, allocations: 10.32 MB / 4.017 GB, free: 16.4 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00424/14.94, allocations: 1.91 MB / 4.019 GB, free: 16.15 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001064/14.94, allocations: 81.05 kB / 4.019 GB, free: 16.12 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001114/14.94, allocations: 1.087 MB / 4.02 GB, free: 15.56 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001908/14.94, allocations: 0.9407 MB / 4.021 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005833/14.94, allocations: 57.25 kB / 4.021 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003247/14.94, allocations: 430.7 kB / 4.021 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009315/14.95, allocations: 2.8 MB / 4.024 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009939/14.96, allocations: 3.381 MB / 4.027 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01196/14.97, allocations: 3.219 MB / 4.031 GB, free: 11.17 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.588e-05/14.97, allocations: 4 kB / 4.031 GB, free: 11.16 MB / 0.4948 GB Notification: Performance of matching and sorting (n=372) (initialization): time 0.03311/15.01, allocations: 9.26 MB / 4.04 GB, free: 6.336 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005505/15.01, allocations: 0.5222 MB / 4.04 GB, free: 5.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.868e-05/15.01, allocations: 16 kB / 4.04 GB, free: 5.645 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1283/15.14, allocations: 16.58 MB / 4.056 GB, free: 11.24 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003578/15.14, allocations: 377.4 kB / 4.057 GB, free: 10.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04192/15.18, allocations: 10.98 MB / 4.067 GB, free: 4.875 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008028/15.19, allocations: 394.3 kB / 4.068 GB, free: 4.629 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001307/15.19, allocations: 176.5 kB / 4.068 GB, free: 4.508 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/15.19, allocations: 7.953 kB / 4.068 GB, free: 4.5 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03383/15.22, allocations: 8.682 MB / 4.076 GB, free: 0 / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001833/15.23, allocations: 26.25 kB / 4.076 GB, free: 0 / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4772/15.7, allocations: 8.228 MB / 4.084 GB, free: 58.46 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004122/15.71, allocations: 444.9 kB / 4.085 GB, free: 58.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03481/15.74, allocations: 10.02 MB / 4.095 GB, free: 57.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006687/15.75, allocations: 386.8 kB / 4.095 GB, free: 57.38 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001016/15.75, allocations: 175.9 kB / 4.095 GB, free: 57.38 MB / 0.5105 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.003289/15.75, allocations: 0.8768 MB / 4.096 GB, free: 57.19 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001128/15.75, allocations: 257.2 kB / 4.096 GB, free: 57.19 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04576/15.8, allocations: 17.68 MB / 4.114 GB, free: 56.63 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001791/15.8, allocations: 117.1 kB / 4.114 GB, free: 56.63 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/15.8, allocations: 0 / 4.114 GB, free: 56.63 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0388/15.84, allocations: 15.86 MB / 4.129 GB, free: 55.78 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07254/15.91, allocations: 27.38 MB / 4.156 GB, free: 54.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.138e-05/15.91, allocations: 2.312 kB / 4.156 GB, free: 54.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002265/15.91, allocations: 239.5 kB / 4.156 GB, free: 54.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1336/16.05, allocations: 27.81 MB / 4.183 GB, free: 53.83 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001087/16.05, allocations: 105.5 kB / 4.183 GB, free: 53.83 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04375/16.09, allocations: 16.16 MB / 4.199 GB, free: 48 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.08443/16.18, allocations: 14.38 MB / 4.213 GB, free: 40.41 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06877/16.25, allocations: 24.08 MB / 4.237 GB, free: 19.55 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004419/16.25, allocations: 1.145 MB / 4.238 GB, free: 18.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001809/16.25, allocations: 59.7 kB / 4.238 GB, free: 18.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007133/16.26, allocations: 431.3 kB / 4.238 GB, free: 18.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001212/16.26, allocations: 260.8 kB / 4.239 GB, free: 18.05 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005878/16.26, allocations: 134 kB / 4.239 GB, free: 17.93 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0029/16.26, allocations: 1.325 MB / 4.24 GB, free: 16.81 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.51e-07/16.26, allocations: 0 / 4.24 GB, free: 16.81 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02134/16.29, allocations: 4.496 MB / 4.244 GB, free: 12.81 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.02722/16.31, allocations: 4.346 MB / 4.249 GB, free: 10.01 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05886/16.37, allocations: 12.54 MB / 4.261 GB, free: 15.49 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.375e-05/16.37, allocations: 5.938 kB / 4.261 GB, free: 15.49 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.4384/16.81, allocations: 7.11 MB / 4.268 GB, free: 71.31 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009824/16.82, allocations: 1.027 MB / 4.269 GB, free: 71.3 MB / 0.5261 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]