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: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.426/2.426, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000603/0.0006033, allocations: 20 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3491/0.3498, allocations: 54.85 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.036/8.386, allocations: 2.67 GB / 3.031 GB, free: 18.17 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/8.386, allocations: 78.22 kB / 3.031 GB, free: 18.13 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.091/14.48, allocations: 1.024 GB / 4.055 GB, free: 34.01 MB / 0.5261 GB Notification: Performance of FrontEnd: time 4.97e-06/14.48, allocations: 0 / 4.055 GB, free: 34.01 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000388/14.48, allocations: 78.72 kB / 4.055 GB, free: 34 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.02517/14.5, allocations: 4.697 MB / 4.06 GB, free: 31.89 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/14.5, allocations: 8.656 kB / 4.06 GB, free: 31.89 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00237/14.5, allocations: 427.7 kB / 4.06 GB, free: 31.82 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01233/14.52, allocations: 1.025 MB / 4.061 GB, free: 31.66 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009858/14.53, allocations: 2.261 MB / 4.063 GB, free: 31.17 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005617/14.53, allocations: 283.3 kB / 4.064 GB, free: 31.1 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001396/14.53, allocations: 238.6 kB / 4.064 GB, free: 31.1 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01614/14.55, allocations: 4.501 MB / 4.068 GB, free: 30.5 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.644e-05/14.55, allocations: 9.812 kB / 4.068 GB, free: 30.5 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006173/14.55, allocations: 108.6 kB / 4.068 GB, free: 30.5 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003953/14.55, allocations: 220.9 kB / 4.069 GB, free: 30.49 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01643/14.56, allocations: 4.188 MB / 4.073 GB, free: 30.45 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.05419/14.62, allocations: 19.05 MB / 4.091 GB, free: 19.53 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03278/14.65, allocations: 2.772 MB / 4.094 GB, free: 19.48 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06185/14.71, allocations: 17 MB / 4.111 GB, free: 24.95 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.834e-05/14.71, allocations: 56.66 kB / 4.111 GB, free: 24.91 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00255/14.71, allocations: 365.2 kB / 4.111 GB, free: 24.81 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=181): time 5.881e-06/14.71, allocations: 0 / 4.111 GB, free: 24.81 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.132/15.85, allocations: 70 MB / 4.179 GB, free: 19.36 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.07631/15.92, allocations: 10.1 MB / 4.189 GB, free: 16.07 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004036/15.93, allocations: 1.693 MB / 4.191 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.00105/15.93, allocations: 75.7 kB / 4.191 GB, free: 15 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001046/15.93, allocations: 1.096 MB / 4.192 GB, free: 14.33 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001877/15.93, allocations: 0.9373 MB / 4.193 GB, free: 13.61 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005606/15.93, allocations: 63.53 kB / 4.193 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0003269/15.93, allocations: 434.3 kB / 4.193 GB, free: 13.24 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008978/15.94, allocations: 2.764 MB / 4.196 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01004/15.95, allocations: 3.335 MB / 4.199 GB, free: 9.863 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01254/15.96, allocations: 3.19 MB / 4.202 GB, free: 8.227 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.631e-05/15.96, allocations: 8 kB / 4.203 GB, free: 8.219 MB / 0.5417 GB Notification: Performance of matching and sorting (n=372) (initialization): time 0.03516/16, allocations: 9.176 MB / 4.211 GB, free: 3.426 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002533/16, allocations: 5.836 MB / 4.217 GB, free: 13.25 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.415e-05/16, allocations: 19.42 kB / 4.217 GB, free: 13.23 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1169/16.12, allocations: 15.93 MB / 4.233 GB, free: 2.875 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003156/16.12, allocations: 364.9 kB / 4.233 GB, free: 2.609 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4971/16.62, allocations: 10.88 MB / 4.244 GB, free: 60.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007513/16.63, allocations: 388.2 kB / 4.244 GB, free: 60.88 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001014/16.63, allocations: 176.2 kB / 4.244 GB, free: 60.88 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/16.63, allocations: 3.688 kB / 4.244 GB, free: 60.88 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03098/16.66, allocations: 8.597 MB / 4.253 GB, free: 60.77 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.731e-05/16.66, allocations: 14.22 kB / 4.253 GB, free: 60.77 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04756/16.71, allocations: 8.021 MB / 4.26 GB, free: 60.72 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003507/16.71, allocations: 431.4 kB / 4.261 GB, free: 60.72 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03262/16.74, allocations: 9.893 MB / 4.271 GB, free: 59.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006332/16.75, allocations: 390.1 kB / 4.271 GB, free: 59.64 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001054/16.75, allocations: 167 kB / 4.271 GB, free: 59.64 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.003246/16.75, allocations: 0.8756 MB / 4.272 GB, free: 59.45 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001146/16.75, allocations: 254.5 kB / 4.272 GB, free: 59.45 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04492/16.8, allocations: 17.59 MB / 4.289 GB, free: 58.9 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001728/16.8, allocations: 122.4 kB / 4.289 GB, free: 58.9 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/16.8, allocations: 0 / 4.289 GB, free: 58.9 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04774/16.85, allocations: 15.78 MB / 4.305 GB, free: 58.05 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08279/16.93, allocations: 27.23 MB / 4.331 GB, free: 56.59 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.639e-05/16.93, allocations: 3.734 kB / 4.331 GB, free: 56.59 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001952/16.93, allocations: 227.6 kB / 4.332 GB, free: 56.59 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1278/17.06, allocations: 27.51 MB / 4.359 GB, free: 54.86 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001019/17.06, allocations: 102.8 kB / 4.359 GB, free: 54.81 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04229/17.1, allocations: 16.03 MB / 4.374 GB, free: 48.14 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.08218/17.19, allocations: 14.46 MB / 4.388 GB, free: 40.21 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05758/17.24, allocations: 22.75 MB / 4.411 GB, free: 20.21 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003956/17.25, allocations: 1.137 MB / 4.412 GB, free: 19.29 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001365/17.25, allocations: 56 kB / 4.412 GB, free: 19.23 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007249/17.26, allocations: 422.9 kB / 4.412 GB, free: 18.95 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00137/17.26, allocations: 258.8 kB / 4.412 GB, free: 18.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005889/17.26, allocations: 142 kB / 4.413 GB, free: 18.68 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.003017/17.26, allocations: 1.317 MB / 4.414 GB, free: 17.56 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5.81e-07/17.26, allocations: 0 / 4.414 GB, free: 17.56 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02311/17.28, allocations: 4.521 MB / 4.418 GB, free: 13.73 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.5869/17.87, allocations: 27.15 MB / 4.445 GB, free: 76.65 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.04928/17.92, allocations: 12.44 MB / 4.457 GB, free: 76.43 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/17.92, allocations: 0 / 4.457 GB, free: 76.43 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01954/17.94, allocations: 5.779 MB / 4.463 GB, free: 76.32 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009177/17.95, allocations: 1.024 MB / 4.464 GB, free: 76.3 MB / 0.573 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]