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.00148/0.00148, allocations: 103.1 kB / 21.96 MB, free: 5.219 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.001624/0.001624, allocations: 210.1 kB / 25.25 MB, free: 3.133 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.33/1.33, allocations: 207.7 MB / 236.1 MB, free: 9.789 MB / 190.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.001636/0.001636, allocations: 51.92 kB / 348 MB, free: 9.988 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2433, allocations: 49.16 MB / 397.1 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.08824/0.3316, allocations: 81.36 MB / 478.5 MB, free: 1.555 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0304/0.362, allocations: 19.54 MB / 498 MB, free: 13.96 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00261/0.3646, allocations: 122.9 kB / 498.1 MB, free: 13.84 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002689/0.3673, allocations: 0.9162 MB / 499.1 MB, free: 12.92 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01037/0.3776, allocations: 3.881 MB / 0.4912 GB, free: 9.02 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01483/0.3925, allocations: 5.986 MB / 0.497 GB, free: 3.02 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01133/0.4038, allocations: 7.393 MB / 0.5042 GB, free: 11.61 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003144/0.4069, allocations: 1.607 MB / 0.5058 GB, free: 9.973 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3888/0.7958, allocations: 74.37 MB / 0.5784 GB, free: 52.15 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06222/0.858, allocations: 31.86 MB / 0.6095 GB, free: 42.82 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008999/0.8589, allocations: 252 kB / 0.6098 GB, free: 42.81 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01108/0.87, allocations: 5.489 MB / 0.6151 GB, free: 41.86 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001255/0.8712, allocations: 1.123 MB / 0.6162 GB, free: 41.86 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001506/0.8727, allocations: 1.254 MB / 0.6175 GB, free: 41.86 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006476/0.8792, allocations: 5.416 MB / 0.6227 GB, free: 38.35 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.8792, allocations: 0 / 0.6227 GB, free: 38.35 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.8792, allocations: 0 / 0.6227 GB, free: 38.35 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.054e-05/0.8792, allocations: 4 kB / 0.6228 GB, free: 38.34 MB / 478.1 MB 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.006661/0.8859, allocations: 3.516 MB / 0.6262 GB, free: 35.22 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.8859, allocations: 11.98 kB / 0.6262 GB, free: 35.21 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.691e-05/0.886, allocations: 65.59 kB / 0.6263 GB, free: 35.14 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003979/0.8864, allocations: 348.7 kB / 0.6266 GB, free: 34.92 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008086/0.8872, allocations: 324.1 kB / 0.6269 GB, free: 34.61 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002223/0.8894, allocations: 1.592 MB / 0.6285 GB, free: 33.36 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000139/0.8896, allocations: 281.5 kB / 0.6287 GB, free: 33.13 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002738/0.8898, allocations: 203.4 kB / 0.6289 GB, free: 33 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004073/0.8939, allocations: 3.687 MB / 0.6325 GB, free: 30.1 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.456e-05/0.894, allocations: 15.42 kB / 0.6325 GB, free: 30.09 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002148/0.8942, allocations: 84.5 kB / 0.6326 GB, free: 30.07 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002173/0.8944, allocations: 251.8 kB / 0.6329 GB, free: 29.86 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004041/0.8984, allocations: 3.127 MB / 0.6359 GB, free: 27.77 MB / 478.1 MB 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.01514/0.9136, allocations: 10.11 MB / 0.6458 GB, free: 19.94 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003374/0.9169, allocations: 2.144 MB / 0.6479 GB, free: 18.57 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001717/0.9187, allocations: 1.316 MB / 0.6492 GB, free: 17.41 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006061/0.9247, allocations: 3.53 MB / 0.6526 GB, free: 13.92 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.516e-05/0.9248, allocations: 52.56 kB / 0.6527 GB, free: 13.86 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006858/0.9254, allocations: 186.5 kB / 0.6528 GB, free: 13.68 MB / 478.1 MB Notification: Performance of pre-optimization done (n=178): time 4.428e-06/0.9254, allocations: 0 / 0.6528 GB, free: 13.68 MB / 478.1 MB Notification: Performance of matching and sorting (n=254): time 0.3414/1.267, allocations: 39.28 MB / 0.6912 GB, free: 6.258 MB / 0.4981 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.01329/1.28, allocations: 3.166 MB / 0.6943 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00269/1.283, allocations: 1.849 MB / 0.6961 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005415/1.283, allocations: 69.7 kB / 0.6962 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008788/1.284, allocations: 1.081 MB / 0.6972 GB, free: 8 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001085/1.285, allocations: 0.9143 MB / 0.6981 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001224/1.287, allocations: 0.5993 MB / 0.6987 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001255/1.287, allocations: 304.9 kB / 0.699 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004553/1.291, allocations: 2.344 MB / 0.7013 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005115/1.296, allocations: 2.952 MB / 0.7042 GB, free: 8.668 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01067/1.307, allocations: 5.381 MB / 0.7094 GB, free: 3.082 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.061e-05/1.307, allocations: 4 kB / 0.7094 GB, free: 3.078 MB / 0.5137 GB Notification: Performance of matching and sorting (n=362) (initialization): time 0.01494/1.322, allocations: 7.114 MB / 0.7164 GB, free: 12.01 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.641e-05/1.322, allocations: 12.16 kB / 0.7164 GB, free: 12 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.323e-05/1.322, allocations: 20 kB / 0.7164 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03213/1.354, allocations: 8.42 MB / 0.7246 GB, free: 3.559 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002716/1.357, allocations: 0.493 MB / 0.7251 GB, free: 3.094 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01311/1.37, allocations: 6.81 MB / 0.7317 GB, free: 12.24 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004639/1.375, allocations: 414.5 kB / 0.7321 GB, free: 11.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005342/1.375, allocations: 171.8 kB / 0.7323 GB, free: 11.67 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005644/1.381, allocations: 2.824 MB / 0.7351 GB, free: 8.836 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005004/1.386, allocations: 2.898 MB / 0.7379 GB, free: 5.699 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01119/1.397, allocations: 5.28 MB / 0.7431 GB, free: 220 kB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.124e-05/1.397, allocations: 4 kB / 0.7431 GB, free: 216 kB / 0.545 GB Notification: Performance of matching and sorting (n=362) (initialization_lambda0): time 0.01448/1.412, allocations: 6.866 MB / 0.7498 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.924e-05/1.412, allocations: 15.94 kB / 0.7498 GB, free: 9.383 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.801e-05/1.412, allocations: 16 kB / 0.7498 GB, free: 9.367 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01493/1.427, allocations: 4.925 MB / 0.7546 GB, free: 4.441 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002977/1.429, allocations: 0.5347 MB / 0.7551 GB, free: 3.934 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01224/1.442, allocations: 6.334 MB / 0.7613 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004983/1.447, allocations: 415.5 kB / 0.7617 GB, free: 13.15 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006465/1.447, allocations: 167.8 kB / 0.7619 GB, free: 12.99 MB / 0.5762 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.0009156/1.448, allocations: 337.8 kB / 0.7622 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007317/1.449, allocations: 258.4 kB / 0.7624 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01823/1.467, allocations: 7.523 MB / 0.7698 GB, free: 4.844 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1883/1.656, allocations: 6.794 MB / 0.7764 GB, free: 257.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.631e-05/1.656, allocations: 4.141 kB / 0.7764 GB, free: 257.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01549/1.671, allocations: 6.961 MB / 0.7832 GB, free: 255.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02486/1.696, allocations: 12.81 MB / 0.7957 GB, free: 251.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/1.696, allocations: 0 / 0.7957 GB, free: 251.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002329/1.698, allocations: 468.8 kB / 0.7962 GB, free: 251.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02036/1.719, allocations: 6.35 MB / 0.8024 GB, free: 249.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005692/1.719, allocations: 114.1 kB / 0.8025 GB, free: 249.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01331/1.732, allocations: 14.1 MB / 0.8163 GB, free: 237.5 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 postOpt calculateStateSetsJacobians (simulation): time 0.008282/1.741, allocations: 2.789 MB / 0.819 GB, free: 234.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01576/1.757, allocations: 10.1 MB / 0.8288 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001808/1.758, allocations: 0.7982 MB / 0.8296 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005212/1.759, allocations: 69.88 kB / 0.8297 GB, free: 224 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002985/1.762, allocations: 271.6 kB / 0.8299 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004657/1.762, allocations: 229.9 kB / 0.8302 GB, free: 223.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002779/1.763, allocations: 119.9 kB / 0.8303 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001343/1.764, allocations: 1.268 MB / 0.8315 GB, free: 222.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/1.764, allocations: 0 / 0.8315 GB, free: 222.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006195/1.77, allocations: 3.127 MB / 0.8346 GB, free: 219.2 MB / 0.5762 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.02079/1.791, allocations: 12.35 MB / 0.8466 GB, free: 207 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01979/1.811, allocations: 8.991 MB / 0.8554 GB, free: 198.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/1.811, allocations: 0 / 0.8554 GB, free: 198.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00845/1.819, allocations: 3.788 MB / 0.8591 GB, free: 194.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004319/1.823, allocations: 1.076 MB / 0.8602 GB, free: 193.2 MB / 0.5762 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.784967088024132] 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.8307668149936944 1.839548752 0.958080486 Calling exit ...