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.0009295/0.0009295, allocations: 97.06 kB / 19.65 MB, free: 276 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.0009118/0.0009118, allocations: 173 kB / 23.03 MB, free: 1.543 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 0.9874/0.9874, allocations: 177.1 MB / 203.4 MB, free: 5.641 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.1014/0.1014, allocations: 17.45 MB / 277.4 MB, free: 11.57 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 1.683e-06/1.683e-06, allocations: 3.938 kB / 353.5 MB, free: 9.859 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.671e-05/2.839e-05, allocations: 6.25 kB / 353.5 MB, free: 9.852 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.3291/0.3292, allocations: 65.4 MB / 418.9 MB, free: 14.05 MB / 330.8 MB Notification: Performance of NFInst.instExpressions: time 0.02583/0.355, allocations: 18.02 MB / 437 MB, free: 11.3 MB / 330.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00749/0.3625, allocations: 294.5 kB / 437.2 MB, free: 11.16 MB / 330.8 MB Notification: Performance of NFTyping.typeComponents: time 0.005108/0.3676, allocations: 2.6 MB / 439.8 MB, free: 9.941 MB / 330.8 MB Notification: Performance of NFTyping.typeBindings: time 0.008382/0.376, allocations: 4.559 MB / 444.4 MB, free: 7.051 MB / 330.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.005959/0.3819, allocations: 3.136 MB / 447.5 MB, free: 4.707 MB / 330.8 MB Notification: Performance of NFFlatten.flatten: time 0.01362/0.3956, allocations: 12.27 MB / 459.8 MB, free: 13.5 MB / 346.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003413/0.399, allocations: 2.389 MB / 462.2 MB, free: 12.23 MB / 346.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01058/0.4096, allocations: 7.348 MB / 469.6 MB, free: 7.832 MB / 346.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008037/0.4176, allocations: 5.226 MB / 474.8 MB, free: 5.301 MB / 346.8 MB Notification: Performance of NFPackage.collectConstants: time 0.003044/0.4206, allocations: 1.165 MB / 475.9 MB, free: 5.301 MB / 346.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006499/0.4271, allocations: 2.484 MB / 478.4 MB, free: 4.566 MB / 346.8 MB Notification: Performance of NFScalarize.scalarize: time 0.002394/0.4295, allocations: 3.625 MB / 482.1 MB, free: 1.109 MB / 346.8 MB Notification: Performance of NFVerifyModel.verify: time 0.00622/0.4358, allocations: 4.146 MB / 486.2 MB, free: 13.13 MB / 362.8 MB Notification: Performance of NFConvertDAE.convert: time 0.01881/0.4546, allocations: 12.07 MB / 498.3 MB, free: 1.922 MB / 362.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.4546, allocations: 0 / 498.3 MB, free: 1.922 MB / 362.8 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4546, allocations: 0 / 498.3 MB, free: 1.922 MB / 362.8 MB Notification: Performance of Transformations before backend: time 0.0007136/0.4553, allocations: 0 / 498.3 MB, free: 1.922 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.01822/0.4735, allocations: 13.67 MB / 0.5 GB, free: 4.238 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.4735, allocations: 8.031 kB / 0.5 GB, free: 4.23 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006411/0.48, allocations: 5.582 MB / 0.5054 GB, free: 14.68 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007293/0.4873, allocations: 6.477 MB / 0.5117 GB, free: 8.18 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007496/0.488, allocations: 1.515 MB / 0.5132 GB, free: 6.555 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009463/0.4889, allocations: 1.161 MB / 0.5143 GB, free: 5.418 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01892/0.5079, allocations: 15.91 MB / 0.5299 GB, free: 5.465 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001489/0.508, allocations: 3.938 kB / 0.5299 GB, free: 5.461 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005572/0.5086, allocations: 474.1 kB / 0.5303 GB, free: 5.02 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00116/0.5097, allocations: 1.769 MB / 0.5321 GB, free: 3.238 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02562/0.5354, allocations: 20.43 MB / 0.552 GB, free: 14.73 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2878/0.8231, allocations: 48.3 MB / 0.5992 GB, free: 94.66 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007248/0.8304, allocations: 3.411 MB / 0.6025 GB, free: 93.77 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004022/0.8344, allocations: 1.79 MB / 0.6043 GB, free: 93.44 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02619/0.8606, allocations: 15.94 MB / 0.6198 GB, free: 83.32 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.051e-05/0.8607, allocations: 80.48 kB / 0.6199 GB, free: 83.24 MB / 442.8 MB Notification: Performance of pre-optimization done (n=393): time 6.723e-06/0.8607, allocations: 4.766 kB / 0.6199 GB, free: 83.23 MB / 442.8 MB Notification: Performance of matching and sorting (n=481): time 0.05831/0.919, allocations: 30.02 MB / 0.6492 GB, free: 53.73 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.001148/0.9202, allocations: 2.5 MB / 0.6517 GB, free: 51.1 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004765/0.9249, allocations: 4.874 MB / 0.6564 GB, free: 46.35 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001387/0.9263, allocations: 105.7 kB / 0.6565 GB, free: 46.24 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002727/0.929, allocations: 6.599 MB / 0.663 GB, free: 40.41 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002339/0.9314, allocations: 1.717 MB / 0.6647 GB, free: 38.72 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002318/0.9337, allocations: 1.922 MB / 0.6665 GB, free: 36.79 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 4.716e-05/0.9337, allocations: 476.8 kB / 0.667 GB, free: 36.32 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002382/0.9361, allocations: 1.625 MB / 0.6686 GB, free: 34.69 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003419/0.9395, allocations: 5.607 MB / 0.674 GB, free: 27.36 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01013/0.9497, allocations: 9.824 MB / 0.6836 GB, free: 16.29 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001102/0.9498, allocations: 28 kB / 0.6837 GB, free: 16.26 MB / 442.8 MB Notification: Performance of matching and sorting (n=904) (initialization): time 0.01865/0.9684, allocations: 9.026 MB / 0.6925 GB, free: 7.844 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.008e-05/0.9685, allocations: 49.62 kB / 0.6925 GB, free: 7.801 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.747e-05/0.9686, allocations: 92 kB / 0.6926 GB, free: 7.711 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003868/0.9724, allocations: 1.858 MB / 0.6944 GB, free: 5.848 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009077/0.9815, allocations: 3.017 MB / 0.6974 GB, free: 2.984 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0223/1.004, allocations: 34.9 MB / 0.7315 GB, free: 14.16 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005702/1.01, allocations: 329.2 kB / 0.7318 GB, free: 13.84 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00218/1.012, allocations: 1.078 MB / 0.7328 GB, free: 12.77 MB / 490.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: 420 * 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 (848): * Single equations (assignments): 828 * 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.004768/1.016, allocations: 0.6715 MB / 0.7335 GB, free: 12.21 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002103/1.019, allocations: 0.8086 MB / 0.7343 GB, free: 11.4 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01851/1.037, allocations: 9.895 MB / 0.7439 GB, free: 1.855 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.194e-05/1.037, allocations: 44 kB / 0.744 GB, free: 1.812 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.61e-05/1.037, allocations: 8 kB / 0.744 GB, free: 1.805 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.497e-05/1.037, allocations: 27.91 kB / 0.744 GB, free: 1.777 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2616/1.299, allocations: 19.98 MB / 0.7635 GB, free: 131 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.351e-05/1.299, allocations: 11.56 kB / 0.7635 GB, free: 131 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006394/1.305, allocations: 1.716 MB / 0.7652 GB, free: 131 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004409/1.31, allocations: 1.901 MB / 0.7671 GB, free: 130.7 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008248/1.311, allocations: 178.7 kB / 0.7672 GB, free: 130.7 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01687/1.327, allocations: 36.66 MB / 0.803 GB, free: 97.1 MB / 490.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.001051/1.329, allocations: 2.28 MB / 0.8053 GB, free: 95.03 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01516/1.344, allocations: 7.864 MB / 0.8129 GB, free: 93.15 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002013/1.346, allocations: 0.5067 MB / 0.8134 GB, free: 93.15 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001152/1.347, allocations: 120.8 kB / 0.8136 GB, free: 93.14 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001874/1.349, allocations: 178.8 kB / 0.8137 GB, free: 93.08 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008149/1.35, allocations: 444.4 kB / 0.8141 GB, free: 93.02 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003367/1.35, allocations: 257.5 kB / 0.8144 GB, free: 92.98 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.00317/1.353, allocations: 2.586 MB / 0.8169 GB, free: 92.18 MB / 490.8 MB Notification: Performance of sort global known variables: time 5.01e-07/1.353, allocations: 2.656 kB / 0.8169 GB, free: 92.18 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.009194/1.362, allocations: 2.205 MB / 0.8191 GB, free: 91.98 MB / 490.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.001489/1.364, allocations: 0.5169 MB / 0.8196 GB, free: 91.81 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01091/1.375, allocations: 8.139 MB / 0.8275 GB, free: 84.76 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.397e-05/1.375, allocations: 3 kB / 0.8275 GB, free: 84.76 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005843/1.381, allocations: 5.203 MB / 0.8326 GB, free: 79.86 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005465/1.386, allocations: 1.563 MB / 0.8341 GB, free: 78.71 MB / 490.8 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4759:9-4759: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.131741093005985]