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.001696/0.001696, allocations: 118.3 kB / 19.17 MB, free: 3.898 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.002156/0.002156, allocations: 205.7 kB / 22.12 MB, free: 0.9609 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.349/1.349, allocations: 207.6 MB / 232.5 MB, free: 3.965 MB / 174.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.001748/0.001748, allocations: 52.56 kB / 343 MB, free: 10 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08818/0.08993, allocations: 49.12 MB / 392.1 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2853/0.3753, allocations: 90.58 MB / 482.7 MB, free: 3.129 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02844/0.4037, allocations: 21.38 MB / 0.4923 GB, free: 2.668 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002653/0.4064, allocations: 121.6 kB / 0.4924 GB, free: 2.668 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002239/0.4086, allocations: 0.9581 MB / 0.4933 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00823/0.4168, allocations: 3.786 MB / 0.497 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01233/0.4292, allocations: 5.628 MB / 0.5025 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009425/0.4386, allocations: 7.049 MB / 0.5094 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003313/0.4419, allocations: 1.656 MB / 0.511 GB, free: 9.258 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1589/0.6008, allocations: 75.1 MB / 0.5843 GB, free: 15.37 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06817/0.6689, allocations: 32.17 MB / 0.6158 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.001197/0.6701, allocations: 248 kB / 0.616 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01592/0.6861, allocations: 6.145 MB / 0.622 GB, free: 8.973 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.002236/0.6883, allocations: 1.117 MB / 0.6231 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.003031/0.6913, allocations: 1.498 MB / 0.6245 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.011/0.7023, allocations: 5.548 MB / 0.63 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.7023, allocations: 0 / 0.63 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.383e-06/0.7023, allocations: 0 / 0.63 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.118e-05/0.7024, allocations: 0 / 0.63 GB, free: 1.051 MB / 0.4981 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.008781/0.7112, allocations: 3.594 MB / 0.6335 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.7112, allocations: 8.031 kB / 0.6335 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.193e-05/0.7113, allocations: 65.61 kB / 0.6335 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005545/0.7119, allocations: 347.7 kB / 0.6339 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001019/0.7129, allocations: 322.1 kB / 0.6342 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003048/0.7159, allocations: 1.697 MB / 0.6358 GB, free: 10.99 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000218/0.7162, allocations: 223.4 kB / 0.6361 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003681/0.7165, allocations: 202.4 kB / 0.6362 GB, free: 10.58 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005977/0.7225, allocations: 3.312 MB / 0.6395 GB, free: 7.184 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.28e-05/0.7226, allocations: 7.953 kB / 0.6395 GB, free: 7.176 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002343/0.7228, allocations: 82.08 kB / 0.6396 GB, free: 7.105 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003311/0.7231, allocations: 259.8 kB / 0.6398 GB, free: 6.852 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005478/0.7286, allocations: 3.127 MB / 0.6429 GB, free: 3.723 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.02115/0.7497, allocations: 13.7 MB / 0.6562 GB, free: 5.234 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004525/0.7543, allocations: 2.159 MB / 0.6584 GB, free: 3.066 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0024/0.7567, allocations: 1.311 MB / 0.6596 GB, free: 1.758 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1914/0.9481, allocations: 5.738 MB / 0.6652 GB, free: 220.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.821e-05/0.9482, allocations: 56.2 kB / 0.6653 GB, free: 220.4 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008768/0.949, allocations: 187.6 kB / 0.6655 GB, free: 220.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=178): time 5.721e-06/0.949, allocations: 3.781 kB / 0.6655 GB, free: 220.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=254): time 0.3067/1.256, allocations: 39.8 MB / 0.7043 GB, free: 192.6 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.01062/1.266, allocations: 3.167 MB / 0.7074 GB, free: 189.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001936/1.268, allocations: 1.846 MB / 0.7092 GB, free: 187.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000488/1.269, allocations: 73.69 kB / 0.7093 GB, free: 187.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004841/1.269, allocations: 1.083 MB / 0.7104 GB, free: 186.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007246/1.27, allocations: 0.9082 MB / 0.7112 GB, free: 185.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000942/1.271, allocations: 0.5956 MB / 0.7118 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.699e-05/1.271, allocations: 305.1 kB / 0.7121 GB, free: 184.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003396/1.274, allocations: 2.344 MB / 0.7144 GB, free: 182.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003645/1.278, allocations: 2.948 MB / 0.7173 GB, free: 179.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008408/1.286, allocations: 5.394 MB / 0.7226 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.315e-05/1.286, allocations: 4 kB / 0.7226 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=362) (initialization): time 0.01142/1.298, allocations: 7.105 MB / 0.7295 GB, free: 166.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.892e-05/1.298, allocations: 16.03 kB / 0.7295 GB, free: 166.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.506e-05/1.298, allocations: 16 kB / 0.7295 GB, free: 166.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02651/1.324, allocations: 8.426 MB / 0.7378 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002297/1.327, allocations: 0.4951 MB / 0.7382 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009764/1.336, allocations: 6.82 MB / 0.7449 GB, free: 150.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00445/1.341, allocations: 415.5 kB / 0.7453 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003736/1.341, allocations: 171.8 kB / 0.7455 GB, free: 150 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004121/1.345, allocations: 2.82 MB / 0.7482 GB, free: 147.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003515/1.349, allocations: 2.902 MB / 0.7511 GB, free: 144 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007719/1.357, allocations: 5.275 MB / 0.7562 GB, free: 138.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.077e-06/1.357, allocations: 4 kB / 0.7562 GB, free: 138.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=362) (initialization_lambda0): time 0.01094/1.368, allocations: 6.862 MB / 0.7629 GB, free: 131.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/1.368, allocations: 12 kB / 0.7629 GB, free: 131.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.951e-05/1.368, allocations: 20.12 kB / 0.7629 GB, free: 131.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01243/1.38, allocations: 4.932 MB / 0.7678 GB, free: 126.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002731/1.383, allocations: 0.542 MB / 0.7683 GB, free: 126 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009503/1.392, allocations: 6.344 MB / 0.7745 GB, free: 119.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004595/1.397, allocations: 410 kB / 0.7749 GB, free: 119.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004045/1.397, allocations: 163.9 kB / 0.775 GB, free: 119 MB / 0.5294 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.0007409/1.398, allocations: 332.4 kB / 0.7753 GB, free: 118.7 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005412/1.399, allocations: 266.3 kB / 0.7756 GB, free: 118.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01457/1.413, allocations: 7.519 MB / 0.7829 GB, free: 110.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01299/1.426, allocations: 6.774 MB / 0.7896 GB, free: 104 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.988e-05/1.426, allocations: 4 kB / 0.7896 GB, free: 104 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01278/1.439, allocations: 6.947 MB / 0.7963 GB, free: 96.91 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02479/1.464, allocations: 13.65 MB / 0.8097 GB, free: 83.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.849e-06/1.464, allocations: 0 / 0.8097 GB, free: 83.18 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002238/1.466, allocations: 463.3 kB / 0.8101 GB, free: 82.73 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01997/1.486, allocations: 6.369 MB / 0.8163 GB, free: 76.33 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004904/1.486, allocations: 103.9 kB / 0.8164 GB, free: 76.23 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01319/1.5, allocations: 14.63 MB / 0.8307 GB, free: 60.8 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 postOpt calculateStateSetsJacobians (simulation): time 0.008063/1.508, allocations: 2.791 MB / 0.8334 GB, free: 57.98 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01666/1.524, allocations: 10.06 MB / 0.8433 GB, free: 47.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002012/1.526, allocations: 0.8576 MB / 0.8441 GB, free: 46.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005125/1.527, allocations: 63.98 kB / 0.8442 GB, free: 46.87 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00304/1.53, allocations: 283.5 kB / 0.8444 GB, free: 46.59 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004798/1.53, allocations: 222 kB / 0.8447 GB, free: 46.38 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002725/1.531, allocations: 119.9 kB / 0.8448 GB, free: 46.26 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001299/1.532, allocations: 1.264 MB / 0.846 GB, free: 44.97 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.1e-08/1.532, allocations: 4 kB / 0.846 GB, free: 44.97 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006852/1.539, allocations: 3.125 MB / 0.8491 GB, free: 41.86 MB / 0.5294 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.02153/1.56, allocations: 12.33 MB / 0.8611 GB, free: 29.49 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02036/1.581, allocations: 8.999 MB / 0.8699 GB, free: 20.45 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/1.581, allocations: 0 / 0.8699 GB, free: 20.45 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008798/1.59, allocations: 3.776 MB / 0.8736 GB, free: 16.61 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004865/1.594, allocations: 1.083 MB / 0.8746 GB, free: 15.52 MB / 0.5294 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: 3.654403715976514] 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.6021060529747047 1.610162445 0.905610814 Calling exit ...