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.0006049/0.0006049, allocations: 76.45 kB / 19.9 MB, free: 12 kB / 13.93 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.0007911/0.0007911, allocations: 169.9 kB / 23.18 MB, free: 1.379 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.9192/0.9192, allocations: 177.2 MB / 203.6 MB, free: 5.754 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.09606/0.09606, allocations: 17.37 MB / 277.4 MB, free: 11.86 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: Chemical requested package Modelica of version 4.0.0. Modelica 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.000953/0.000953, allocations: 63.91 kB / 412.8 MB, free: 15.87 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3562/0.3571, allocations: 59.84 MB / 472.7 MB, free: 29.81 MB / 410.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.054/0.4111, allocations: 54.99 MB / 0.5153 GB, free: 10.22 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.04205/0.4532, allocations: 15.55 MB / 0.5305 GB, free: 12.3 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0128/0.466, allocations: 123.5 kB / 0.5306 GB, free: 12.18 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00665/0.4726, allocations: 2.506 MB / 0.533 GB, free: 10.11 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009419/0.482, allocations: 3.533 MB / 0.5365 GB, free: 6.555 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006088/0.4881, allocations: 2.882 MB / 0.5393 GB, free: 3.664 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.01185/0.5, allocations: 10.87 MB / 0.5499 GB, free: 8.758 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002444/0.5024, allocations: 2.361 MB / 0.5522 GB, free: 6.297 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007333/0.5097, allocations: 7.117 MB / 0.5592 GB, free: 15.16 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004189/0.5139, allocations: 4.591 MB / 0.5636 GB, free: 10.55 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001393/0.5153, allocations: 1.223 MB / 0.5648 GB, free: 9.324 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004015/0.5193, allocations: 2.299 MB / 0.5671 GB, free: 7.023 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001839/0.5212, allocations: 3.598 MB / 0.5706 GB, free: 3.414 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003799/0.525, allocations: 5.06 MB / 0.5755 GB, free: 14.33 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01369/0.5387, allocations: 17.03 MB / 0.5922 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.5387, allocations: 0 / 0.5922 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.455e-06/0.5387, allocations: 0 / 0.5922 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003874/0.5391, allocations: 0 / 0.5922 GB, free: 13.23 MB / 0.4948 GB 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.01677/0.5558, allocations: 12.64 MB / 0.6045 GB, free: 0.4922 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.5559, allocations: 8.031 kB / 0.6045 GB, free: 496 kB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0054/0.5613, allocations: 2.869 MB / 0.6073 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006902/0.5682, allocations: 5.296 MB / 0.6125 GB, free: 8.238 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001448/0.5696, allocations: 2.016 MB / 0.6145 GB, free: 6.086 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001042/0.5707, allocations: 1.129 MB / 0.6156 GB, free: 4.957 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4961/1.067, allocations: 47.27 MB / 0.6617 GB, free: 115.3 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001225/1.067, allocations: 2.688 kB / 0.6617 GB, free: 115.3 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005468/1.067, allocations: 466.5 kB / 0.6622 GB, free: 115 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001576/1.069, allocations: 1.85 MB / 0.664 GB, free: 114.6 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04605/1.115, allocations: 79.21 MB / 0.7413 GB, free: 51.33 MB / 0.5262 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.08765/1.203, allocations: 103.6 MB / 0.8425 GB, free: 12.26 MB / 0.5887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01798/1.221, allocations: 19.41 MB / 0.8615 GB, free: 8.816 MB / 0.6043 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2643/1.485, allocations: 15.6 MB / 0.8767 GB, free: 193.9 MB / 0.6043 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001494/1.486, allocations: 0.7516 MB / 0.8774 GB, free: 193.7 MB / 0.6043 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.997e-05/1.487, allocations: 93.97 kB / 0.8775 GB, free: 193.7 MB / 0.6043 GB Notification: Performance of pre-optimization done (n=533): time 7.424e-06/1.487, allocations: 0 / 0.8775 GB, free: 193.7 MB / 0.6043 GB Notification: Performance of matching and sorting (n=755): time 0.2022/1.689, allocations: 131.6 MB / 1.006 GB, free: 99.48 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.04273/1.731, allocations: 51.59 MB / 1.056 GB, free: 46.76 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004425/1.736, allocations: 4.747 MB / 1.061 GB, free: 42.03 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 0.002935/1.739, allocations: 153.6 kB / 1.061 GB, free: 41.87 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 0.001865/1.741, allocations: 5.411 MB / 1.066 GB, free: 37.22 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 0.002362/1.743, allocations: 2.65 MB / 1.069 GB, free: 34.61 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00369/1.747, allocations: 2.475 MB / 1.071 GB, free: 32.13 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 2.296e-05/1.747, allocations: 307.7 kB / 1.072 GB, free: 31.83 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01606/1.763, allocations: 23 MB / 1.094 GB, free: 8.844 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3199/2.083, allocations: 24.06 MB / 1.118 GB, free: 176.2 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2722/2.355, allocations: 111.2 MB / 1.226 GB, free: 103.8 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.665e-05/2.355, allocations: 11.75 kB / 1.226 GB, free: 103.8 MB / 0.6043 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.04858/2.404, allocations: 51.58 MB / 1.277 GB, free: 52.8 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 3.754e-05/2.404, allocations: 16 kB / 1.277 GB, free: 52.79 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.772e-05/2.404, allocations: 32 kB / 1.277 GB, free: 52.75 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0227/2.426, allocations: 13.57 MB / 1.29 GB, free: 39.2 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01547/2.442, allocations: 4.498 MB / 1.294 GB, free: 34.7 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3051/2.747, allocations: 74.08 MB / 1.367 GB, free: 173.7 MB / 0.6199 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008377/2.755, allocations: 0.6939 MB / 1.367 GB, free: 173.6 MB / 0.6199 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001972/2.757, allocations: 1.722 MB / 1.369 GB, free: 173.3 MB / 0.6199 GB Warning: Assuming fixed start value for the following 5 variables: d5.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 d3.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 d2.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 {(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%), (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%)} * 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.006416/2.764, allocations: 2.754 MB / 1.372 GB, free: 171.8 MB / 0.6199 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001911/2.766, allocations: 0.6133 MB / 1.372 GB, free: 171.8 MB / 0.6199 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04645/2.812, allocations: 30.83 MB / 1.402 GB, free: 160.8 MB / 0.6199 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02423/2.836, allocations: 18.17 MB / 1.42 GB, free: 153.7 MB / 0.6199 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.202e-05/2.836, allocations: 8.75 kB / 1.42 GB, free: 153.7 MB / 0.6199 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.223e-05/2.836, allocations: 36.45 kB / 1.42 GB, free: 153.7 MB / 0.6199 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0616/2.898, allocations: 64.62 MB / 1.483 GB, free: 98.16 MB / 0.6199 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.733e-05/2.898, allocations: 39.92 kB / 1.483 GB, free: 98.12 MB / 0.6199 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007184/2.905, allocations: 1.968 MB / 1.485 GB, free: 96.18 MB / 0.6199 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01773/2.923, allocations: 7.224 MB / 1.492 GB, free: 89.04 MB / 0.6199 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005583/2.923, allocations: 299.7 kB / 1.493 GB, free: 88.75 MB / 0.6199 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03371/2.957, allocations: 50.01 MB / 1.542 GB, free: 36.9 MB / 0.6199 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! 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.008359/2.966, allocations: 11.34 MB / 1.553 GB, free: 24.98 MB / 0.6199 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2839/3.249, allocations: 26.81 MB / 1.579 GB, free: 165.1 MB / 0.6199 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002272/3.252, allocations: 0.7955 MB / 1.58 GB, free: 165.1 MB / 0.6199 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001775/3.253, allocations: 194.5 kB / 1.58 GB, free: 165.1 MB / 0.6199 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00335/3.257, allocations: 397.9 kB / 1.58 GB, free: 165.1 MB / 0.6199 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001746/3.259, allocations: 0.8777 MB / 1.581 GB, free: 165.1 MB / 0.6199 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006424/3.259, allocations: 477.4 kB / 1.581 GB, free: 165.1 MB / 0.6199 GB Notification: Performance of sorting global known variables: time 0.006066/3.265, allocations: 7.45 MB / 1.589 GB, free: 164.9 MB / 0.6199 GB Notification: Performance of sort global known variables: time 4.41e-07/3.265, allocations: 0 / 1.589 GB, free: 164.9 MB / 0.6199 GB Notification: Performance of remove unused functions: time 0.01058/3.276, allocations: 3.978 MB / 1.593 GB, free: 164.9 MB / 0.6199 GB 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.0009807/3.277, allocations: 0.6065 MB / 1.593 GB, free: 164.8 MB / 0.6199 GB Notification: Performance of simCode: created initialization part: time 0.03167/3.308, allocations: 29.85 MB / 1.622 GB, free: 154.8 MB / 0.6199 GB Notification: Performance of simCode: created event and clocks part: time 3.829e-05/3.309, allocations: 6.938 kB / 1.622 GB, free: 154.8 MB / 0.6199 GB Notification: Performance of simCode: created simulation system equations: time 0.01299/3.322, allocations: 10.13 MB / 1.632 GB, free: 149.6 MB / 0.6199 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006378/3.328, allocations: 1.524 MB / 1.634 GB, free: 149.2 MB / 0.6199 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4747:9-4747:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:836:5-836:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 657] [Calling sys.exit(0), Time elapsed: 5.1316767409443855] Failed to read output from testmodel.py, exit status != 0: 3.3348410020116717 3.341001168 2.800776811 Calling exit ...