Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001315/0.001315, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.001394/0.001394, allocations: 219 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.398/1.398, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Fluid_Examples_HeatingSystem",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Fluid_Examples_HeatingSystem",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 55.91 kB / 373.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09776/0.09919, allocations: 53.33 MB / 427 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2817/0.3809, allocations: 90.88 MB / 0.5057 GB, free: 6.023 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03508/0.416, allocations: 21.42 MB / 0.5267 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003915/0.4199, allocations: 122.9 kB / 0.5268 GB, free: 444 kB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003281/0.4232, allocations: 0.963 MB / 0.5277 GB, free: 15.46 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009901/0.4331, allocations: 3.796 MB / 0.5314 GB, free: 11.65 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01242/0.4455, allocations: 5.672 MB / 0.537 GB, free: 5.98 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.009515/0.455, allocations: 7.078 MB / 0.5439 GB, free: 14.89 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003025/0.458, allocations: 1.677 MB / 0.5455 GB, free: 13.19 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1703/0.6284, allocations: 75.2 MB / 0.619 GB, free: 1.125 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.2949/0.9233, allocations: 32.19 MB / 0.6504 GB, free: 68.13 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0009611/0.9242, allocations: 248.5 kB / 0.6506 GB, free: 68.13 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01254/0.9368, allocations: 6.162 MB / 0.6566 GB, free: 67.14 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.002046/0.9388, allocations: 1.115 MB / 0.6577 GB, free: 67.14 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.002354/0.9412, allocations: 1.491 MB / 0.6592 GB, free: 67.14 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.009403/0.9506, allocations: 5.556 MB / 0.6646 GB, free: 66.5 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.9506, allocations: 0 / 0.6646 GB, free: 66.5 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.673e-06/0.9506, allocations: 3.938 kB / 0.6646 GB, free: 66.5 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0001427/0.9507, allocations: 0 / 0.6646 GB, free: 66.5 MB / 0.5137 GB 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.009473/0.9602, allocations: 3.602 MB / 0.6681 GB, free: 64.87 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.9603, allocations: 11.75 kB / 0.6681 GB, free: 64.87 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.009e-05/0.9603, allocations: 60.88 kB / 0.6682 GB, free: 64.86 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005364/0.9609, allocations: 353.6 kB / 0.6685 GB, free: 64.8 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001057/0.9619, allocations: 318.1 kB / 0.6688 GB, free: 64.64 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003783/0.9657, allocations: 1.691 MB / 0.6705 GB, free: 64.06 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003165/0.966, allocations: 217.7 kB / 0.6707 GB, free: 63.99 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009944/0.967, allocations: 214.2 kB / 0.6709 GB, free: 63.98 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006312/0.9733, allocations: 3.31 MB / 0.6741 GB, free: 62.53 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.961e-05/0.9734, allocations: 4 kB / 0.6741 GB, free: 62.53 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002506/0.9736, allocations: 86.3 kB / 0.6742 GB, free: 62.51 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002924/0.9739, allocations: 250.1 kB / 0.6745 GB, free: 62.29 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004289/0.9782, allocations: 3.123 MB / 0.6775 GB, free: 60.21 MB / 0.5137 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.01494/0.9931, allocations: 13.68 MB / 0.6909 GB, free: 48.26 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003443/0.9966, allocations: 2.164 MB / 0.693 GB, free: 46.86 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001801/0.9984, allocations: 1.317 MB / 0.6943 GB, free: 45.98 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007401/1.006, allocations: 5.738 MB / 0.6999 GB, free: 40.91 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/1.006, allocations: 56.97 kB / 0.6999 GB, free: 40.87 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007179/1.007, allocations: 186.7 kB / 0.7001 GB, free: 40.71 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=178): time 3.877e-06/1.007, allocations: 0 / 0.7001 GB, free: 40.71 MB / 0.5137 GB Notification: Performance of matching and sorting (n=254): time 0.3168/1.323, allocations: 39.16 MB / 0.7384 GB, free: 1.73 MB / 0.5137 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.01118/1.334, allocations: 3.03 MB / 0.7413 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002783/1.337, allocations: 1.849 MB / 0.7431 GB, free: 12.78 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005707/1.338, allocations: 69.7 kB / 0.7432 GB, free: 12.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009096/1.339, allocations: 1.088 MB / 0.7443 GB, free: 11.61 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001193/1.34, allocations: 0.9087 MB / 0.7451 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001261/1.341, allocations: 0.5942 MB / 0.7457 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001504/1.341, allocations: 307.2 kB / 0.746 GB, free: 9.816 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004743/1.346, allocations: 2.348 MB / 0.7483 GB, free: 7.461 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005205/1.351, allocations: 2.951 MB / 0.7512 GB, free: 4.273 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01077/1.362, allocations: 5.367 MB / 0.7564 GB, free: 14.71 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.611e-05/1.362, allocations: 8 kB / 0.7564 GB, free: 14.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=362) (initialization): time 0.01538/1.377, allocations: 7.1 MB / 0.7634 GB, free: 7.648 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.704e-05/1.378, allocations: 12 kB / 0.7634 GB, free: 7.637 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.247e-05/1.378, allocations: 16 kB / 0.7634 GB, free: 7.621 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03011/1.408, allocations: 8.145 MB / 0.7714 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002805/1.41, allocations: 0.4945 MB / 0.7718 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01316/1.424, allocations: 6.812 MB / 0.7785 GB, free: 8.156 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004792/1.428, allocations: 407.5 kB / 0.7789 GB, free: 7.758 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004777/1.429, allocations: 171.8 kB / 0.779 GB, free: 7.59 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005556/1.434, allocations: 2.82 MB / 0.7818 GB, free: 4.762 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005035/1.439, allocations: 2.903 MB / 0.7846 GB, free: 1.621 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01095/1.45, allocations: 5.257 MB / 0.7898 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.38e-05/1.45, allocations: 7.984 kB / 0.7898 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of matching and sorting (n=362) (initialization_lambda0): time 0.01629/1.467, allocations: 6.848 MB / 0.7965 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.345e-05/1.467, allocations: 14.5 kB / 0.7965 GB, free: 5.348 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.68e-05/1.467, allocations: 19.94 kB / 0.7965 GB, free: 5.328 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01549/1.482, allocations: 4.931 MB / 0.8013 GB, free: 404 kB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003052/1.485, allocations: 0.5393 MB / 0.8018 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01233/1.498, allocations: 6.321 MB / 0.808 GB, free: 9.52 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004792/1.502, allocations: 418 kB / 0.8084 GB, free: 9.113 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005431/1.503, allocations: 163.9 kB / 0.8086 GB, free: 8.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.0008372/1.504, allocations: 331 kB / 0.8089 GB, free: 8.648 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007241/1.505, allocations: 262.3 kB / 0.8091 GB, free: 8.391 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0181/1.523, allocations: 7.457 MB / 0.8164 GB, free: 0.8828 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01633/1.539, allocations: 6.72 MB / 0.823 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-05/1.539, allocations: 4 kB / 0.823 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01629/1.555, allocations: 6.874 MB / 0.8297 GB, free: 3.121 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03154/1.587, allocations: 13.59 MB / 0.843 GB, free: 5.531 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.595e-05/1.587, allocations: 0 / 0.843 GB, free: 5.531 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002753/1.59, allocations: 459.9 kB / 0.8434 GB, free: 5.098 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2249/1.815, allocations: 6.18 MB / 0.8494 GB, free: 272.9 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007993/1.815, allocations: 110.8 kB / 0.8495 GB, free: 272.9 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01589/1.831, allocations: 14.61 MB / 0.8638 GB, free: 263.7 MB / 0.6231 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.00795/1.839, allocations: 2.65 MB / 0.8664 GB, free: 262.9 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01995/1.859, allocations: 10.05 MB / 0.8762 GB, free: 259.4 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001876/1.861, allocations: 0.8641 MB / 0.8771 GB, free: 259.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005164/1.862, allocations: 59.7 kB / 0.8771 GB, free: 259 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003084/1.865, allocations: 275 kB / 0.8774 GB, free: 259 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005565/1.865, allocations: 222.3 kB / 0.8776 GB, free: 259 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002999/1.865, allocations: 126.8 kB / 0.8777 GB, free: 258.9 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001578/1.867, allocations: 1.264 MB / 0.8789 GB, free: 258.5 MB / 0.6231 GB Notification: Performance of sort global known variables: time 6e-08/1.867, allocations: 3.75 kB / 0.879 GB, free: 258.5 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.008324/1.875, allocations: 3.14 MB / 0.882 GB, free: 258.3 MB / 0.6231 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.02284/1.898, allocations: 12.32 MB / 0.8941 GB, free: 253.9 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.02097/1.919, allocations: 8.993 MB / 0.9028 GB, free: 250.3 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 8.386e-06/1.919, allocations: 0 / 0.9028 GB, free: 250.3 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.009378/1.929, allocations: 3.786 MB / 0.9065 GB, free: 247.1 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005276/1.934, allocations: 1.09 MB / 0.9076 GB, free: 246.3 MB / 0.6231 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4705:9-4705:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:818:5-818: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: 4.03631343197776] 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.9413152600172907 1.949826537 0.997118063 Calling exit ...