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.001219/0.001219, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001273/0.001273, allocations: 192.8 kB / 24.5 MB, free: 4.02 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.326/1.326, allocations: 225.6 MB / 253.3 MB, free: 13.02 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.00145/0.00145, allocations: 47.92 kB / 371.2 MB, free: 9.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.239, allocations: 52.19 MB / 423.4 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.09933/0.3384, allocations: 91.29 MB / 0.5026 GB, free: 2.984 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03201/0.3704, allocations: 21.52 MB / 0.5237 GB, free: 13.41 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002209/0.3726, allocations: 118.9 kB / 0.5238 GB, free: 13.29 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002491/0.3751, allocations: 0.955 MB / 0.5247 GB, free: 12.33 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009397/0.3845, allocations: 3.877 MB / 0.5285 GB, free: 8.434 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01306/0.3975, allocations: 6.049 MB / 0.5344 GB, free: 2.383 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.2362/0.6337, allocations: 7.4 MB / 0.5416 GB, free: 5.676 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002653/0.6364, allocations: 1.601 MB / 0.5432 GB, free: 5.609 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1574/0.7938, allocations: 74.48 MB / 0.6159 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07651/0.8703, allocations: 31.87 MB / 0.647 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.001423/0.8717, allocations: 252 kB / 0.6473 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01563/0.8874, allocations: 6.149 MB / 0.6533 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.00236/0.8897, allocations: 1.114 MB / 0.6544 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.003257/0.893, allocations: 1.508 MB / 0.6558 GB, free: 9.281 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01342/0.9064, allocations: 5.55 MB / 0.6613 GB, free: 4.008 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 9.528e-06/0.9064, allocations: 0 / 0.6613 GB, free: 4.008 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.883e-06/0.9064, allocations: 0 / 0.6613 GB, free: 4.008 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0001656/0.9066, allocations: 0 / 0.6613 GB, free: 4.008 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.0107/0.9173, allocations: 3.526 MB / 0.6647 GB, free: 0.4961 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/0.9173, allocations: 11.97 kB / 0.6647 GB, free: 496 kB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.699e-05/0.9174, allocations: 61.66 kB / 0.6648 GB, free: 432 kB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005879/0.918, allocations: 349.2 kB / 0.6651 GB, free: 84 kB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001193/0.9192, allocations: 324 kB / 0.6654 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003278/0.9225, allocations: 1.592 MB / 0.667 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002417/0.9227, allocations: 270.1 kB / 0.6672 GB, free: 13.94 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003495/0.9231, allocations: 209.2 kB / 0.6674 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005608/0.9287, allocations: 3.311 MB / 0.6707 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.14e-05/0.9287, allocations: 7.281 kB / 0.6707 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002289/0.929, allocations: 82.16 kB / 0.6707 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003554/0.9293, allocations: 254.9 kB / 0.671 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005916/0.9352, allocations: 3.129 MB / 0.674 GB, free: 6.93 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.02285/0.9581, allocations: 13.54 MB / 0.6873 GB, free: 8.742 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005089/0.9632, allocations: 2.155 MB / 0.6894 GB, free: 6.602 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002822/0.966, allocations: 1.312 MB / 0.6907 GB, free: 5.289 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008559/0.9746, allocations: 3.869 MB / 0.6944 GB, free: 1.469 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.395e-05/0.9746, allocations: 60.31 kB / 0.6945 GB, free: 1.406 MB / 0.545 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008227/0.9754, allocations: 186.5 kB / 0.6947 GB, free: 1.223 MB / 0.545 GB Notification: Performance of pre-optimization done (n=178): time 4.137e-06/0.9754, allocations: 4 kB / 0.6947 GB, free: 1.219 MB / 0.545 GB Notification: Performance of matching and sorting (n=254): time 0.3342/1.31, allocations: 39.26 MB / 0.733 GB, free: 9.914 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 inlineWhenForInitialization (initialization): time 0.01258/1.322, allocations: 3.168 MB / 0.7361 GB, free: 6.711 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002688/1.325, allocations: 1.845 MB / 0.7379 GB, free: 4.824 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0005919/1.325, allocations: 69.7 kB / 0.738 GB, free: 4.75 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009222/1.326, allocations: 1.089 MB / 0.739 GB, free: 3.656 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.001152/1.328, allocations: 0.9129 MB / 0.7399 GB, free: 2.758 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001212/1.329, allocations: 0.5878 MB / 0.7405 GB, free: 2.164 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001284/1.329, allocations: 301.1 kB / 0.7408 GB, free: 1.867 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004535/1.333, allocations: 2.348 MB / 0.7431 GB, free: 15.51 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00522/1.339, allocations: 2.952 MB / 0.746 GB, free: 12.32 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01118/1.35, allocations: 5.386 MB / 0.7512 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-05/1.35, allocations: 4 kB / 0.7512 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of matching and sorting (n=362) (initialization): time 0.2101/1.56, allocations: 7.11 MB / 0.7582 GB, free: 277.4 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.883e-05/1.56, allocations: 16.48 kB / 0.7582 GB, free: 277.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.336e-05/1.56, allocations: 20.16 kB / 0.7582 GB, free: 277.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02953/1.589, allocations: 8.433 MB / 0.7664 GB, free: 277.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002429/1.592, allocations: 0.4919 MB / 0.7669 GB, free: 277.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01113/1.603, allocations: 6.813 MB / 0.7736 GB, free: 274.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004476/1.608, allocations: 410.5 kB / 0.774 GB, free: 274.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000634/1.608, allocations: 172.3 kB / 0.7741 GB, free: 274 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004637/1.613, allocations: 2.823 MB / 0.7769 GB, free: 272.8 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004223/1.617, allocations: 2.901 MB / 0.7797 GB, free: 271 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.008767/1.626, allocations: 5.277 MB / 0.7849 GB, free: 266.6 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.14e-05/1.626, allocations: 7.812 kB / 0.7849 GB, free: 266.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=362) (initialization_lambda0): time 0.0125/1.638, allocations: 6.856 MB / 0.7916 GB, free: 259.9 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/1.638, allocations: 15.94 kB / 0.7916 GB, free: 259.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.155e-05/1.638, allocations: 20 kB / 0.7916 GB, free: 259.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01243/1.651, allocations: 4.935 MB / 0.7964 GB, free: 255 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002581/1.653, allocations: 0.5303 MB / 0.7969 GB, free: 254.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009217/1.663, allocations: 6.34 MB / 0.8031 GB, free: 248.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004352/1.667, allocations: 411.1 kB / 0.8035 GB, free: 247.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005565/1.667, allocations: 171.6 kB / 0.8037 GB, free: 247.6 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.0008509/1.668, allocations: 329.5 kB / 0.804 GB, free: 247.3 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006847/1.669, allocations: 256.6 kB / 0.8043 GB, free: 247.1 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01534/1.684, allocations: 7.532 MB / 0.8116 GB, free: 239.7 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01355/1.698, allocations: 6.798 MB / 0.8183 GB, free: 232.9 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.248e-05/1.698, allocations: 4 kB / 0.8183 GB, free: 232.9 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01302/1.711, allocations: 6.968 MB / 0.8251 GB, free: 225.8 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02388/1.735, allocations: 13.6 MB / 0.8383 GB, free: 212.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.756e-05/1.735, allocations: 0 / 0.8383 GB, free: 212.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002396/1.737, allocations: 455.4 kB / 0.8388 GB, free: 211.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01991/1.757, allocations: 6.372 MB / 0.845 GB, free: 205.4 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007794/1.758, allocations: 107.9 kB / 0.8451 GB, free: 205.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01378/1.772, allocations: 14.13 MB / 0.8589 GB, free: 190.5 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.008291/1.78, allocations: 2.797 MB / 0.8616 GB, free: 187.7 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01677/1.797, allocations: 10.07 MB / 0.8715 GB, free: 177.5 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001714/1.799, allocations: 0.8014 MB / 0.8722 GB, free: 176.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006679/1.799, allocations: 63.98 kB / 0.8723 GB, free: 176.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003168/1.802, allocations: 279.6 kB / 0.8726 GB, free: 176.4 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004618/1.803, allocations: 229.8 kB / 0.8728 GB, free: 176.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003128/1.803, allocations: 119.9 kB / 0.8729 GB, free: 176 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001404/1.805, allocations: 1.264 MB / 0.8741 GB, free: 174.8 MB / 0.6075 GB Notification: Performance of sort global known variables: time 8e-08/1.805, allocations: 0 / 0.8741 GB, free: 174.8 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.006954/1.811, allocations: 3.128 MB / 0.8772 GB, free: 171.9 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.02303/1.835, allocations: 12.36 MB / 0.8893 GB, free: 159.7 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02208/1.857, allocations: 8.993 MB / 0.898 GB, free: 150.7 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.822e-06/1.857, allocations: 0 / 0.898 GB, free: 150.7 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.009038/1.866, allocations: 3.793 MB / 0.9017 GB, free: 146.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005714/1.871, allocations: 1.088 MB / 0.9028 GB, free: 145.8 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.848887628992088] 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.8796307939919643 1.888723437 0.979967445 Calling exit ...