Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001844/0.001844, allocations: 116.6 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002066/0.002066, allocations: 189 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 225.6 MB / 249.8 MB, free: 3.742 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 47.92 kB / 366.3 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09365/0.0952, allocations: 52.15 MB / 418.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2921/0.3873, allocations: 90.56 MB / 0.4971 GB, free: 7.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0333/0.4206, allocations: 21.4 MB / 0.518 GB, free: 5.758 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002647/0.4232, allocations: 118.9 kB / 0.5181 GB, free: 5.641 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003211/0.4264, allocations: 0.9628 MB / 0.5191 GB, free: 4.672 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01043/0.4369, allocations: 3.783 MB / 0.5227 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01328/0.4502, allocations: 5.654 MB / 0.5283 GB, free: 11.23 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01034/0.4605, allocations: 7.06 MB / 0.5352 GB, free: 4.152 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003641/0.4641, allocations: 1.653 MB / 0.5368 GB, free: 2.473 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1595/0.6237, allocations: 75.16 MB / 0.6102 GB, free: 6.477 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.3132/0.9369, allocations: 32.16 MB / 0.6416 GB, free: 93.98 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.001623/0.9385, allocations: 251.9 kB / 0.6418 GB, free: 93.98 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01818/0.9567, allocations: 6.143 MB / 0.6478 GB, free: 93 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.001938/0.9587, allocations: 1.12 MB / 0.6489 GB, free: 93 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.003221/0.9619, allocations: 1.499 MB / 0.6504 GB, free: 93 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.009665/0.9716, allocations: 5.544 MB / 0.6558 GB, free: 92.44 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.9716, allocations: 0 / 0.6558 GB, free: 92.44 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.384e-06/0.9716, allocations: 6.406 kB / 0.6558 GB, free: 92.43 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.000108/0.9717, allocations: 0 / 0.6558 GB, free: 92.43 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.008718/0.9804, allocations: 3.593 MB / 0.6593 GB, free: 90.81 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.9804, allocations: 9.281 kB / 0.6593 GB, free: 90.81 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.79e-05/0.9805, allocations: 63.17 kB / 0.6594 GB, free: 90.8 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004746/0.981, allocations: 349.7 kB / 0.6597 GB, free: 90.73 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009343/0.9819, allocations: 323.2 kB / 0.66 GB, free: 90.58 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002446/0.9844, allocations: 1.689 MB / 0.6617 GB, free: 90.08 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001448/0.9845, allocations: 220.4 kB / 0.6619 GB, free: 90.01 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002998/0.9848, allocations: 212.3 kB / 0.6621 GB, free: 90 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004318/0.9891, allocations: 3.309 MB / 0.6653 GB, free: 89.65 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.409e-05/0.9892, allocations: 8.5 kB / 0.6653 GB, free: 89.65 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002181/0.9894, allocations: 82.36 kB / 0.6654 GB, free: 89.65 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002304/0.9896, allocations: 252.6 kB / 0.6656 GB, free: 89.64 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004296/0.9939, allocations: 3.121 MB / 0.6687 GB, free: 89.63 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.01664/1.011, allocations: 13.7 MB / 0.6821 GB, free: 81.48 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003902/1.014, allocations: 2.168 MB / 0.6842 GB, free: 80.08 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001883/1.016, allocations: 1.315 MB / 0.6855 GB, free: 79.2 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006906/1.023, allocations: 5.739 MB / 0.6911 GB, free: 74.13 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/1.023, allocations: 54.66 kB / 0.6911 GB, free: 74.09 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007261/1.024, allocations: 191.6 kB / 0.6913 GB, free: 73.93 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=178): time 4.017e-06/1.024, allocations: 0 / 0.6913 GB, free: 73.93 MB / 0.5137 GB Notification: Performance of matching and sorting (n=254): time 0.3115/1.335, allocations: 39.8 MB / 0.7302 GB, free: 35.35 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.01121/1.347, allocations: 3.169 MB / 0.7333 GB, free: 32.15 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002305/1.349, allocations: 1.845 MB / 0.7351 GB, free: 30.27 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0006725/1.35, allocations: 69.7 kB / 0.7351 GB, free: 30.19 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004987/1.35, allocations: 1.085 MB / 0.7362 GB, free: 29.1 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007044/1.351, allocations: 0.9088 MB / 0.7371 GB, free: 28.21 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00101/1.352, allocations: 0.6017 MB / 0.7377 GB, free: 27.6 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 6.122e-05/1.352, allocations: 305.1 kB / 0.738 GB, free: 27.3 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003719/1.356, allocations: 2.344 MB / 0.7402 GB, free: 24.95 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003834/1.359, allocations: 2.95 MB / 0.7431 GB, free: 21.77 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008334/1.368, allocations: 5.386 MB / 0.7484 GB, free: 16.18 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/1.368, allocations: 8 kB / 0.7484 GB, free: 16.18 MB / 0.5137 GB Notification: Performance of matching and sorting (n=362) (initialization): time 0.01157/1.379, allocations: 7.107 MB / 0.7553 GB, free: 9.117 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/1.379, allocations: 12.16 kB / 0.7553 GB, free: 9.105 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.34e-05/1.379, allocations: 24 kB / 0.7554 GB, free: 9.082 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02687/1.406, allocations: 8.42 MB / 0.7636 GB, free: 0.668 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002425/1.409, allocations: 0.4942 MB / 0.7641 GB, free: 204 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01287/1.422, allocations: 6.821 MB / 0.7707 GB, free: 9.328 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005313/1.427, allocations: 411.5 kB / 0.7711 GB, free: 8.926 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006114/1.428, allocations: 171.8 kB / 0.7713 GB, free: 8.758 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005747/1.433, allocations: 2.82 MB / 0.774 GB, free: 5.93 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00522/1.439, allocations: 2.903 MB / 0.7769 GB, free: 2.789 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01079/1.449, allocations: 5.276 MB / 0.782 GB, free: 13.31 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.535e-05/1.449, allocations: 8 kB / 0.782 GB, free: 13.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=362) (initialization_lambda0): time 0.01463/1.464, allocations: 6.854 MB / 0.7887 GB, free: 6.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/1.464, allocations: 12 kB / 0.7887 GB, free: 6.488 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.924e-05/1.464, allocations: 19.94 kB / 0.7888 GB, free: 6.469 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01487/1.479, allocations: 4.936 MB / 0.7936 GB, free: 1.531 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002885/1.482, allocations: 0.5379 MB / 0.7941 GB, free: 1.023 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01208/1.494, allocations: 6.345 MB / 0.8003 GB, free: 10.63 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00494/1.499, allocations: 407.5 kB / 0.8007 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004556/1.499, allocations: 163.9 kB / 0.8009 GB, free: 10.07 MB / 0.5606 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.0008691/1.5, allocations: 336.6 kB / 0.8012 GB, free: 9.766 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006868/1.501, allocations: 266.2 kB / 0.8014 GB, free: 9.504 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01862/1.519, allocations: 7.513 MB / 0.8088 GB, free: 1.941 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01701/1.536, allocations: 6.784 MB / 0.8154 GB, free: 11.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.265e-05/1.536, allocations: 4 kB / 0.8154 GB, free: 11.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01669/1.553, allocations: 6.941 MB / 0.8222 GB, free: 4.047 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03101/1.584, allocations: 13.65 MB / 0.8355 GB, free: 6.387 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.4e-05/1.584, allocations: 0 / 0.8355 GB, free: 6.387 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00263/1.587, allocations: 460.4 kB / 0.8359 GB, free: 5.953 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02351/1.61, allocations: 6.37 MB / 0.8422 GB, free: 15.57 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006852/1.611, allocations: 111.9 kB / 0.8423 GB, free: 15.46 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0195/1.63, allocations: 14.62 MB / 0.8565 GB, free: 88 kB / 0.6075 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.1975/1.828, allocations: 2.787 MB / 0.8593 GB, free: 262.8 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02198/1.85, allocations: 10.06 MB / 0.8691 GB, free: 261.7 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00233/1.852, allocations: 0.8679 MB / 0.8699 GB, free: 261.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006224/1.853, allocations: 64.39 kB / 0.87 GB, free: 261.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003358/1.856, allocations: 275.9 kB / 0.8703 GB, free: 261.3 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005995/1.857, allocations: 215 kB / 0.8705 GB, free: 261.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003443/1.857, allocations: 124 kB / 0.8706 GB, free: 261.3 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001959/1.859, allocations: 1.262 MB / 0.8718 GB, free: 260.8 MB / 0.6075 GB Notification: Performance of sort global known variables: time 8e-08/1.859, allocations: 3.969 kB / 0.8718 GB, free: 260.8 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008535/1.868, allocations: 3.13 MB / 0.8749 GB, free: 260.6 MB / 0.6075 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.02404/1.892, allocations: 12.34 MB / 0.8869 GB, free: 256.3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0207/1.912, allocations: 8.989 MB / 0.8957 GB, free: 253.8 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.573e-06/1.912, allocations: 0 / 0.8957 GB, free: 253.8 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.009098/1.922, allocations: 3.777 MB / 0.8994 GB, free: 251.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005336/1.927, allocations: 1.08 MB / 0.9005 GB, free: 251 MB / 0.6075 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.028455285995733] 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.9348168880096637 1.94337507 0.969460725 Calling exit ...