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.001197/0.001197, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001262/0.001262, allocations: 193.5 kB / 24.49 MB, free: 3.941 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.323/1.323, allocations: 225.7 MB / 253.3 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 179] 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.001405/0.001405, allocations: 47.92 kB / 371.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.218/0.2194, allocations: 52.18 MB / 423.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.09128/0.3107, allocations: 81.32 MB / 0.4928 GB, free: 12.8 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03097/0.3417, allocations: 19.59 MB / 0.512 GB, free: 9.16 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002565/0.3443, allocations: 118.9 kB / 0.5121 GB, free: 9.043 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002336/0.3466, allocations: 0.9123 MB / 0.513 GB, free: 8.125 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01117/0.3578, allocations: 3.881 MB / 0.5168 GB, free: 4.227 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01384/0.3716, allocations: 6.04 MB / 0.5227 GB, free: 14.19 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01155/0.3832, allocations: 7.401 MB / 0.5299 GB, free: 6.766 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00308/0.3862, allocations: 1.611 MB / 0.5315 GB, free: 5.133 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3642/0.7504, allocations: 74.4 MB / 0.6041 GB, free: 14.99 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07218/0.8226, allocations: 31.88 MB / 0.6352 GB, free: 4.234 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001355/0.824, allocations: 248 kB / 0.6355 GB, free: 3.992 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01307/0.837, allocations: 5.488 MB / 0.6408 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.001636/0.8387, allocations: 1.127 MB / 0.6419 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.002001/0.8407, allocations: 1.255 MB / 0.6432 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.008588/0.8493, allocations: 5.401 MB / 0.6484 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.8493, allocations: 0 / 0.6484 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.272e-06/0.8493, allocations: 0 / 0.6484 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.737e-05/0.8494, allocations: 4 kB / 0.6484 GB, free: 7.738 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.009109/0.8585, allocations: 3.519 MB / 0.6519 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.349e-05/0.8585, allocations: 16.02 kB / 0.6519 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.54e-05/0.8586, allocations: 57.67 kB / 0.652 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005586/0.8592, allocations: 341.7 kB / 0.6523 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001012/0.8602, allocations: 334.1 kB / 0.6526 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003002/0.8632, allocations: 1.597 MB / 0.6542 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002362/0.8634, allocations: 271.3 kB / 0.6544 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003601/0.8638, allocations: 210.7 kB / 0.6546 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005594/0.8694, allocations: 3.688 MB / 0.6582 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.444e-05/0.8694, allocations: 8.641 kB / 0.6582 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002268/0.8696, allocations: 86.78 kB / 0.6583 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003347/0.87, allocations: 251 kB / 0.6585 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005251/0.8752, allocations: 3.139 MB / 0.6616 GB, free: 10.19 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.01787/0.8931, allocations: 10.09 MB / 0.6715 GB, free: 152 kB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004217/0.8973, allocations: 2.145 MB / 0.6736 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00223/0.8995, allocations: 1.319 MB / 0.6749 GB, free: 12.7 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007605/0.9071, allocations: 3.517 MB / 0.6783 GB, free: 9.215 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.74e-05/0.9072, allocations: 60.56 kB / 0.6783 GB, free: 9.148 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007545/0.9079, allocations: 189.3 kB / 0.6785 GB, free: 8.965 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=178): time 4.619e-06/0.9079, allocations: 0 / 0.6785 GB, free: 8.965 MB / 0.5294 GB Notification: Performance of matching and sorting (n=254): time 0.3683/1.276, allocations: 39.27 MB / 0.7169 GB, free: 1.66 MB / 0.5606 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.01322/1.289, allocations: 3.169 MB / 0.72 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0026/1.292, allocations: 1.845 MB / 0.7218 GB, free: 12.57 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0005554/1.293, allocations: 69.7 kB / 0.7218 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008882/1.293, allocations: 1.087 MB / 0.7229 GB, free: 11.41 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001101/1.295, allocations: 0.91 MB / 0.7238 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001231/1.296, allocations: 0.5917 MB / 0.7244 GB, free: 9.914 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001249/1.296, allocations: 305.1 kB / 0.7247 GB, free: 9.613 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0045/1.3, allocations: 2.348 MB / 0.727 GB, free: 7.258 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005174/1.306, allocations: 2.955 MB / 0.7298 GB, free: 4.07 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01162/1.317, allocations: 5.38 MB / 0.7351 GB, free: 14.49 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.657e-05/1.317, allocations: 8 kB / 0.7351 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of matching and sorting (n=362) (initialization): time 0.01539/1.333, allocations: 7.109 MB / 0.742 GB, free: 7.426 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.702e-05/1.333, allocations: 12 kB / 0.7421 GB, free: 7.414 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.581e-05/1.333, allocations: 20 kB / 0.7421 GB, free: 7.395 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2218/1.555, allocations: 8.415 MB / 0.7503 GB, free: 265.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0027/1.557, allocations: 499.1 kB / 0.7508 GB, free: 265.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01084/1.568, allocations: 6.823 MB / 0.7574 GB, free: 263 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004437/1.573, allocations: 414.5 kB / 0.7578 GB, free: 262.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004091/1.573, allocations: 172.8 kB / 0.758 GB, free: 262.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004446/1.577, allocations: 2.818 MB / 0.7607 GB, free: 261.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003707/1.581, allocations: 2.907 MB / 0.7636 GB, free: 260.4 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.008015/1.589, allocations: 5.272 MB / 0.7687 GB, free: 257.7 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.695e-05/1.589, allocations: 4 kB / 0.7687 GB, free: 257.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=362) (initialization_lambda0): time 0.01141/1.601, allocations: 6.864 MB / 0.7754 GB, free: 251.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/1.601, allocations: 14.25 kB / 0.7754 GB, free: 251.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.423e-05/1.601, allocations: 21.66 kB / 0.7755 GB, free: 251.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01253/1.613, allocations: 4.927 MB / 0.7803 GB, free: 246.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002598/1.616, allocations: 0.5352 MB / 0.7808 GB, free: 246.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008731/1.624, allocations: 6.342 MB / 0.787 GB, free: 239.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004112/1.629, allocations: 415.2 kB / 0.7874 GB, free: 239.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003721/1.629, allocations: 163.9 kB / 0.7876 GB, free: 239.2 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.0007324/1.63, allocations: 335.6 kB / 0.7879 GB, free: 238.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005432/1.63, allocations: 258.9 kB / 0.7881 GB, free: 238.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01453/1.645, allocations: 7.533 MB / 0.7955 GB, free: 231.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01369/1.658, allocations: 6.801 MB / 0.8021 GB, free: 224.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-05/1.658, allocations: 4 kB / 0.8021 GB, free: 224.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.013/1.671, allocations: 6.956 MB / 0.8089 GB, free: 217.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02305/1.695, allocations: 12.82 MB / 0.8214 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/1.695, allocations: 0 / 0.8214 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002411/1.697, allocations: 455.3 kB / 0.8219 GB, free: 204.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02007/1.717, allocations: 6.37 MB / 0.8281 GB, free: 198 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005265/1.718, allocations: 107.9 kB / 0.8282 GB, free: 197.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01273/1.73, allocations: 14.09 MB / 0.8419 GB, free: 183.2 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.008152/1.738, allocations: 2.781 MB / 0.8447 GB, free: 180.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01617/1.755, allocations: 10.09 MB / 0.8545 GB, free: 170.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001841/1.756, allocations: 0.7982 MB / 0.8553 GB, free: 169.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005212/1.757, allocations: 63.98 kB / 0.8554 GB, free: 169.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00306/1.76, allocations: 275.6 kB / 0.8556 GB, free: 169 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004804/1.76, allocations: 229.9 kB / 0.8558 GB, free: 168.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002867/1.761, allocations: 123.9 kB / 0.856 GB, free: 168.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001312/1.762, allocations: 1.264 MB / 0.8572 GB, free: 167.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9.1e-08/1.762, allocations: 0 / 0.8572 GB, free: 167.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006769/1.769, allocations: 3.128 MB / 0.8602 GB, free: 164.5 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.02131/1.79, allocations: 12.36 MB / 0.8723 GB, free: 152.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02/1.81, allocations: 8.991 MB / 0.8811 GB, free: 143.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/1.81, allocations: 4 kB / 0.8811 GB, free: 143.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.008658/1.819, allocations: 3.793 MB / 0.8848 GB, free: 139.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004446/1.823, allocations: 1.083 MB / 0.8859 GB, free: 138.4 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.8170959940180182] 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.8304192390060052 1.839251695 0.987755117 Calling exit ...