Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Boundaries.Tests.TestSubstance.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.0008699/0.0008699, allocations: 81.17 kB / 19.87 MB, free: 4.621 MB / 18.57 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.0008594/0.0008594, allocations: 169 kB / 23.27 MB, free: 1.223 MB / 18.57 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 0.9038/0.9038, allocations: 177.2 MB / 203.7 MB, free: 5.52 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.08837/0.08837, allocations: 17.39 MB / 277.6 MB, free: 11.51 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo) 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: translateModel(Chemical.Boundaries.Tests.TestSubstance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Chemical_Chemical.Boundaries.Tests.TestSubstance") translateModel(Chemical.Boundaries.Tests.TestSubstance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Chemical_Chemical.Boundaries.Tests.TestSubstance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 353.9 MB, free: 9.711 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.342e-05/2.501e-05, allocations: 4.703 kB / 353.9 MB, free: 9.707 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Interfaces.mo:1564:5-1564:64:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Interfaces.mo:1564:5-1564:64:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Boundaries.mo:644:5-644:47:writable] Warning: An inner declaration for outer component dropOfCommons could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Boundaries.mo:644:5-644:47:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"dropOfCommons\" component but an inner \"dropOfCommons\" component is not defined. Use Chemical.DropOfCommons in your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Boundaries.Tests.TestSubstance): time 0.04144/0.04146, allocations: 56.96 MB / 410.8 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.1494/0.1908, allocations: 14.03 MB / 424.9 MB, free: 33.3 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006283/0.1971, allocations: 110.6 kB / 425 MB, free: 33.27 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005826/0.2029, allocations: 2.257 MB / 427.2 MB, free: 32.36 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008089/0.211, allocations: 3.143 MB / 430.4 MB, free: 30.88 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005239/0.2163, allocations: 2.144 MB / 432.5 MB, free: 29.7 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.009739/0.226, allocations: 9.1 MB / 441.6 MB, free: 24.25 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002598/0.2286, allocations: 1.953 MB / 443.6 MB, free: 23.19 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006698/0.2353, allocations: 5.336 MB / 448.9 MB, free: 19.86 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003899/0.2392, allocations: 3 MB / 451.9 MB, free: 18.14 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001326/0.2405, allocations: 0.9141 MB / 452.8 MB, free: 17.23 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003962/0.2445, allocations: 1.835 MB / 454.7 MB, free: 15.41 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001039/0.2455, allocations: 2.792 MB / 457.5 MB, free: 12.75 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003469/0.249, allocations: 3.197 MB / 460.7 MB, free: 9.688 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009767/0.2588, allocations: 9.477 MB / 470.1 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.2588, allocations: 0 / 470.1 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2588, allocations: 0 / 470.1 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003106/0.2591, allocations: 0 / 470.1 MB, free: 0.9688 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2855 * Number of variables: 2855 Notification: Performance of Generate backend data structure: time 0.01073/0.2698, allocations: 11.38 MB / 481.5 MB, free: 6.215 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.2699, allocations: 8.031 kB / 481.5 MB, free: 6.207 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004257/0.2741, allocations: 4.394 MB / 485.9 MB, free: 1.852 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004332/0.2784, allocations: 3.826 MB / 489.7 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001012/0.2795, allocations: 1.626 MB / 491.4 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007904/0.2802, allocations: 0.9037 MB / 492.3 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01191/0.2921, allocations: 11.5 MB / 0.492 GB, free: 136 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001231/0.2923, allocations: 11.88 kB / 0.492 GB, free: 124 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004699/0.2927, allocations: 386.5 kB / 0.4924 GB, free: 15.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001016/0.2938, allocations: 1.489 MB / 0.4938 GB, free: 14.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01269/0.3065, allocations: 13.02 MB / 0.5065 GB, free: 1.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06001/0.3665, allocations: 53.23 MB / 0.5585 GB, free: 12.67 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005233/0.3717, allocations: 2.686 MB / 0.5611 GB, free: 10.03 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003032/0.3747, allocations: 1.315 MB / 0.5624 GB, free: 8.707 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00111/0.3758, allocations: 0.79 MB / 0.5632 GB, free: 7.965 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.228e-05/0.3759, allocations: 86.48 kB / 0.5633 GB, free: 7.875 MB / 442.7 MB Notification: Performance of pre-optimization done (n=402): time 5.751e-06/0.3759, allocations: 0 / 0.5633 GB, free: 7.875 MB / 442.7 MB Notification: Performance of matching and sorting (n=576): time 0.3855/0.7614, allocations: 34.87 MB / 0.5973 GB, free: 113.6 MB / 442.8 MB 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.01016/0.7715, allocations: 14.41 MB / 0.6114 GB, free: 102.9 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00296/0.7745, allocations: 3.659 MB / 0.615 GB, free: 102.4 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001719/0.7762, allocations: 117.3 kB / 0.6151 GB, free: 102.4 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001965/0.7782, allocations: 4.951 MB / 0.6199 GB, free: 100.1 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00243/0.7806, allocations: 2.023 MB / 0.6219 GB, free: 98.41 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002989/0.7836, allocations: 1.795 MB / 0.6236 GB, free: 96.73 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 4.357e-05/0.7836, allocations: 483.7 kB / 0.6241 GB, free: 96.26 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004144/0.7878, allocations: 2.332 MB / 0.6264 GB, free: 93.92 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004809/0.7926, allocations: 3.324 MB / 0.6296 GB, free: 90.38 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01261/0.8052, allocations: 8.219 MB / 0.6377 GB, free: 82 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.108e-05/0.8052, allocations: 4 kB / 0.6377 GB, free: 81.99 MB / 442.8 MB Notification: Performance of matching and sorting (n=684) (initialization): time 0.02349/0.8287, allocations: 9.797 MB / 0.6472 GB, free: 72.27 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.036e-05/0.8287, allocations: 16.72 kB / 0.6472 GB, free: 72.25 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.672e-05/0.8288, allocations: 16 kB / 0.6473 GB, free: 72.24 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01682/0.8456, allocations: 7.915 MB / 0.655 GB, free: 64.34 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0114/0.857, allocations: 3.377 MB / 0.6583 GB, free: 61.05 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02478/0.8818, allocations: 55.76 MB / 0.7127 GB, free: 3.535 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005822/0.8876, allocations: 222.4 kB / 0.713 GB, free: 3.336 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001993/0.8896, allocations: 1.323 MB / 0.7142 GB, free: 2.012 MB / 442.8 MB Warning: Assuming fixed start value for the following 9 variables: boundaryRear.fore.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real boundaryFore2.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real boundaryRear1.fore.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real boundaryFore1.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real boundaryFore3.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real boundaryRear3.fore.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real boundaryRear2.fore.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real boundaryFore.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real boundaryRear4.fore.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (586): * Single equations (assignments): 562 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 22 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 13 systems {(1,1), (1,1), (1,1), (1,1), (1,1), (1,1), (8,5), (10,38), (8,5), (1,1), (1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.004078/0.8937, allocations: 487.2 kB / 0.7147 GB, free: 1.602 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00247/0.8961, allocations: 0.7343 MB / 0.7154 GB, free: 0.8672 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02779/0.9239, allocations: 14.5 MB / 0.7296 GB, free: 2.828 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01199/0.9359, allocations: 5.139 MB / 0.7346 GB, free: 13.73 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.881e-05/0.9359, allocations: 8 kB / 0.7346 GB, free: 13.72 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001232/0.9361, allocations: 27.89 kB / 0.7346 GB, free: 13.69 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2435/1.18, allocations: 23.7 MB / 0.7578 GB, free: 126.2 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.726e-05/1.18, allocations: 26.34 kB / 0.7578 GB, free: 126.2 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0051/1.185, allocations: 1.416 MB / 0.7592 GB, free: 126.2 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02182/1.207, allocations: 6.761 MB / 0.7658 GB, free: 125.9 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001272/1.208, allocations: 243.8 kB / 0.766 GB, free: 125.9 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02309/1.231, allocations: 43.66 MB / 0.8087 GB, free: 89.3 MB / 474.8 MB 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.00715/1.238, allocations: 11.95 MB / 0.8203 GB, free: 79.17 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01846/1.257, allocations: 9.828 MB / 0.8299 GB, free: 75.97 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00125/1.258, allocations: 0.5775 MB / 0.8305 GB, free: 75.96 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001011/1.259, allocations: 145.5 kB / 0.8306 GB, free: 75.95 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00226/1.261, allocations: 140.5 kB / 0.8308 GB, free: 75.95 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001058/1.262, allocations: 0.6447 MB / 0.8314 GB, free: 75.92 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000395/1.262, allocations: 358.4 kB / 0.8318 GB, free: 75.92 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.002989/1.265, allocations: 3.652 MB / 0.8353 GB, free: 75.7 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.7e-07/1.265, allocations: 0 / 0.8353 GB, free: 75.7 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.007875/1.273, allocations: 3.272 MB / 0.8385 GB, free: 73.08 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 109 * Number of states: 19 ($STATESET6.x,boundaryRear4.fore.n_flow,$STATESET5.x,$STATESET4.x[5],$STATESET4.x[4],$STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],boundaryFore.rear.n_flow,boundaryRear2.fore.n_flow,boundaryRear3.fore.n_flow,boundaryFore3.rear.n_flow,$STATESET3.x,boundaryFore1.rear.n_flow,$STATESET2.x,boundaryRear1.fore.n_flow,boundaryFore2.rear.n_flow,$STATESET1.x,boundaryRear.fore.n_flow) * Number of discrete variables: 9 ($cse135,$cse124,$cse105,$cse98,$cse91,$cse84,$cse73,$cse65,$cse51) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (419): * Single equations (assignments): 397 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 22 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 15 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (8,5,34.4%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 7 systems {(3,3), (3,3), (10,42), (17,21), (3,3), (3,3), (3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001163/1.275, allocations: 0.5671 MB / 0.8391 GB, free: 72.79 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01086/1.285, allocations: 6.832 MB / 0.8457 GB, free: 67.15 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.968e-05/1.285, allocations: 4 kB / 0.8457 GB, free: 67.14 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006393/1.292, allocations: 6.417 MB / 0.852 GB, free: 60.86 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005107/1.297, allocations: 1.677 MB / 0.8536 GB, free: 59.71 MB / 474.8 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4595:9-4595:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:827:5-827:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 2.9059330238960683]