Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001092/0.001092, allocations: 92.2 kB / 20.19 MB, free: 4.367 MB / 18.57 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.001143/0.001143, allocations: 173 kB / 23.49 MB, free: 1.062 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.045/1.045, allocations: 177.1 MB / 203.8 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.105/0.105, allocations: 17.47 MB / 277.7 MB, free: 11.6 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical.Examples.Diffusion") translateModel(Chemical.Examples.Diffusion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Examples.Diffusion") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.104e-06/2.104e-06, allocations: 0 / 353.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.293e-05/3.504e-05, allocations: 6.25 kB / 353.6 MB, free: 10.15 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Boundaries.mo:1361:7-1361: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 master/Boundaries.mo:1361:7-1361: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.2711/0.2711, allocations: 65.02 MB / 418.6 MB, free: 13.75 MB / 330.8 MB Notification: Performance of NFInst.instExpressions: time 0.02748/0.2986, allocations: 17.96 MB / 436.5 MB, free: 11.14 MB / 330.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008185/0.3068, allocations: 298.9 kB / 436.8 MB, free: 10.99 MB / 330.8 MB Notification: Performance of NFTyping.typeComponents: time 0.006571/0.3133, allocations: 2.593 MB / 439.4 MB, free: 9.77 MB / 330.8 MB Notification: Performance of NFTyping.typeBindings: time 0.01229/0.3256, allocations: 4.563 MB / 444 MB, free: 6.875 MB / 330.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.006382/0.332, allocations: 3.134 MB / 447.1 MB, free: 4.531 MB / 330.8 MB Notification: Performance of NFFlatten.flatten: time 0.01668/0.3487, allocations: 12.25 MB / 459.4 MB, free: 13.33 MB / 346.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003354/0.352, allocations: 2.389 MB / 461.8 MB, free: 12.05 MB / 346.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01236/0.3644, allocations: 7.337 MB / 469.1 MB, free: 7.668 MB / 346.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009015/0.3734, allocations: 5.227 MB / 474.3 MB, free: 5.117 MB / 346.8 MB Notification: Performance of NFPackage.collectConstants: time 0.002786/0.3762, allocations: 1.169 MB / 475.5 MB, free: 5.117 MB / 346.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007678/0.3839, allocations: 2.486 MB / 478 MB, free: 4.652 MB / 346.8 MB Notification: Performance of NFScalarize.scalarize: time 0.003648/0.3875, allocations: 3.633 MB / 481.6 MB, free: 1.676 MB / 346.8 MB Notification: Performance of NFVerifyModel.verify: time 0.008707/0.3962, allocations: 4.161 MB / 485.8 MB, free: 13.7 MB / 362.8 MB Notification: Performance of NFConvertDAE.convert: time 0.01654/0.4128, allocations: 12.07 MB / 497.9 MB, free: 2.484 MB / 362.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.4128, allocations: 0 / 497.9 MB, free: 2.484 MB / 362.8 MB Notification: Performance of FrontEnd: time 1.664e-06/0.4128, allocations: 0 / 497.9 MB, free: 2.484 MB / 362.8 MB Notification: Performance of Transformations before backend: time 0.0004015/0.4132, allocations: 0 / 497.9 MB, free: 2.484 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: 3621 * Number of variables: 3621 Notification: Performance of Generate backend data structure: time 0.01549/0.4287, allocations: 13.68 MB / 0.4995 GB, free: 4.801 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.4287, allocations: 12.03 kB / 0.4996 GB, free: 4.789 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007045/0.4358, allocations: 5.584 MB / 0.505 GB, free: 15.23 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008633/0.4444, allocations: 6.505 MB / 0.5114 GB, free: 8.703 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001367/0.4458, allocations: 1.511 MB / 0.5128 GB, free: 7.082 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001764/0.4475, allocations: 1.151 MB / 0.514 GB, free: 5.953 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02322/0.4707, allocations: 15.92 MB / 0.5295 GB, free: 5.988 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001608/0.4709, allocations: 0 / 0.5295 GB, free: 5.988 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005815/0.4715, allocations: 478.8 kB / 0.53 GB, free: 5.543 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001367/0.4729, allocations: 1.765 MB / 0.5317 GB, free: 3.766 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02484/0.4977, allocations: 20.43 MB / 0.5516 GB, free: 15.27 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1918/0.6895, allocations: 48.29 MB / 0.5988 GB, free: 132.6 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005134/0.6946, allocations: 3.409 MB / 0.6021 GB, free: 131.1 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002299/0.6969, allocations: 1.793 MB / 0.6039 GB, free: 129.3 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01735/0.7142, allocations: 15.96 MB / 0.6195 GB, free: 113.7 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.935e-05/0.7143, allocations: 80.95 kB / 0.6195 GB, free: 113.6 MB / 442.8 MB Notification: Performance of pre-optimization done (n=393): time 6.593e-06/0.7143, allocations: 0 / 0.6195 GB, free: 113.6 MB / 442.8 MB Notification: Performance of matching and sorting (n=481): time 0.05027/0.7646, allocations: 29.95 MB / 0.6488 GB, free: 84.03 MB / 442.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 inlineWhenForInitialization (initialization): time 0.001088/0.7656, allocations: 2.498 MB / 0.6512 GB, free: 81.39 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005028/0.7707, allocations: 4.909 MB / 0.656 GB, free: 76.61 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000616/0.7713, allocations: 101.7 kB / 0.6561 GB, free: 76.5 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002829/0.7741, allocations: 6.603 MB / 0.6626 GB, free: 70.57 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00128/0.7754, allocations: 1.726 MB / 0.6643 GB, free: 68.87 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002207/0.7776, allocations: 1.924 MB / 0.6661 GB, free: 66.93 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 3.908e-05/0.7776, allocations: 476.8 kB / 0.6666 GB, free: 66.46 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00306/0.7807, allocations: 1.626 MB / 0.6682 GB, free: 64.84 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004228/0.7849, allocations: 5.634 MB / 0.6737 GB, free: 57.43 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01135/0.7963, allocations: 9.858 MB / 0.6833 GB, free: 45.92 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.306e-05/0.7963, allocations: 28 kB / 0.6833 GB, free: 45.89 MB / 442.8 MB Notification: Performance of matching and sorting (n=907) (initialization): time 0.0151/0.8114, allocations: 9.053 MB / 0.6922 GB, free: 36.84 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.013e-05/0.8115, allocations: 50.66 kB / 0.6922 GB, free: 36.79 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.693e-05/0.8115, allocations: 92 kB / 0.6923 GB, free: 36.7 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003515/0.815, allocations: 1.84 MB / 0.6941 GB, free: 34.84 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007264/0.8223, allocations: 3.028 MB / 0.6971 GB, free: 31.86 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1775/0.9998, allocations: 34.9 MB / 0.7311 GB, free: 118.5 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005257/1.005, allocations: 335.1 kB / 0.7315 GB, free: 118.5 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001536/1.007, allocations: 1.083 MB / 0.7325 GB, free: 118.5 MB / 442.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: 423 * Number of states: 0 () * Number of discrete variables: 12 (s5.substanceDefinitionVar.SelfClustering,s5.substanceDefinitionVar.data.phase,solvent.substanceDefinitionVar.SelfClustering,solvent.substanceDefinitionVar.data.phase,s4.substanceDefinitionVar.SelfClustering,s4.substanceDefinitionVar.data.phase,s3.substanceDefinitionVar.SelfClustering,s3.substanceDefinitionVar.data.phase,s1.substanceDefinitionVar.SelfClustering,s1.substanceDefinitionVar.data.phase,s2.substanceDefinitionVar.SelfClustering,s2.substanceDefinitionVar.data.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (851): * Single equations (assignments): 831 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 20 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 14 systems {(2,2,100.0%), (1,4,100.0%), (1,1,100.0%), (1,4,100.0%), (1,1,100.0%), (2,1,100.0%), (2,2,100.0%), (1,4,100.0%), (1,1,100.0%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (1,4,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(1,6), (2,2), (1,2), (2,1), (1,6), (2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.003546/1.01, allocations: 0.6603 MB / 0.7332 GB, free: 118.3 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002022/1.012, allocations: 0.8183 MB / 0.734 GB, free: 118.3 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02063/1.033, allocations: 9.901 MB / 0.7436 GB, free: 117.5 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.791e-05/1.033, allocations: 46.19 kB / 0.7437 GB, free: 117.5 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.514e-05/1.033, allocations: 11.84 kB / 0.7437 GB, free: 117.5 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.368e-05/1.033, allocations: 20.95 kB / 0.7437 GB, free: 117.5 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02585/1.059, allocations: 19.99 MB / 0.7632 GB, free: 112.3 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.851e-05/1.059, allocations: 17.59 kB / 0.7632 GB, free: 112.3 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005608/1.064, allocations: 1.72 MB / 0.7649 GB, free: 112.2 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004007/1.068, allocations: 1.9 MB / 0.7668 GB, free: 111.7 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003402/1.069, allocations: 177.4 kB / 0.7669 GB, free: 111.6 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01609/1.085, allocations: 36.65 MB / 0.8027 GB, free: 73.3 MB / 442.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.0009721/1.086, allocations: 2.276 MB / 0.805 GB, free: 70.93 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01404/1.1, allocations: 7.86 MB / 0.8126 GB, free: 63.13 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002115/1.102, allocations: 0.5146 MB / 0.8131 GB, free: 62.95 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008198/1.103, allocations: 113.1 kB / 0.8132 GB, free: 62.85 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001691/1.104, allocations: 175.8 kB / 0.8134 GB, free: 62.68 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007094/1.105, allocations: 446.9 kB / 0.8138 GB, free: 62.25 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002685/1.105, allocations: 264.4 kB / 0.8141 GB, free: 61.99 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.002646/1.108, allocations: 2.605 MB / 0.8166 GB, free: 59.39 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.8e-07/1.108, allocations: 4 kB / 0.8166 GB, free: 59.38 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.006828/1.115, allocations: 2.205 MB / 0.8188 GB, free: 57.2 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 19 (s2.logm,p2.logm,d2.rear.n_flow,s1.logm,p1.logm,d1.rear.n_flow,$STATESET3.x,s3.logm,p3.logm,d3.rear.n_flow,$STATESET2.x,s4.logm,p4.logm,d4.rear.n_flow,solvent.logm,$STATESET1.x,s5.logm,p5.logm,d5.rear.n_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (429): * Single equations (assignments): 409 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 20 * 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%), (1,1,100.0%), (1,1,100.0%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (2,2,100.0%), (1,4,100.0%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (2,1,100.0%), (2,2,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(1,5), (3,4), (1,2), (3,3), (1,5), (3,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007915/1.116, allocations: 0.53 MB / 0.8193 GB, free: 56.78 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.009541/1.125, allocations: 8.141 MB / 0.8273 GB, free: 48.41 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/1.125, allocations: 6.656 kB / 0.8273 GB, free: 48.41 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004898/1.13, allocations: 5.196 MB / 0.8323 GB, free: 42.96 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00385/1.134, allocations: 1.559 MB / 0.8339 GB, free: 41.51 MB / 442.8 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4695:9-4695:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:856:5-856:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.0010284590534866]