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.001455/0.001455, allocations: 81.62 kB / 19.18 MB, free: 2.52 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.00169/0.00169, allocations: 163.2 kB / 22.46 MB, free: 5.375 MB / 14.72 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 1.46/1.46, allocations: 177.1 MB / 202.8 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] 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.1433/0.1433, allocations: 17.36 MB / 276.5 MB, free: 15.29 MB / 270.1 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.543e-06/1.543e-06, allocations: 3.938 kB / 411.9 MB, free: 4.457 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.883e-05/3.038e-05, allocations: 5.656 kB / 411.9 MB, free: 4.453 MB / 334.1 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.3964/0.3964, allocations: 55.15 MB / 467.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02667/0.4231, allocations: 15.57 MB / 482.7 MB, free: 7.855 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009275/0.4324, allocations: 123.5 kB / 482.8 MB, free: 7.734 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007907/0.4403, allocations: 2.512 MB / 485.3 MB, free: 6.027 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01199/0.4523, allocations: 3.672 MB / 489 MB, free: 3.691 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008815/0.4611, allocations: 2.919 MB / 491.9 MB, free: 1.258 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02073/0.4818, allocations: 11.28 MB / 0.4914 GB, free: 6.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005403/0.4872, allocations: 2.373 MB / 0.4937 GB, free: 3.762 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01536/0.5026, allocations: 6.837 MB / 0.5004 GB, free: 13.1 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008591/0.5112, allocations: 3.915 MB / 0.5042 GB, free: 9.395 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003661/0.5148, allocations: 1.23 MB / 0.5054 GB, free: 8.164 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008998/0.5238, allocations: 2.324 MB / 0.5077 GB, free: 5.863 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005231/0.5291, allocations: 3.643 MB / 0.5112 GB, free: 2.391 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01303/0.5421, allocations: 4.107 MB / 0.5152 GB, free: 14.46 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03006/0.5722, allocations: 16.93 MB / 0.5318 GB, free: 14.47 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.916e-06/0.5722, allocations: 4 kB / 0.5318 GB, free: 14.46 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5722, allocations: 0 / 0.5318 GB, free: 14.46 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007533/0.5729, allocations: 4 kB / 0.5318 GB, free: 14.46 MB / 430.1 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.02946/0.6024, allocations: 12.49 MB / 0.544 GB, free: 1.98 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.6024, allocations: 8.031 kB / 0.544 GB, free: 1.973 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01239/0.6148, allocations: 2.868 MB / 0.5468 GB, free: 15.11 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01289/0.6277, allocations: 5.289 MB / 0.5519 GB, free: 9.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002914/0.6306, allocations: 2.007 MB / 0.5539 GB, free: 7.723 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004968/0.6356, allocations: 1.135 MB / 0.555 GB, free: 6.605 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07512/0.7107, allocations: 47.3 MB / 0.6012 GB, free: 7.23 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002878/0.711, allocations: 4 kB / 0.6012 GB, free: 7.227 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002154/0.7131, allocations: 467.9 kB / 0.6016 GB, free: 6.77 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002353/0.7155, allocations: 1.835 MB / 0.6034 GB, free: 4.922 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3259/1.041, allocations: 79.2 MB / 0.6808 GB, free: 153.1 MB / 0.5138 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.1268/1.168, allocations: 103.6 MB / 0.7819 GB, free: 51 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02248/1.191, allocations: 19.42 MB / 0.8009 GB, free: 31.57 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01718/1.208, allocations: 15.61 MB / 0.8162 GB, free: 15.97 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002397/1.21, allocations: 0.7408 MB / 0.8169 GB, free: 15.23 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.852e-05/1.21, allocations: 91.88 kB / 0.817 GB, free: 15.13 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=533): time 8.296e-06/1.21, allocations: 4 kB / 0.817 GB, free: 15.12 MB / 0.5138 GB Notification: Performance of matching and sorting (n=755): time 0.5789/1.789, allocations: 131.6 MB / 0.9455 GB, free: 79.75 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.07933/1.869, allocations: 51.57 MB / 0.9958 GB, free: 27.04 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006942/1.875, allocations: 4.753 MB / 1 GB, free: 22.3 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.003397/1.879, allocations: 145.7 kB / 1.001 GB, free: 22.16 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002818/1.882, allocations: 5.412 MB / 1.006 GB, free: 17.5 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.005934/1.888, allocations: 2.609 MB / 1.008 GB, free: 14.92 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01152/1.899, allocations: 2.476 MB / 1.011 GB, free: 12.44 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.614e-05/1.899, allocations: 303.8 kB / 1.011 GB, free: 12.14 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2922/2.191, allocations: 23 MB / 1.034 GB, free: 149.4 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03196/2.223, allocations: 24.07 MB / 1.057 GB, free: 138.8 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5233/2.747, allocations: 111.2 MB / 1.166 GB, free: 41.84 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.515e-05/2.747, allocations: 8 kB / 1.166 GB, free: 41.83 MB / 0.5138 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.09085/2.838, allocations: 51.59 MB / 1.216 GB, free: 6.805 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.665e-05/2.838, allocations: 16 kB / 1.216 GB, free: 6.789 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.75e-05/2.838, allocations: 24 kB / 1.216 GB, free: 6.766 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2993/3.137, allocations: 13.58 MB / 1.229 GB, free: 163.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03428/3.171, allocations: 4.494 MB / 1.234 GB, free: 163.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07277/3.244, allocations: 74.05 MB / 1.306 GB, free: 110.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02044/3.265, allocations: 0.691 MB / 1.307 GB, free: 110.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005895/3.27, allocations: 1.725 MB / 1.308 GB, free: 108.6 MB / 0.5294 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.01324/3.284, allocations: 2.753 MB / 1.311 GB, free: 106.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006819/3.29, allocations: 0.615 MB / 1.312 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08801/3.378, allocations: 30.82 MB / 1.342 GB, free: 75.18 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0499/3.428, allocations: 18.18 MB / 1.36 GB, free: 57.04 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.889e-05/3.428, allocations: 8 kB / 1.36 GB, free: 57.03 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002161/3.429, allocations: 39.86 kB / 1.36 GB, free: 56.99 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3505/3.779, allocations: 64.61 MB / 1.423 GB, free: 147.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.981e-05/3.779, allocations: 33.08 kB / 1.423 GB, free: 147.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01665/3.796, allocations: 1.97 MB / 1.425 GB, free: 147.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03708/3.833, allocations: 7.208 MB / 1.432 GB, free: 147.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0015/3.835, allocations: 304.6 kB / 1.432 GB, free: 147.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06288/3.897, allocations: 49.98 MB / 1.481 GB, free: 112.7 MB / 0.5294 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.01886/3.916, allocations: 11.33 MB / 1.492 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06732/3.984, allocations: 26.76 MB / 1.518 GB, free: 87.3 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003242/3.987, allocations: 0.7982 MB / 1.519 GB, free: 86.89 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004222/3.991, allocations: 192.7 kB / 1.519 GB, free: 86.72 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008571/4, allocations: 397.3 kB / 1.519 GB, free: 86.44 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003263/4.003, allocations: 0.8727 MB / 1.52 GB, free: 85.92 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001104/4.004, allocations: 478.9 kB / 1.521 GB, free: 85.49 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.009782/4.014, allocations: 7.448 MB / 1.528 GB, free: 78.05 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.5e-07/4.014, allocations: 0 / 1.528 GB, free: 78.05 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01602/4.03, allocations: 3.982 MB / 1.532 GB, free: 74.09 MB / 0.5294 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.002646/4.032, allocations: 0.6144 MB / 1.532 GB, free: 73.59 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.04387/4.076, allocations: 29.84 MB / 1.562 GB, free: 43.73 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.472e-05/4.076, allocations: 4 kB / 1.562 GB, free: 43.72 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.02306/4.099, allocations: 10.11 MB / 1.571 GB, free: 33.47 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01461/4.114, allocations: 1.519 MB / 1.573 GB, free: 32.06 MB / 0.5294 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4676:9-4676: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 656] [Calling sys.exit(0), Time elapsed: 6.566705517470837] Failed to read output from testmodel.py, exit status != 0: 4.124689597636461 4.134277689 3.559486977 Calling exit ...