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.001413/0.001413, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001634/0.001634, allocations: 222 kB / 22.25 MB, free: 5.254 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.515/1.515, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.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.1476/0.1476, allocations: 23.88 MB / 336.3 MB, free: 10.95 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: 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.002121/0.002121, allocations: 63.89 kB / 471.6 MB, free: 7.016 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4509/0.4531, allocations: 59.86 MB / 0.519 GB, free: 9.789 MB / 382.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.1152/0.5683, allocations: 54.75 MB / 0.5725 GB, free: 3 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04146/0.6098, allocations: 15.57 MB / 0.5877 GB, free: 3.434 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.014/0.6238, allocations: 119.5 kB / 0.5878 GB, free: 3.316 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01016/0.6339, allocations: 2.498 MB / 0.5902 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0174/0.6513, allocations: 3.525 MB / 0.5937 GB, free: 13.25 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01062/0.6619, allocations: 2.879 MB / 0.5965 GB, free: 10.36 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.02231/0.6843, allocations: 10.88 MB / 0.6071 GB, free: 15.44 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005442/0.6897, allocations: 2.396 MB / 0.6095 GB, free: 12.95 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009427/0.6991, allocations: 4.492 MB / 0.6138 GB, free: 8.438 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01051/0.7096, allocations: 5.38 MB / 0.6191 GB, free: 3.035 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004597/0.7142, allocations: 1.227 MB / 0.6203 GB, free: 1.809 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009286/0.7235, allocations: 2.326 MB / 0.6226 GB, free: 15.48 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007308/0.7308, allocations: 3.61 MB / 0.6261 GB, free: 11.86 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01297/0.7438, allocations: 5.048 MB / 0.631 GB, free: 6.785 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03402/0.7778, allocations: 17.02 MB / 0.6476 GB, free: 5.699 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.105e-05/0.7778, allocations: 4 kB / 0.6476 GB, free: 5.695 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.7778, allocations: 4 kB / 0.6477 GB, free: 5.691 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0009268/0.7788, allocations: 0 / 0.6477 GB, free: 5.691 MB / 494.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.03824/0.817, allocations: 12.64 MB / 0.66 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.817, allocations: 8.031 kB / 0.66 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0133/0.8304, allocations: 2.861 MB / 0.6628 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01726/0.8476, allocations: 5.292 MB / 0.668 GB, free: 0.6953 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003336/0.8509, allocations: 2.012 MB / 0.6699 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004183/0.8551, allocations: 1.133 MB / 0.671 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07796/0.9331, allocations: 47.3 MB / 0.7172 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004886/0.9336, allocations: 0 / 0.7172 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003138/0.9367, allocations: 467.9 kB / 0.7177 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002346/0.9391, allocations: 1.839 MB / 0.7195 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6394/1.578, allocations: 79.2 MB / 0.7968 GB, free: 126.3 MB / 0.5607 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.1453/1.724, allocations: 103.6 MB / 0.898 GB, free: 23.36 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02225/1.746, allocations: 19.42 MB / 0.9169 GB, free: 3.914 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02392/1.77, allocations: 15.59 MB / 0.9322 GB, free: 4.312 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003013/1.773, allocations: 0.7529 MB / 0.9329 GB, free: 3.562 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001239/1.773, allocations: 95.86 kB / 0.933 GB, free: 3.457 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=533): time 8.646e-06/1.773, allocations: 0 / 0.933 GB, free: 3.457 MB / 0.5763 GB Notification: Performance of matching and sorting (n=755): time 0.618/2.391, allocations: 131.5 MB / 1.061 GB, free: 145 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.07057/2.462, allocations: 51.58 MB / 1.112 GB, free: 92.3 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006089/2.468, allocations: 4.754 MB / 1.116 GB, free: 87.56 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.003477/2.471, allocations: 149.6 kB / 1.117 GB, free: 87.41 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.002543/2.474, allocations: 5.416 MB / 1.122 GB, free: 82.73 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.004761/2.478, allocations: 2.644 MB / 1.124 GB, free: 80.12 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0066/2.485, allocations: 2.475 MB / 1.127 GB, free: 77.64 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 4.579e-05/2.485, allocations: 301.1 kB / 1.127 GB, free: 77.35 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02527/2.51, allocations: 23.01 MB / 1.15 GB, free: 54.37 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02858/2.539, allocations: 24.07 MB / 1.173 GB, free: 30 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.8123/3.351, allocations: 110.6 MB / 1.281 GB, free: 151.6 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-05/3.351, allocations: 8 kB / 1.281 GB, free: 151.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.08202/3.433, allocations: 51.57 MB / 1.331 GB, free: 100.5 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.185e-05/3.433, allocations: 16.94 kB / 1.331 GB, free: 100.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.166e-05/3.433, allocations: 24 kB / 1.331 GB, free: 100.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04269/3.476, allocations: 13.51 MB / 1.345 GB, free: 87.05 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0309/3.507, allocations: 4.488 MB / 1.349 GB, free: 82.59 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06744/3.575, allocations: 74.1 MB / 1.421 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01506/3.59, allocations: 0.7017 MB / 1.422 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004239/3.594, allocations: 1.726 MB / 1.424 GB, free: 5.105 MB / 0.6075 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.01046/3.604, allocations: 2.748 MB / 1.426 GB, free: 2.375 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003957/3.608, allocations: 0.6172 MB / 1.427 GB, free: 1.77 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.381/3.989, allocations: 30.78 MB / 1.457 GB, free: 191.7 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04846/4.038, allocations: 18.18 MB / 1.475 GB, free: 185.8 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000111/4.038, allocations: 10.41 kB / 1.475 GB, free: 185.8 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002154/4.038, allocations: 36.73 kB / 1.475 GB, free: 185.8 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1081/4.146, allocations: 64.63 MB / 1.538 GB, free: 148.1 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.532e-05/4.146, allocations: 32 kB / 1.538 GB, free: 148.1 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01463/4.161, allocations: 1.972 MB / 1.54 GB, free: 146.1 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03303/4.194, allocations: 7.168 MB / 1.547 GB, free: 139.1 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002132/4.196, allocations: 307.8 kB / 1.547 GB, free: 138.8 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05693/4.253, allocations: 50.01 MB / 1.596 GB, free: 87.11 MB / 0.6232 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.01591/4.269, allocations: 11.35 MB / 1.607 GB, free: 75.28 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05905/4.328, allocations: 26.8 MB / 1.633 GB, free: 48 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003349/4.331, allocations: 0.798 MB / 1.634 GB, free: 47.35 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003817/4.335, allocations: 191.8 kB / 1.634 GB, free: 47.16 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008901/4.344, allocations: 396.9 kB / 1.635 GB, free: 46.78 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003499/4.347, allocations: 0.8793 MB / 1.636 GB, free: 45.91 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001507/4.349, allocations: 475.8 kB / 1.636 GB, free: 45.44 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.01039/4.359, allocations: 7.452 MB / 1.643 GB, free: 38 MB / 0.6232 GB Notification: Performance of sort global known variables: time 9e-08/4.359, allocations: 0 / 1.643 GB, free: 38 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.02042/4.38, allocations: 3.988 MB / 1.647 GB, free: 34.03 MB / 0.6232 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.003106/4.383, allocations: 0.5994 MB / 1.648 GB, free: 33.55 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.04541/4.428, allocations: 29.84 MB / 1.677 GB, free: 3.512 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 5.411e-05/4.428, allocations: 4 kB / 1.677 GB, free: 3.508 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.3299/4.758, allocations: 10.12 MB / 1.687 GB, free: 190.5 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01406/4.772, allocations: 1.524 MB / 1.688 GB, free: 190.4 MB / 0.6232 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4734:9-4734:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:823:5-823:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 655] [Calling sys.exit(0), Time elapsed: 7.420345646794885] Failed to read output from testmodel.py, exit status != 0: 4.783368517179042 4.796330584 4.015336798 Calling exit ...