Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.Diffusion.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.0007936/0.0007936, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000959/0.001753, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0007165/0.0007165, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000933/0.00165, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.8742/0.8742, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08436/0.9586, allocations: 53.66 MB / 243.2 MB, free: 15.58 MB / 250.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.0858/0.0858, allocations: 17.37 MB / 261.3 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01053/0.09633, allocations: 6.925 MB / 268.3 MB, free: 6.516 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.Examples.Diffusion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Diffusion") translateModel(Chemical.Examples.Diffusion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Diffusion") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 269.5 MB, free: 5.227 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.133e-05/1.286e-05, allocations: 2.312 kB / 269.5 MB, free: 5.223 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Boundaries.mo:1343:7-1343:76: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:1343:7-1343:76: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.Examples.Diffusion): time 0.1371/0.1371, allocations: 39.2 MB / 308.7 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02642/0.1635, allocations: 17.27 MB / 326 MB, free: 10.09 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00694/0.1705, allocations: 123.4 kB / 326.1 MB, free: 9.965 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005628/0.1761, allocations: 2.656 MB / 328.8 MB, free: 7.289 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009976/0.1861, allocations: 3.663 MB / 332.5 MB, free: 3.598 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006427/0.1925, allocations: 2.905 MB / 335.4 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01243/0.2049, allocations: 11.31 MB / 346.7 MB, free: 5.34 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003004/0.208, allocations: 2.479 MB / 349.1 MB, free: 2.742 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009648/0.2176, allocations: 7.413 MB / 356.6 MB, free: 11.23 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005516/0.2231, allocations: 3.958 MB / 360.5 MB, free: 7.258 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002243/0.2254, allocations: 1.219 MB / 361.7 MB, free: 6.039 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005221/0.2306, allocations: 2.357 MB / 364.1 MB, free: 3.68 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002105/0.2327, allocations: 3.014 MB / 367.1 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00366/0.2363, allocations: 3.41 MB / 370.5 MB, free: 13.23 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01043/0.2468, allocations: 10.89 MB / 381.4 MB, free: 2.309 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.562e-05/0.2468, allocations: 0 / 381.4 MB, free: 2.309 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2468, allocations: 4 kB / 381.4 MB, free: 2.305 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001683/0.247, allocations: 0 / 381.4 MB, free: 2.305 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3564 * Number of variables: 3564 Notification: Performance of Generate backend data structure: time 0.01204/0.259, allocations: 14.74 MB / 396.1 MB, free: 3.473 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.259, allocations: 12.03 kB / 396.2 MB, free: 3.461 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005995/0.265, allocations: 5.219 MB / 401.4 MB, free: 14.22 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004011/0.269, allocations: 3.29 MB / 404.7 MB, free: 10.86 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001024/0.2701, allocations: 1.989 MB / 406.7 MB, free: 8.734 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001076/0.2711, allocations: 1.133 MB / 407.8 MB, free: 7.602 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01152/0.2827, allocations: 14.21 MB / 422 MB, free: 9.332 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00013/0.2828, allocations: 0 / 422 MB, free: 9.332 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004432/0.2832, allocations: 475.9 kB / 422.5 MB, free: 8.867 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001119/0.2844, allocations: 1.835 MB / 424.3 MB, free: 7.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1419/0.4263, allocations: 16.4 MB / 440.7 MB, free: 83.04 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05067/0.477, allocations: 48.84 MB / 489.5 MB, free: 56.54 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004962/0.4819, allocations: 3.128 MB / 492.7 MB, free: 53.46 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002639/0.4846, allocations: 1.395 MB / 494 MB, free: 52.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009488/0.4855, allocations: 0.7577 MB / 494.8 MB, free: 51.32 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/0.4855, allocations: 91.88 kB / 494.9 MB, free: 51.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=533): time 7.424e-06/0.4856, allocations: 0 / 494.9 MB, free: 51.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=755): time 0.1368/0.6224, allocations: 41.08 MB / 0.5234 GB, free: 10.62 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02693/0.6493, allocations: 24.13 MB / 0.547 GB, free: 1.734 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002434/0.6517, allocations: 2.968 MB / 0.5499 GB, free: 15.34 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001469/0.6532, allocations: 145.7 kB / 0.55 GB, free: 15.2 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001721/0.6549, allocations: 4.595 MB / 0.5545 GB, free: 10.77 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002136/0.6571, allocations: 2.641 MB / 0.5571 GB, free: 8.289 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00368/0.6608, allocations: 1.793 MB / 0.5588 GB, free: 6.648 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.004e-05/0.6608, allocations: 301.1 kB / 0.5591 GB, free: 6.352 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005549/0.6664, allocations: 2.675 MB / 0.5617 GB, free: 3.672 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005872/0.6722, allocations: 3.728 MB / 0.5654 GB, free: 15.77 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01548/0.6877, allocations: 10.25 MB / 0.5754 GB, free: 5.391 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.408e-05/0.6877, allocations: 8 kB / 0.5754 GB, free: 5.383 MB / 458.7 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.02632/0.7141, allocations: 9.802 MB / 0.585 GB, free: 11.68 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.05e-05/0.7141, allocations: 20 kB / 0.585 GB, free: 11.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.61e-05/0.7141, allocations: 25.97 kB / 0.585 GB, free: 11.64 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02228/0.7364, allocations: 10.31 MB / 0.5951 GB, free: 1.363 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1687/0.9051, allocations: 4.976 MB / 0.5999 GB, free: 125.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02705/0.9321, allocations: 35.63 MB / 0.6347 GB, free: 98.43 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007445/0.9396, allocations: 321 kB / 0.635 GB, free: 98.43 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002836/0.9424, allocations: 1.603 MB / 0.6366 GB, free: 98.42 MB / 474.7 MB Warning: Assuming fixed start value for the following 5 variables: d2.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real d1.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real d3.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real d4.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real d5.rear.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: 111 * 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 (778): * Single equations (assignments): 746 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 26 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 20 systems {(1,1,100.0%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (4,3,62.5%), (1,4,100.0%), (1,1,100.0%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (2,1,100.0%), (4,3,62.5%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(6,20), (4,3), (3,8), (2,1), (6,20), (4,3)} Notification: Performance of prepare postOptimizeDAE: time 0.005564/0.948, allocations: 0.516 MB / 0.6371 GB, free: 98.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002999/0.951, allocations: 0.5912 MB / 0.6377 GB, free: 98.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02749/0.9785, allocations: 15.62 MB / 0.6529 GB, free: 97.17 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01264/0.9911, allocations: 5.735 MB / 0.6585 GB, free: 96.82 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.05e-05/0.9912, allocations: 7.844 kB / 0.6585 GB, free: 96.82 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.456e-05/0.9913, allocations: 39.42 kB / 0.6586 GB, free: 96.82 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04134/1.033, allocations: 23.49 MB / 0.6815 GB, free: 81.69 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.309e-05/1.033, allocations: 32 kB / 0.6816 GB, free: 81.66 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007957/1.041, allocations: 2.53 MB / 0.684 GB, free: 79.23 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001655/1.042, allocations: 0.6663 MB / 0.6847 GB, free: 78.78 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02172/1.064, allocations: 7.005 MB / 0.6915 GB, free: 71.81 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001542/1.066, allocations: 247.8 kB / 0.6918 GB, free: 71.57 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02344/1.089, allocations: 36.32 MB / 0.7272 GB, free: 33.75 MB / 474.7 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! 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! 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.006221/1.095, allocations: 10.04 MB / 0.737 GB, free: 23.31 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0181/1.113, allocations: 10.71 MB / 0.7475 GB, free: 11.76 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001379/1.115, allocations: 189.3 kB / 0.7477 GB, free: 11.58 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002654/1.117, allocations: 228.9 kB / 0.7479 GB, free: 11.36 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001208/1.119, allocations: 0.7556 MB / 0.7486 GB, free: 10.63 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004581/1.119, allocations: 411.8 kB / 0.749 GB, free: 10.23 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001926/1.121, allocations: 2.517 MB / 0.7515 GB, free: 7.914 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.121, allocations: 7.469 kB / 0.7515 GB, free: 7.91 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008426/1.129, allocations: 3.977 MB / 0.7554 GB, free: 3.957 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 146 * Number of states: 19 ($STATESET8.x[3],$STATESET8.x[2],$STATESET8.x[1],d5.rear.n_flow,$STATESET7.x,$STATESET6.x[3],$STATESET6.x[2],$STATESET6.x[1],d4.rear.n_flow,$STATESET5.x[3],$STATESET5.x[2],$STATESET5.x[1],d3.rear.n_flow,$STATESET4.x,$STATESET3.x,d1.rear.n_flow,$STATESET2.x,$STATESET1.x,d2.rear.n_flow) * Number of discrete variables: 11 ($cse169,$cse163,$cse148,$cse143,$cse136,$cse127,$cse121,$cse110,$cse103,$cse93,$cse87) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (581): * Single equations (assignments): 556 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 25 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 14 systems {(1,4,100.0%), (4,3,62.5%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (2,1,100.0%), (1,4,100.0%), (4,3,62.5%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 11 systems {(4,20), (9,10), (3,3), (3,9), (8,10), (4,20), (9,10), (3,3), (3,3), (3,3), (3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009699/1.13, allocations: 0.6185 MB / 0.756 GB, free: 3.496 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01392/1.144, allocations: 8.607 MB / 0.7644 GB, free: 10.93 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002284/1.144, allocations: 96.12 kB / 0.7645 GB, free: 10.84 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008483/1.153, allocations: 6.036 MB / 0.7704 GB, free: 4.832 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00935/1.162, allocations: 2.543 MB / 0.7729 GB, free: 2.371 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4143:9-4143:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:784:5-784: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.5442883372306824]