Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_FixedInitial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01026/0.01026, allocations: 163.8 kB / 15.12 MB, free: 5.961 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.782/1.782, allocations: 170.8 MB / 186.7 MB, free: 1.023 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00245/0.00245, allocations: 110.8 kB / 226.2 MB, free: 10.08 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4932/0.4932, allocations: 38.05 MB / 303.7 MB, free: 42.5 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004995/0.0004997, allocations: 16 kB / 363 MB, free: 5.488 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1225, allocations: 48.71 MB / 411.7 MB, free: 4.699 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial): time 0.4285/0.5511, allocations: 100.9 MB / 0.5006 GB, free: 2.473 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.08242/0.6336, allocations: 40.47 MB / 0.5401 GB, free: 15.98 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004418/0.6381, allocations: 103.1 kB / 0.5402 GB, free: 15.88 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005418/0.6435, allocations: 1.084 MB / 0.5412 GB, free: 14.78 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03042/0.674, allocations: 6.909 MB / 0.548 GB, free: 7.871 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03163/0.7057, allocations: 7.453 MB / 0.5553 GB, free: 420 kB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01625/0.7219, allocations: 9.158 MB / 0.5642 GB, free: 7.227 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004399/0.7264, allocations: 1.578 MB / 0.5658 GB, free: 5.633 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4752/1.202, allocations: 24.63 MB / 0.5898 GB, free: 34.33 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05932/1.261, allocations: 25.1 MB / 0.6143 GB, free: 33.98 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001435/1.263, allocations: 139 kB / 0.6145 GB, free: 33.98 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04817/1.311, allocations: 12.09 MB / 0.6263 GB, free: 29.19 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003389/1.314, allocations: 0.9956 MB / 0.6272 GB, free: 28.84 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002741/1.317, allocations: 0.6238 MB / 0.6278 GB, free: 28.48 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02288/1.34, allocations: 6.95 MB / 0.6346 GB, free: 25.39 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.759e-06/1.34, allocations: 0 / 0.6346 GB, free: 25.39 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.487e-06/1.34, allocations: 0 / 0.6346 GB, free: 25.39 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001872/1.34, allocations: 2.344 kB / 0.6346 GB, free: 25.39 MB / 426.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.02511/1.365, allocations: 3.956 MB / 0.6385 GB, free: 22.2 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.181e-05/1.366, allocations: 12.03 kB / 0.6385 GB, free: 22.19 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002469/1.368, allocations: 418.8 kB / 0.6389 GB, free: 22 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01694/1.385, allocations: 0.9542 MB / 0.6398 GB, free: 21.29 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008096/1.393, allocations: 1.73 MB / 0.6415 GB, free: 20.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008155/1.394, allocations: 283.6 kB / 0.6418 GB, free: 20 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001739/1.396, allocations: 249.6 kB / 0.642 GB, free: 19.84 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02328/1.419, allocations: 4.458 MB / 0.6464 GB, free: 16.45 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001375/1.419, allocations: 10.75 kB / 0.6464 GB, free: 16.45 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007566/1.42, allocations: 100.1 kB / 0.6465 GB, free: 16.42 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007543/1.421, allocations: 275.1 kB / 0.6468 GB, free: 16.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02473/1.446, allocations: 4.207 MB / 0.6509 GB, free: 13.2 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.05996/1.506, allocations: 18.83 MB / 0.6693 GB, free: 12.08 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01645/1.522, allocations: 2.87 MB / 0.6721 GB, free: 10.09 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005297/1.528, allocations: 1.576 MB / 0.6736 GB, free: 9.023 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06052/1.588, allocations: 17.21 MB / 0.6904 GB, free: 6.102 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.331e-05/1.588, allocations: 70.86 kB / 0.6905 GB, free: 6.039 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002129/1.59, allocations: 222.7 kB / 0.6907 GB, free: 5.855 MB / 458.7 MB Notification: Performance of pre-optimization done (n=192): time 6.532e-06/1.59, allocations: 0 / 0.6907 GB, free: 5.855 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 2: heater.mediums[1].p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=244): time 0.4686/2.059, allocations: 33.63 MB / 0.7235 GB, free: 8.957 MB / 490.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.003654/2.063, allocations: 1.027 MB / 0.7245 GB, free: 8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004178/2.067, allocations: 1.825 MB / 0.7263 GB, free: 6.598 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007692/2.068, allocations: 71.98 kB / 0.7264 GB, free: 6.555 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001298/2.069, allocations: 1.173 MB / 0.7275 GB, free: 5.797 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001721/2.071, allocations: 0.8289 MB / 0.7283 GB, free: 5.086 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004533/2.071, allocations: 57.2 kB / 0.7284 GB, free: 5.074 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003054/2.072, allocations: 416.2 kB / 0.7288 GB, free: 4.707 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007486/2.079, allocations: 2.016 MB / 0.7308 GB, free: 3.34 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008346/2.088, allocations: 2.605 MB / 0.7333 GB, free: 1.215 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008274/2.096, allocations: 2.237 MB / 0.7355 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.759e-05/2.096, allocations: 4 kB / 0.7355 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of matching and sorting (n=346) (initialization): time 0.02562/2.122, allocations: 5.924 MB / 0.7413 GB, free: 11.59 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009132/2.123, allocations: 0.5762 MB / 0.7418 GB, free: 10.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.714e-05/2.123, allocations: 16 kB / 0.7418 GB, free: 10.82 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02433/2.147, allocations: 3.168 MB / 0.7449 GB, free: 8.102 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005804/2.153, allocations: 0.6179 MB / 0.7455 GB, free: 7.539 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02243/2.176, allocations: 7.624 MB / 0.753 GB, free: 0.707 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007568/2.183, allocations: 447.2 kB / 0.7534 GB, free: 320 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001093/2.184, allocations: 155.7 kB / 0.7536 GB, free: 192 kB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/2.184, allocations: 8 kB / 0.7536 GB, free: 184 kB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02438/2.209, allocations: 5.328 MB / 0.7588 GB, free: 12.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001207/2.209, allocations: 23.98 kB / 0.7588 GB, free: 12.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01459/2.224, allocations: 2.081 MB / 0.7608 GB, free: 10.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01161/2.235, allocations: 0.6906 MB / 0.7615 GB, free: 10.16 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02594/2.261, allocations: 10.34 MB / 0.7716 GB, free: 480 kB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007069/2.268, allocations: 438.9 kB / 0.772 GB, free: 84 kB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.3651/2.633, allocations: 143.9 kB / 0.7722 GB, free: 211.2 MB / 0.5105 GB 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 (288): * Single equations (assignments): 277 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {2 10,2 4,1 1,1 1,2 7,4 14,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.003235/2.637, allocations: 0.8391 MB / 0.773 GB, free: 211 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001229/2.638, allocations: 240 kB / 0.7732 GB, free: 211 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03805/2.676, allocations: 12.34 MB / 0.7853 GB, free: 208.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03144/2.708, allocations: 11.03 MB / 0.796 GB, free: 204.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-05/2.708, allocations: 0.75 kB / 0.796 GB, free: 204.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03296/2.741, allocations: 11.13 MB / 0.8069 GB, free: 199.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05826/2.799, allocations: 19.18 MB / 0.8256 GB, free: 192.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.513e-05/2.799, allocations: 0 / 0.8256 GB, free: 192.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004241/2.803, allocations: 458.3 kB / 0.8261 GB, free: 192.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02716/2.831, allocations: 5.5 MB / 0.8314 GB, free: 190.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007799/2.831, allocations: 94.89 kB / 0.8315 GB, free: 190.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01756/2.849, allocations: 10.53 MB / 0.8418 GB, free: 181 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.003667/2.853, allocations: 1.606 MB / 0.8434 GB, free: 179.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04016/2.893, allocations: 14.53 MB / 0.8576 GB, free: 167 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00342/2.896, allocations: 0.9502 MB / 0.8585 GB, free: 166.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001235/2.898, allocations: 63.28 kB / 0.8586 GB, free: 166.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006294/2.904, allocations: 382.2 kB / 0.8589 GB, free: 165.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001102/2.905, allocations: 225.9 kB / 0.8591 GB, free: 165.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000649/2.906, allocations: 111.9 kB / 0.8593 GB, free: 165.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002804/2.909, allocations: 1.286 MB / 0.8605 GB, free: 164.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.61e-07/2.909, allocations: 0 / 0.8605 GB, free: 164.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01518/2.924, allocations: 3.53 MB / 0.864 GB, free: 160.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (219): * Single equations (assignments): 188 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 21 * 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,2 9,1 1,1 1,1 10,1 1,2 4,2 9,1 9,8 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.05372/2.978, allocations: 16.37 MB / 0.8799 GB, free: 144.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03672/3.014, allocations: 9.34 MB / 0.8891 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/3.014, allocations: 4 kB / 0.8891 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01677/3.031, allocations: 4.295 MB / 0.8933 GB, free: 131.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01042/3.042, allocations: 1.145 MB / 0.8944 GB, free: 130 MB / 0.5105 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4548:9-4548:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:754:5-754:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]