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.001408/0.001408, allocations: 88.72 kB / 19.44 MB, free: 356 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.00161/0.00161, allocations: 157.7 kB / 22.75 MB, free: 1.684 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 1.485/1.485, allocations: 177.2 MB / 203.1 MB, free: 5.586 MB / 186.7 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.1701/0.1701, allocations: 17.37 MB / 276.9 MB, free: 11.66 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.473e-06/1.473e-06, allocations: 0 / 352.7 MB, free: 10.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.992e-05/3.139e-05, allocations: 5.125 kB / 352.7 MB, free: 10.32 MB / 282.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.08006/0.08009, allocations: 55.3 MB / 408 MB, free: 3.027 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.1989/0.279, allocations: 15.57 MB / 423.6 MB, free: 30.77 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009435/0.2884, allocations: 121.2 kB / 423.7 MB, free: 30.77 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008824/0.2973, allocations: 2.519 MB / 426.2 MB, free: 30.19 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01526/0.3125, allocations: 3.676 MB / 429.9 MB, free: 28.52 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0106/0.3231, allocations: 2.908 MB / 432.8 MB, free: 26.69 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01752/0.3407, allocations: 11.28 MB / 444.1 MB, free: 19.82 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008007/0.3487, allocations: 2.373 MB / 446.4 MB, free: 18.55 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0198/0.3685, allocations: 6.826 MB / 453.3 MB, free: 14.04 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01187/0.3803, allocations: 3.926 MB / 457.2 MB, free: 10.33 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005114/0.3855, allocations: 1.223 MB / 458.4 MB, free: 9.109 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01266/0.3981, allocations: 2.322 MB / 460.7 MB, free: 6.812 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005481/0.4036, allocations: 3.637 MB / 464.4 MB, free: 3.348 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01208/0.4157, allocations: 4.11 MB / 468.5 MB, free: 15.41 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04498/0.4606, allocations: 16.94 MB / 485.4 MB, free: 15.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.373e-06/0.4607, allocations: 0 / 485.4 MB, free: 15.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.4607, allocations: 0 / 485.4 MB, free: 15.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004911/0.4612, allocations: 0 / 485.4 MB, free: 15.36 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.05103/0.5122, allocations: 12.5 MB / 497.9 MB, free: 2.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.81e-05/0.5122, allocations: 12.03 kB / 498 MB, free: 2.898 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02973/0.542, allocations: 5.883 MB / 0.492 GB, free: 13.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01419/0.5562, allocations: 5.34 MB / 0.4972 GB, free: 7.766 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002851/0.559, allocations: 2.015 MB / 0.4992 GB, free: 5.645 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003024/0.562, allocations: 1.128 MB / 0.5003 GB, free: 4.539 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07156/0.6336, allocations: 47.29 MB / 0.5465 GB, free: 5.395 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001901/0.6338, allocations: 0 / 0.5465 GB, free: 5.395 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001188/0.635, allocations: 466 kB / 0.5469 GB, free: 4.965 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002413/0.6374, allocations: 1.847 MB / 0.5487 GB, free: 3.102 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3449/0.9823, allocations: 79.2 MB / 0.6261 GB, free: 106.3 MB / 442.8 MB 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.1982/1.181, allocations: 104.1 MB / 0.7278 GB, free: 3.211 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2464/1.427, allocations: 19.42 MB / 0.7467 GB, free: 136.2 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01863/1.446, allocations: 15.6 MB / 0.7619 GB, free: 129.5 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002426/1.448, allocations: 0.7855 MB / 0.7627 GB, free: 129.3 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.765e-05/1.448, allocations: 92.5 kB / 0.7628 GB, free: 129.2 MB / 442.8 MB Notification: Performance of pre-optimization done (n=533): time 1.114e-05/1.448, allocations: 0 / 0.7628 GB, free: 129.2 MB / 442.8 MB Notification: Performance of matching and sorting (n=755): time 0.3531/1.801, allocations: 131.8 MB / 0.8915 GB, free: 2.105 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2292/2.03, allocations: 51.66 MB / 0.9419 GB, free: 106.8 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007327/2.038, allocations: 4.752 MB / 0.9466 GB, free: 103.9 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002715/2.04, allocations: 153.5 kB / 0.9467 GB, free: 103.7 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002973/2.043, allocations: 5.41 MB / 0.952 GB, free: 100.6 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004777/2.048, allocations: 2.612 MB / 0.9546 GB, free: 98.33 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009665/2.058, allocations: 2.473 MB / 0.957 GB, free: 96.27 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 3.698e-05/2.058, allocations: 302.2 kB / 0.9573 GB, free: 95.97 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02554/2.083, allocations: 23.01 MB / 0.9797 GB, free: 74.44 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02604/2.109, allocations: 24.07 MB / 1.003 GB, free: 50.08 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.7033/2.813, allocations: 111.2 MB / 1.112 GB, free: 128.1 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.232e-05/2.813, allocations: 8 kB / 1.112 GB, free: 128.1 MB / 458.8 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.08466/2.898, allocations: 52.41 MB / 1.163 GB, free: 76.44 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.4e-05/2.898, allocations: 16 kB / 1.163 GB, free: 76.42 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.351e-05/2.898, allocations: 24 kB / 1.163 GB, free: 76.4 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05211/2.95, allocations: 18.15 MB / 1.181 GB, free: 58.42 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03009/2.98, allocations: 4.492 MB / 1.185 GB, free: 53.95 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2406/3.22, allocations: 74.15 MB / 1.258 GB, free: 122.4 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01387/3.234, allocations: 0.6893 MB / 1.258 GB, free: 122.3 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004135/3.238, allocations: 1.721 MB / 1.26 GB, free: 122 MB / 458.8 MB 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.009232/3.248, allocations: 2.759 MB / 1.263 GB, free: 120.6 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005888/3.254, allocations: 0.8561 MB / 1.263 GB, free: 120.5 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07852/3.332, allocations: 30.81 MB / 1.294 GB, free: 109.5 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04748/3.38, allocations: 18.18 MB / 1.311 GB, free: 93.59 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.615e-05/3.38, allocations: 11.98 kB / 1.311 GB, free: 93.58 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002054/3.38, allocations: 35.88 kB / 1.311 GB, free: 93.54 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1091/3.489, allocations: 65.12 MB / 1.375 GB, free: 28.75 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001152/3.489, allocations: 32 kB / 1.375 GB, free: 28.72 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01458/3.504, allocations: 1.971 MB / 1.377 GB, free: 26.78 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05/3.554, allocations: 9.038 MB / 1.386 GB, free: 17.86 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001634/3.555, allocations: 295.8 kB / 1.386 GB, free: 17.57 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2344/3.79, allocations: 50.16 MB / 1.435 GB, free: 106 MB / 458.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! 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.01819/3.808, allocations: 11.35 MB / 1.446 GB, free: 96.8 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06554/3.873, allocations: 27 MB / 1.472 GB, free: 84.38 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002617/3.876, allocations: 0.8029 MB / 1.473 GB, free: 84.22 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003362/3.879, allocations: 186.2 kB / 1.473 GB, free: 84.13 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008276/3.888, allocations: 400.1 kB / 1.474 GB, free: 84.03 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003356/3.891, allocations: 0.8781 MB / 1.475 GB, free: 83.88 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001715/3.893, allocations: 482 kB / 1.475 GB, free: 83.79 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.009893/3.903, allocations: 7.448 MB / 1.482 GB, free: 77.53 MB / 458.8 MB Notification: Performance of sort global known variables: time 2.41e-07/3.903, allocations: 0 / 1.482 GB, free: 77.53 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01717/3.92, allocations: 3.985 MB / 1.486 GB, free: 73.57 MB / 458.8 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.002627/3.922, allocations: 0.6105 MB / 1.487 GB, free: 73.18 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.04195/3.964, allocations: 29.85 MB / 1.516 GB, free: 46.01 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 4.344e-05/3.964, allocations: 6.188 kB / 1.516 GB, free: 46 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02073/3.985, allocations: 10.13 MB / 1.526 GB, free: 36.48 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01052/3.996, allocations: 1.93 MB / 1.528 GB, free: 34.73 MB / 458.8 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4696:9-4696:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:846:5-846: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.3604626710293815]