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.001881/0.001881, allocations: 85.48 kB / 19.44 MB, free: 344 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.00199/0.00199, allocations: 173.2 kB / 22.76 MB, free: 1.664 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.543/1.543, allocations: 177.1 MB / 203.1 MB, free: 5.617 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.1417/0.1417, allocations: 17.37 MB / 276.9 MB, free: 11.68 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.754e-06/1.754e-06, allocations: 0 / 352.7 MB, free: 10.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.218e-05/3.393e-05, allocations: 12.92 kB / 352.7 MB, free: 10.33 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.3422/0.3423, allocations: 60.77 MB / 413.5 MB, free: 15.62 MB / 330.8 MB Notification: Performance of NFInst.instExpressions: time 0.02429/0.3666, allocations: 16.47 MB / 429.9 MB, free: 13.68 MB / 330.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007652/0.3742, allocations: 124.7 kB / 430.1 MB, free: 13.65 MB / 330.8 MB Notification: Performance of NFTyping.typeComponents: time 0.007551/0.3818, allocations: 2.508 MB / 432.6 MB, free: 12.61 MB / 330.8 MB Notification: Performance of NFTyping.typeBindings: time 0.01219/0.394, allocations: 3.68 MB / 436.2 MB, free: 10.56 MB / 330.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.00869/0.4027, allocations: 2.907 MB / 439.2 MB, free: 8.367 MB / 330.8 MB Notification: Performance of NFFlatten.flatten: time 0.01421/0.4169, allocations: 11.28 MB / 450.4 MB, free: 1.492 MB / 330.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003675/0.4205, allocations: 2.375 MB / 452.8 MB, free: 236 kB / 330.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01483/0.4354, allocations: 6.836 MB / 459.6 MB, free: 11.9 MB / 346.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009763/0.4451, allocations: 3.977 MB / 463.6 MB, free: 9.668 MB / 346.8 MB Notification: Performance of NFPackage.collectConstants: time 0.003076/0.4482, allocations: 1.223 MB / 464.8 MB, free: 9.668 MB / 346.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009195/0.4574, allocations: 2.321 MB / 467.2 MB, free: 9.277 MB / 346.8 MB Notification: Performance of NFScalarize.scalarize: time 0.005365/0.4628, allocations: 3.639 MB / 470.8 MB, free: 6.703 MB / 346.8 MB Notification: Performance of NFVerifyModel.verify: time 0.01051/0.4733, allocations: 4.121 MB / 474.9 MB, free: 4.395 MB / 346.8 MB Notification: Performance of NFConvertDAE.convert: time 0.02797/0.5012, allocations: 16.96 MB / 491.9 MB, free: 6.484 MB / 362.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.5013, allocations: 4 kB / 491.9 MB, free: 6.48 MB / 362.8 MB Notification: Performance of FrontEnd: time 1.333e-06/0.5013, allocations: 0 / 491.9 MB, free: 6.48 MB / 362.8 MB Notification: Performance of Transformations before backend: time 0.0004627/0.5017, allocations: 0 / 491.9 MB, free: 6.48 MB / 362.8 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.03689/0.5386, allocations: 14.31 MB / 0.4943 GB, free: 8.168 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.5386, allocations: 8.031 kB / 0.4943 GB, free: 8.16 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.015/0.5536, allocations: 5.656 MB / 0.4999 GB, free: 2.543 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01272/0.5664, allocations: 4.911 MB / 0.5047 GB, free: 13.64 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002656/0.569, allocations: 2.003 MB / 0.5066 GB, free: 11.53 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002835/0.5719, allocations: 1.13 MB / 0.5077 GB, free: 10.43 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04592/0.6178, allocations: 18.61 MB / 0.5259 GB, free: 7.82 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002685/0.618, allocations: 0 / 0.5259 GB, free: 7.82 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001947/0.62, allocations: 467.5 kB / 0.5263 GB, free: 7.387 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002486/0.6225, allocations: 1.841 MB / 0.5281 GB, free: 5.535 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05814/0.6806, allocations: 33.85 MB / 0.5612 GB, free: 3.625 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3054/0.986, allocations: 77.88 MB / 0.6373 GB, free: 89.21 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01468/1.001, allocations: 6.464 MB / 0.6436 GB, free: 82.7 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0101/1.011, allocations: 4.406 MB / 0.6479 GB, free: 78.28 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002282/1.013, allocations: 0.7579 MB / 0.6486 GB, free: 77.52 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.781e-05/1.013, allocations: 98.52 kB / 0.6487 GB, free: 77.42 MB / 442.8 MB Notification: Performance of pre-optimization done (n=533): time 9.969e-06/1.013, allocations: 0 / 0.6487 GB, free: 77.42 MB / 442.8 MB Notification: Performance of matching and sorting (n=755): time 0.3276/1.341, allocations: 71.37 MB / 0.7184 GB, free: 6.801 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2684/1.609, allocations: 39.06 MB / 0.7565 GB, free: 108.2 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0101/1.619, allocations: 4.992 MB / 0.7614 GB, free: 106.3 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002956/1.622, allocations: 147.6 kB / 0.7616 GB, free: 106.2 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003534/1.626, allocations: 5.879 MB / 0.7673 GB, free: 103.6 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.005486/1.631, allocations: 2.814 MB / 0.77 GB, free: 101.4 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01009/1.641, allocations: 2.548 MB / 0.7725 GB, free: 100.6 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 9.918e-05/1.641, allocations: 478.2 kB / 0.773 GB, free: 100.2 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01633/1.658, allocations: 6.761 MB / 0.7796 GB, free: 97.82 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0194/1.677, allocations: 8.355 MB / 0.7878 GB, free: 93.68 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04552/1.723, allocations: 20.72 MB / 0.808 GB, free: 73.5 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001009/1.723, allocations: 8 kB / 0.808 GB, free: 73.49 MB / 442.8 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.07146/1.794, allocations: 20.6 MB / 0.8281 GB, free: 53.62 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.841e-05/1.794, allocations: 16.94 kB / 0.8281 GB, free: 53.6 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.079e-05/1.794, allocations: 24 kB / 0.8282 GB, free: 53.58 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05072/1.845, allocations: 11.99 MB / 0.8399 GB, free: 41.63 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03178/1.877, allocations: 4.456 MB / 0.8442 GB, free: 37.2 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3188/2.196, allocations: 59.5 MB / 0.9023 GB, free: 114.6 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01651/2.212, allocations: 0.6535 MB / 0.903 GB, free: 114.6 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006799/2.219, allocations: 1.722 MB / 0.9046 GB, free: 114.6 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.0124/2.231, allocations: 1.361 MB / 0.906 GB, free: 114.5 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007347/2.239, allocations: 0.8534 MB / 0.9068 GB, free: 114.5 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07661/2.315, allocations: 24.31 MB / 0.9305 GB, free: 113 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04196/2.357, allocations: 11.49 MB / 0.9418 GB, free: 109.8 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001035/2.357, allocations: 7.875 kB / 0.9418 GB, free: 109.8 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000243/2.358, allocations: 41.44 kB / 0.9418 GB, free: 109.8 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09902/2.457, allocations: 38.88 MB / 0.9798 GB, free: 73.84 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.417e-05/2.457, allocations: 37.78 kB / 0.9798 GB, free: 73.81 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01511/2.472, allocations: 1.941 MB / 0.9817 GB, free: 71.89 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04967/2.521, allocations: 7.963 MB / 0.9895 GB, free: 64 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002049/2.524, allocations: 305.6 kB / 0.9898 GB, free: 63.7 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06404/2.588, allocations: 58.84 MB / 1.047 GB, free: 2.637 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.02562/2.613, allocations: 14.8 MB / 1.062 GB, free: 3.16 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2601/2.873, allocations: 18.96 MB / 1.08 GB, free: 112.9 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002658/2.876, allocations: 0.7815 MB / 1.081 GB, free: 112.9 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002483/2.878, allocations: 186.4 kB / 1.081 GB, free: 112.9 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006975/2.885, allocations: 364.1 kB / 1.081 GB, free: 112.9 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002494/2.888, allocations: 0.8757 MB / 1.082 GB, free: 112.9 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008887/2.889, allocations: 482.9 kB / 1.083 GB, free: 112.9 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.007429/2.896, allocations: 4.946 MB / 1.088 GB, free: 112.7 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.91e-07/2.896, allocations: 0 / 1.088 GB, free: 112.7 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01594/2.912, allocations: 3.988 MB / 1.092 GB, free: 112.7 MB / 474.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.002185/2.914, allocations: 0.6048 MB / 1.092 GB, free: 112.6 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.03504/2.949, allocations: 16.02 MB / 1.108 GB, free: 109 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 4.222e-05/2.949, allocations: 3.844 kB / 1.108 GB, free: 109 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01945/2.969, allocations: 9.473 MB / 1.117 GB, free: 103.6 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01255/2.981, allocations: 1.936 MB / 1.119 GB, free: 102.2 MB / 474.8 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4687:9-4687:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:848:5-848: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.406157581019215]