Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem.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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.768/1.768, allocations: 194.9 MB / 211.1 MB, free: 7.598 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003084/0.0003085, allocations: 15.94 kB / 264 MB, free: 2.523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2658, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.1304/0.3962, allocations: 90.94 MB / 399.5 MB, free: 1.516 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.3324/0.7287, allocations: 37.83 MB / 437.3 MB, free: 6.699 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004816/0.7336, allocations: 102.8 kB / 437.4 MB, free: 6.699 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007139/0.7408, allocations: 1.223 MB / 438.6 MB, free: 6.695 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02655/0.7674, allocations: 6.48 MB / 445.1 MB, free: 6.621 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02851/0.7959, allocations: 7.472 MB / 452.6 MB, free: 6.32 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01053/0.8065, allocations: 5.457 MB / 458.1 MB, free: 5.355 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00641/0.813, allocations: 1.603 MB / 459.7 MB, free: 4.719 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.07077/0.8838, allocations: 24.39 MB / 484 MB, free: 4.293 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05897/0.9428, allocations: 23.96 MB / 0.4961 GB, free: 14.26 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009242/0.9438, allocations: 140 kB / 0.4962 GB, free: 14.12 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03718/0.981, allocations: 12.66 MB / 0.5086 GB, free: 3.832 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00222/0.9833, allocations: 0.9192 MB / 0.5095 GB, free: 3.238 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001576/0.9849, allocations: 0.6206 MB / 0.5101 GB, free: 2.879 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01828/1.003, allocations: 7.005 MB / 0.5169 GB, free: 12.89 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/1.003, allocations: 0 / 0.5169 GB, free: 12.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.347e-06/1.003, allocations: 0 / 0.5169 GB, free: 12.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.902e-05/1.003, allocations: 0 / 0.5169 GB, free: 12.89 MB / 410.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.0166/1.02, allocations: 4.026 MB / 0.5209 GB, free: 9.125 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/1.02, allocations: 8.031 kB / 0.5209 GB, free: 9.117 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001199/1.021, allocations: 416 kB / 0.5213 GB, free: 8.859 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009663/1.031, allocations: 1 MB / 0.5222 GB, free: 7.926 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004904/1.036, allocations: 1.725 MB / 0.5239 GB, free: 6.625 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003611/1.036, allocations: 278.7 kB / 0.5242 GB, free: 6.43 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006547/1.037, allocations: 253.1 kB / 0.5244 GB, free: 6.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01372/1.051, allocations: 4.429 MB / 0.5288 GB, free: 2.898 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.38e-05/1.051, allocations: 10.72 kB / 0.5288 GB, free: 2.891 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004469/1.051, allocations: 110.2 kB / 0.5289 GB, free: 2.863 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005371/1.052, allocations: 267.5 kB / 0.5291 GB, free: 2.629 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01469/1.066, allocations: 4.215 MB / 0.5332 GB, free: 15.64 MB / 426.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.03678/1.103, allocations: 18.83 MB / 0.5516 GB, free: 14.02 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01113/1.114, allocations: 2.868 MB / 0.5544 GB, free: 11.14 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05872/1.173, allocations: 17.22 MB / 0.5713 GB, free: 7.875 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.239e-05/1.173, allocations: 52.56 kB / 0.5713 GB, free: 7.816 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001906/1.175, allocations: 209.9 kB / 0.5715 GB, free: 7.609 MB / 458.7 MB Notification: Performance of pre-optimization done (n=192): time 4.919e-06/1.175, allocations: 4 kB / 0.5715 GB, free: 7.605 MB / 458.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: pump.medium.p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=244): time 0.6117/1.787, allocations: 31.34 MB / 0.6021 GB, free: 187.4 MB / 458.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.002993/1.79, allocations: 1.037 MB / 0.6031 GB, free: 186.3 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002937/1.793, allocations: 1.829 MB / 0.6049 GB, free: 184.4 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005437/1.794, allocations: 65.7 kB / 0.605 GB, free: 184.4 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008172/1.794, allocations: 1.181 MB / 0.6061 GB, free: 183.2 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000885/1.795, allocations: 0.823 MB / 0.6069 GB, free: 182.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003236/1.796, allocations: 55.23 kB / 0.607 GB, free: 182.3 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001438/1.796, allocations: 415.5 kB / 0.6074 GB, free: 181.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005543/1.801, allocations: 2.02 MB / 0.6094 GB, free: 179.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00585/1.807, allocations: 2.592 MB / 0.6119 GB, free: 177.1 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00591/1.813, allocations: 2.231 MB / 0.6141 GB, free: 174.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.115e-05/1.813, allocations: 15.94 kB / 0.6141 GB, free: 174.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=346) (initialization): time 0.01788/1.831, allocations: 6.574 MB / 0.6205 GB, free: 168.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002654/1.831, allocations: 0.5703 MB / 0.6211 GB, free: 167.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.537e-05/1.831, allocations: 16 kB / 0.6211 GB, free: 167.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.048/1.879, allocations: 8.085 MB / 0.629 GB, free: 159.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00304/1.882, allocations: 403.3 kB / 0.6293 GB, free: 158.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01844/1.901, allocations: 6.799 MB / 0.636 GB, free: 152 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006478/1.907, allocations: 451.2 kB / 0.6364 GB, free: 151.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004466/1.908, allocations: 153.2 kB / 0.6366 GB, free: 151.4 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/1.908, allocations: 4.781 kB / 0.6366 GB, free: 151.4 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01669/1.925, allocations: 5.947 MB / 0.6424 GB, free: 145.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.936e-05/1.925, allocations: 16 kB / 0.6424 GB, free: 145.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02206/1.947, allocations: 4.483 MB / 0.6468 GB, free: 140.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003441/1.95, allocations: 459.3 kB / 0.6472 GB, free: 140.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01539/1.966, allocations: 5.78 MB / 0.6529 GB, free: 134.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005973/1.972, allocations: 439.2 kB / 0.6533 GB, free: 134.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003883/1.972, allocations: 147.9 kB / 0.6534 GB, free: 134.1 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (185): * Single equations (assignments): 181 * Array equations: 2 * 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 {3 12,20 122} Notification: Performance of prepare postOptimizeDAE: time 0.001916/1.974, allocations: 0.8355 MB / 0.6542 GB, free: 133.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005787/1.975, allocations: 245 kB / 0.6545 GB, free: 133 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02829/2.003, allocations: 12.46 MB / 0.6666 GB, free: 120.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02515/2.028, allocations: 11.06 MB / 0.6774 GB, free: 109.2 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/2.028, allocations: 0 / 0.6774 GB, free: 109.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02482/2.053, allocations: 11.18 MB / 0.6883 GB, free: 97.9 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04274/2.096, allocations: 19.06 MB / 0.707 GB, free: 78.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.621e-05/2.096, allocations: 0 / 0.707 GB, free: 78.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003631/2.099, allocations: 444.6 kB / 0.7074 GB, free: 78.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02452/2.124, allocations: 5.951 MB / 0.7132 GB, free: 72.32 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005029/2.125, allocations: 91.94 kB / 0.7133 GB, free: 72.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01616/2.141, allocations: 10.82 MB / 0.7238 GB, free: 61.16 MB / 458.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 postOpt calculateStateSetsJacobians (simulation): time 0.003493/2.144, allocations: 1.831 MB / 0.7256 GB, free: 59.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.034/2.178, allocations: 14.68 MB / 0.74 GB, free: 44.48 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002512/2.181, allocations: 0.948 MB / 0.7409 GB, free: 43.51 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006686/2.181, allocations: 59.98 kB / 0.741 GB, free: 43.45 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004987/2.186, allocations: 391.2 kB / 0.7413 GB, free: 43.07 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006385/2.187, allocations: 229.9 kB / 0.7415 GB, free: 42.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003403/2.187, allocations: 103.9 kB / 0.7416 GB, free: 42.74 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002177/2.19, allocations: 1.265 MB / 0.7429 GB, free: 41.46 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.61e-07/2.19, allocations: 0 / 0.7429 GB, free: 41.46 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01116/2.201, allocations: 3.506 MB / 0.7463 GB, free: 38.2 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 ($STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],radiator.mediums[1].p,radiator.mediums[1].h,pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h) * Number of discrete variables: 58 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.region3boundary,$cse18.region3boundary,$cse19.phase,$cse19.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse41.phase,$cse41.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse47.region3boundary,$cse48.region3boundary,$cse49.phase,$cse49.region,$cse51.phase,$cse51.region,$cse53.phase,$cse53.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 (213): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 19 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 10 {1 1,1 1,1 10,1 1,2 12,1 1,2 4,2 9,1 9,9 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.04624/2.247, allocations: 16.62 MB / 0.7625 GB, free: 21.86 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03325/2.28, allocations: 9.188 MB / 0.7715 GB, free: 12.62 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/2.28, allocations: 0.75 kB / 0.7715 GB, free: 12.62 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2533/2.534, allocations: 4.259 MB / 0.7757 GB, free: 189.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008627/2.542, allocations: 1.028 MB / 0.7767 GB, free: 189.5 MB / 458.7 MB [/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]