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.00174/0.00174, allocations: 105.1 kB / 21.21 MB, free: 0.6484 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.002089/0.002089, allocations: 212.5 kB / 24.51 MB, free: 3.941 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.341/1.341, allocations: 230.6 MB / 258.3 MB, free: 7.805 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.001364/0.001364, allocations: 47.92 kB / 378.5 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2111/0.2125, allocations: 53.37 MB / 431.8 MB, free: 6.797 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.08891/0.3014, allocations: 81.63 MB / 0.5014 GB, free: 4.906 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02916/0.3306, allocations: 19.6 MB / 0.5206 GB, free: 1.254 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002101/0.3327, allocations: 118.9 kB / 0.5207 GB, free: 1.137 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00256/0.3352, allocations: 0.9162 MB / 0.5216 GB, free: 220 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009497/0.3447, allocations: 3.9 MB / 0.5254 GB, free: 12.3 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01469/0.3594, allocations: 6.058 MB / 0.5313 GB, free: 6.246 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.2287/0.5881, allocations: 7.407 MB / 0.5385 GB, free: 4.695 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003125/0.5912, allocations: 1.614 MB / 0.5401 GB, free: 4.633 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1614/0.7526, allocations: 74.48 MB / 0.6129 GB, free: 3.895 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07579/0.8284, allocations: 31.9 MB / 0.644 GB, free: 7.434 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0008875/0.8293, allocations: 250.7 kB / 0.6442 GB, free: 7.191 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0133/0.8426, allocations: 5.523 MB / 0.6496 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.001749/0.8444, allocations: 1.125 MB / 0.6507 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.002154/0.8465, allocations: 1.257 MB / 0.652 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01059/0.8571, allocations: 5.415 MB / 0.6573 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.8571, allocations: 4 kB / 0.6573 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.004e-06/0.8571, allocations: 0 / 0.6573 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.572e-05/0.8572, allocations: 0 / 0.6573 GB, free: 10.41 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.008406/0.8656, allocations: 3.51 MB / 0.6607 GB, free: 6.906 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.8657, allocations: 12.03 kB / 0.6607 GB, free: 6.895 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.611e-05/0.8657, allocations: 57.67 kB / 0.6608 GB, free: 6.836 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005471/0.8663, allocations: 347.1 kB / 0.6611 GB, free: 6.496 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009742/0.8673, allocations: 330.1 kB / 0.6614 GB, free: 6.172 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003068/0.8703, allocations: 1.598 MB / 0.663 GB, free: 4.621 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002584/0.8706, allocations: 267 kB / 0.6632 GB, free: 4.348 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003864/0.871, allocations: 212.3 kB / 0.6634 GB, free: 4.152 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005716/0.8767, allocations: 3.684 MB / 0.667 GB, free: 304 kB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.493e-05/0.8767, allocations: 7 kB / 0.667 GB, free: 300 kB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000227/0.877, allocations: 83.17 kB / 0.6671 GB, free: 228 kB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003395/0.8773, allocations: 252.5 kB / 0.6673 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005309/0.8826, allocations: 3.134 MB / 0.6704 GB, free: 12.87 MB / 0.5294 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.01818/0.9008, allocations: 10.1 MB / 0.6803 GB, free: 2.824 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004138/0.9049, allocations: 2.143 MB / 0.6824 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002208/0.9071, allocations: 1.313 MB / 0.6836 GB, free: 15.38 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007402/0.9145, allocations: 3.526 MB / 0.6871 GB, free: 11.89 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.906e-05/0.9146, allocations: 55.75 kB / 0.6871 GB, free: 11.83 MB / 0.545 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007141/0.9153, allocations: 194.4 kB / 0.6873 GB, free: 11.64 MB / 0.545 GB Notification: Performance of pre-optimization done (n=178): time 4.168e-06/0.9153, allocations: 0 / 0.6873 GB, free: 11.64 MB / 0.545 GB Notification: Performance of matching and sorting (n=254): time 0.3482/1.264, allocations: 38.62 MB / 0.725 GB, free: 4.984 MB / 0.5762 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.012/1.276, allocations: 3.039 MB / 0.728 GB, free: 1.91 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002692/1.278, allocations: 1.849 MB / 0.7298 GB, free: 20 kB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0005227/1.279, allocations: 65.7 kB / 0.7299 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009316/1.28, allocations: 1.082 MB / 0.7309 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.001043/1.281, allocations: 0.9188 MB / 0.7318 GB, free: 13.96 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001199/1.282, allocations: 0.5924 MB / 0.7324 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000127/1.282, allocations: 309 kB / 0.7327 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004462/1.287, allocations: 2.344 MB / 0.735 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005109/1.292, allocations: 2.952 MB / 0.7379 GB, free: 7.512 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01043/1.302, allocations: 5.368 MB / 0.7431 GB, free: 1.949 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.755e-05/1.302, allocations: 8 kB / 0.7431 GB, free: 1.941 MB / 0.5919 GB Notification: Performance of matching and sorting (n=362) (initialization): time 0.01415/1.316, allocations: 7.097 MB / 0.7501 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.067e-05/1.316, allocations: 12 kB / 0.7501 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.045e-05/1.316, allocations: 20 kB / 0.7501 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02926/1.346, allocations: 8.15 MB / 0.758 GB, free: 2.715 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002615/1.348, allocations: 0.4947 MB / 0.7585 GB, free: 2.246 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2022/1.55, allocations: 6.8 MB / 0.7652 GB, free: 270.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004498/1.555, allocations: 414.5 kB / 0.7656 GB, free: 270.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005374/1.555, allocations: 178 kB / 0.7657 GB, free: 270.5 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00455/1.56, allocations: 2.822 MB / 0.7685 GB, free: 269.5 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00384/1.564, allocations: 2.898 MB / 0.7713 GB, free: 268.1 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.008122/1.572, allocations: 5.256 MB / 0.7765 GB, free: 265.7 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.374e-05/1.572, allocations: 3.125 kB / 0.7765 GB, free: 265.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=362) (initialization_lambda0): time 0.01159/1.583, allocations: 6.852 MB / 0.7831 GB, free: 263.3 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.86e-05/1.584, allocations: 12 kB / 0.7832 GB, free: 263.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.87e-05/1.584, allocations: 19.56 kB / 0.7832 GB, free: 263.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01262/1.596, allocations: 4.922 MB / 0.788 GB, free: 259.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002625/1.599, allocations: 0.5264 MB / 0.7885 GB, free: 258.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008786/1.608, allocations: 6.328 MB / 0.7947 GB, free: 252.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004004/1.612, allocations: 411.4 kB / 0.7951 GB, free: 251.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000333/1.612, allocations: 166.6 kB / 0.7952 GB, free: 251.7 MB / 0.6075 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.0007695/1.613, allocations: 337 kB / 0.7955 GB, free: 251.4 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004924/1.613, allocations: 257 kB / 0.7958 GB, free: 251.3 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01388/1.627, allocations: 7.472 MB / 0.8031 GB, free: 243.9 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01261/1.64, allocations: 6.736 MB / 0.8097 GB, free: 237.1 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.835e-05/1.64, allocations: 7.984 kB / 0.8097 GB, free: 237.1 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01252/1.652, allocations: 6.893 MB / 0.8164 GB, free: 230.1 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0225/1.675, allocations: 12.75 MB / 0.8289 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/1.675, allocations: 0 / 0.8289 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002244/1.677, allocations: 461.1 kB / 0.8293 GB, free: 217 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0184/1.695, allocations: 6.175 MB / 0.8353 GB, free: 211 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004756/1.696, allocations: 103.9 kB / 0.8354 GB, free: 210.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01256/1.708, allocations: 14.08 MB / 0.8492 GB, free: 196.2 MB / 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.007209/1.716, allocations: 2.671 MB / 0.8518 GB, free: 193.5 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01603/1.732, allocations: 10.07 MB / 0.8616 GB, free: 183.3 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001707/1.733, allocations: 0.8028 MB / 0.8624 GB, free: 182.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004856/1.734, allocations: 63.92 kB / 0.8625 GB, free: 182.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002863/1.737, allocations: 275.6 kB / 0.8627 GB, free: 182.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004442/1.737, allocations: 225.9 kB / 0.8629 GB, free: 182 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002711/1.737, allocations: 121.1 kB / 0.8631 GB, free: 181.9 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001258/1.739, allocations: 1.268 MB / 0.8643 GB, free: 180.6 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9e-08/1.739, allocations: 0 / 0.8643 GB, free: 180.6 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.005965/1.745, allocations: 3.138 MB / 0.8674 GB, free: 177.7 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.02121/1.766, allocations: 12.35 MB / 0.8794 GB, free: 165.6 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02038/1.786, allocations: 8.994 MB / 0.8882 GB, free: 156.5 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/1.786, allocations: 64 / 0.8882 GB, free: 156.5 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.008453/1.795, allocations: 3.788 MB / 0.8919 GB, free: 152.7 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004368/1.799, allocations: 1.085 MB / 0.893 GB, free: 151.6 MB / 0.6075 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.781781411031261] 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.805959777906537 1.814583873 0.955206298 Calling exit ...