Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.004491/0.004491, allocations: 114.3 kB / 21.97 MB, free: 5.223 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 216.2 kB / 25.28 MB, free: 3.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.297/1.297, allocations: 207.6 MB / 236 MB, free: 9.977 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 54.58 kB / 348 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.231/0.2326, allocations: 49.15 MB / 397.1 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.09314/0.3258, allocations: 91.33 MB / 488.5 MB, free: 7.742 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0324/0.3582, allocations: 21.48 MB / 0.498 GB, free: 2.203 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003297/0.3615, allocations: 122.9 kB / 0.4981 GB, free: 2.082 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002691/0.3642, allocations: 0.9668 MB / 0.499 GB, free: 1.109 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01033/0.3745, allocations: 3.869 MB / 0.5028 GB, free: 13.22 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01308/0.3876, allocations: 6.006 MB / 0.5087 GB, free: 7.203 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01018/0.3978, allocations: 7.393 MB / 0.5159 GB, free: 15.79 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00282/0.4006, allocations: 1.607 MB / 0.5175 GB, free: 14.16 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3372/0.7377, allocations: 74.44 MB / 0.5902 GB, free: 38.5 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05048/0.7882, allocations: 31.86 MB / 0.6213 GB, free: 27.2 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007227/0.7889, allocations: 252 kB / 0.6215 GB, free: 26.95 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01021/0.7991, allocations: 6.135 MB / 0.6275 GB, free: 22.17 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001104/0.8002, allocations: 1.124 MB / 0.6286 GB, free: 21.52 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001706/0.8019, allocations: 1.499 MB / 0.6301 GB, free: 20.79 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006654/0.8086, allocations: 5.55 MB / 0.6355 GB, free: 16.46 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.8086, allocations: 0 / 0.6355 GB, free: 16.46 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.8086, allocations: 0 / 0.6355 GB, free: 16.46 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.874e-05/0.8087, allocations: 0 / 0.6355 GB, free: 16.46 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.007477/0.8161, allocations: 3.529 MB / 0.6389 GB, free: 13.33 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.8162, allocations: 11.98 kB / 0.639 GB, free: 13.32 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.697e-05/0.8162, allocations: 57.67 kB / 0.639 GB, free: 13.26 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004179/0.8166, allocations: 347.8 kB / 0.6393 GB, free: 13.04 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008418/0.8175, allocations: 327.2 kB / 0.6397 GB, free: 12.72 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002389/0.8199, allocations: 1.588 MB / 0.6412 GB, free: 11.48 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001315/0.82, allocations: 280.8 kB / 0.6415 GB, free: 11.25 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002629/0.8203, allocations: 204.4 kB / 0.6417 GB, free: 11.11 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003801/0.8241, allocations: 3.318 MB / 0.6449 GB, free: 8.684 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.411e-05/0.8241, allocations: 10.02 kB / 0.6449 GB, free: 8.676 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002052/0.8243, allocations: 80.53 kB / 0.645 GB, free: 8.656 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000208/0.8245, allocations: 249.5 kB / 0.6452 GB, free: 8.445 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003829/0.8284, allocations: 3.138 MB / 0.6483 GB, free: 6.355 MB / 478.1 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.01552/0.8439, allocations: 13.53 MB / 0.6615 GB, free: 10.17 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00406/0.8479, allocations: 2.152 MB / 0.6636 GB, free: 8.031 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002183/0.8501, allocations: 1.315 MB / 0.6649 GB, free: 6.723 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007337/0.8575, allocations: 3.877 MB / 0.6687 GB, free: 2.891 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.144e-05/0.8575, allocations: 56.56 kB / 0.6687 GB, free: 2.828 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006093/0.8581, allocations: 190.5 kB / 0.6689 GB, free: 2.641 MB / 494.1 MB Notification: Performance of pre-optimization done (n=178): time 2.835e-06/0.8581, allocations: 0 / 0.6689 GB, free: 2.641 MB / 494.1 MB Notification: Performance of matching and sorting (n=254): time 0.3216/1.18, allocations: 39.26 MB / 0.7073 GB, free: 11.24 MB / 0.5294 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.01238/1.192, allocations: 3.171 MB / 0.7104 GB, free: 8.035 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002654/1.195, allocations: 1.845 MB / 0.7122 GB, free: 6.148 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004732/1.195, allocations: 69.7 kB / 0.7122 GB, free: 6.074 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009096/1.196, allocations: 1.085 MB / 0.7133 GB, free: 4.984 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009897/1.197, allocations: 0.9091 MB / 0.7142 GB, free: 4.09 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001195/1.198, allocations: 0.5956 MB / 0.7148 GB, free: 3.488 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001316/1.198, allocations: 309 kB / 0.715 GB, free: 3.184 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004434/1.203, allocations: 2.34 MB / 0.7173 GB, free: 0.8359 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004889/1.208, allocations: 2.952 MB / 0.7202 GB, free: 13.65 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01043/1.218, allocations: 5.385 MB / 0.7255 GB, free: 8.062 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.451e-05/1.218, allocations: 8 kB / 0.7255 GB, free: 8.055 MB / 0.545 GB Notification: Performance of matching and sorting (n=362) (initialization): time 0.01535/1.234, allocations: 7.108 MB / 0.7324 GB, free: 0.9961 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.077e-05/1.234, allocations: 12 kB / 0.7324 GB, free: 0.9844 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.225e-05/1.234, allocations: 19.38 kB / 0.7325 GB, free: 0.9688 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03086/1.264, allocations: 8.417 MB / 0.7407 GB, free: 8.547 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002641/1.267, allocations: 0.4995 MB / 0.7412 GB, free: 8.074 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01265/1.28, allocations: 6.825 MB / 0.7478 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004543/1.284, allocations: 411.5 kB / 0.7482 GB, free: 0.8008 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004173/1.285, allocations: 171.8 kB / 0.7484 GB, free: 0.6328 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005467/1.29, allocations: 2.824 MB / 0.7511 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004933/1.295, allocations: 2.895 MB / 0.754 GB, free: 10.67 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0102/1.305, allocations: 5.276 MB / 0.7591 GB, free: 5.191 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.186e-05/1.305, allocations: 12 kB / 0.7591 GB, free: 5.18 MB / 0.5762 GB Notification: Performance of matching and sorting (n=362) (initialization_lambda0): time 0.01412/1.319, allocations: 6.856 MB / 0.7658 GB, free: 14.37 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/1.319, allocations: 15.94 kB / 0.7658 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.851e-05/1.32, allocations: 16 kB / 0.7659 GB, free: 14.34 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01485/1.334, allocations: 4.928 MB / 0.7707 GB, free: 9.414 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002967/1.337, allocations: 0.5382 MB / 0.7712 GB, free: 8.902 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0117/1.349, allocations: 6.346 MB / 0.7774 GB, free: 2.516 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004515/1.354, allocations: 414.6 kB / 0.7778 GB, free: 2.113 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004091/1.354, allocations: 163.9 kB / 0.7779 GB, free: 1.953 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 4 (tank.inFlow[2],tank.inFlow[1],tank.regularFlow[2],tank.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 207 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,10), (1,5), (18,107)} Notification: Performance of prepare postOptimizeDAE: time 0.0008692/1.355, allocations: 343.2 kB / 0.7783 GB, free: 1.637 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005993/1.355, allocations: 254.4 kB / 0.7785 GB, free: 1.387 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.176/1.531, allocations: 7.527 MB / 0.7859 GB, free: 272.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01454/1.546, allocations: 6.795 MB / 0.7925 GB, free: 270.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.841e-05/1.546, allocations: 2.844 kB / 0.7925 GB, free: 270.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01338/1.559, allocations: 6.958 MB / 0.7993 GB, free: 267.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02502/1.584, allocations: 13.59 MB / 0.8126 GB, free: 261.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.095e-05/1.584, allocations: 0 / 0.8126 GB, free: 261.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002291/1.587, allocations: 463.1 kB / 0.813 GB, free: 261.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01983/1.607, allocations: 6.365 MB / 0.8192 GB, free: 256.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005676/1.607, allocations: 112.5 kB / 0.8193 GB, free: 256.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01267/1.62, allocations: 14.13 MB / 0.8331 GB, free: 241.5 MB / 0.5919 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.007837/1.628, allocations: 2.798 MB / 0.8359 GB, free: 238.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0163/1.644, allocations: 10.08 MB / 0.8457 GB, free: 228.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001744/1.646, allocations: 0.7881 MB / 0.8465 GB, free: 228.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004688/1.646, allocations: 71.92 kB / 0.8465 GB, free: 228.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002926/1.649, allocations: 281 kB / 0.8468 GB, free: 227.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004554/1.65, allocations: 233.9 kB / 0.847 GB, free: 227.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000273/1.65, allocations: 119 kB / 0.8472 GB, free: 227.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00134/1.651, allocations: 1.266 MB / 0.8484 GB, free: 226.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/1.651, allocations: 0 / 0.8484 GB, free: 226.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006518/1.658, allocations: 3.127 MB / 0.8514 GB, free: 223.3 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 ($STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (199): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,5), (1,9), (2,10), (14,48)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02146/1.679, allocations: 12.34 MB / 0.8635 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02053/1.7, allocations: 8.993 MB / 0.8723 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.285e-06/1.7, allocations: 0 / 0.8723 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.008998/1.709, allocations: 3.784 MB / 0.876 GB, free: 198.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004813/1.713, allocations: 1.086 MB / 0.877 GB, free: 197.5 MB / 0.5919 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4733:9-4733:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:822:5-822:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 658] [Calling sys.exit(0), Time elapsed: 3.6342409210046753] Failed to read output from testmodel.py, exit status != 0: ['time', 'heater.mediums[1].h', 'heater.mediums[1].p', 'pipe.mediums[1].h', 'pipe.mediums[1].p', 'pipe.mediums[2].h', 'pipe.mediums[2].p', 'radiator.mediums[1].h', 'radiator.mediums[1].p', 'tank.level', 'tank.medium.h'] 1.7207772079855204 1.729479017 0.918618544 Calling exit ...