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.00187/0.00187, allocations: 85.48 kB / 19.44 MB, free: 340 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.002026/0.002026, allocations: 177.2 kB / 22.76 MB, free: 1.656 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.624/1.624, allocations: 177.1 MB / 203.1 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.1804/0.1804, allocations: 17.45 MB / 277 MB, free: 11.59 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.933e-06/1.933e-06, allocations: 0 / 352.8 MB, free: 10.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.582e-05/2.775e-05, allocations: 4.844 kB / 352.8 MB, free: 10.17 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.3683/0.3683, allocations: 62.74 MB / 415.6 MB, free: 14.29 MB / 330.8 MB Notification: Performance of NFInst.instExpressions: time 0.03393/0.4022, allocations: 17.95 MB / 433.5 MB, free: 12.03 MB / 330.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01143/0.4136, allocations: 297.1 kB / 433.8 MB, free: 11.88 MB / 330.8 MB Notification: Performance of NFTyping.typeComponents: time 0.008816/0.4225, allocations: 2.596 MB / 436.4 MB, free: 10.7 MB / 330.8 MB Notification: Performance of NFTyping.typeBindings: time 0.01564/0.4381, allocations: 4.567 MB / 441 MB, free: 7.797 MB / 330.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.01033/0.4484, allocations: 3.135 MB / 444.1 MB, free: 5.453 MB / 330.8 MB Notification: Performance of NFFlatten.flatten: time 0.01861/0.467, allocations: 12.24 MB / 456.3 MB, free: 14.25 MB / 346.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005821/0.4729, allocations: 2.391 MB / 458.7 MB, free: 12.98 MB / 346.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01871/0.4916, allocations: 7.338 MB / 466.1 MB, free: 8.59 MB / 346.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01325/0.5048, allocations: 5.223 MB / 471.3 MB, free: 6.043 MB / 346.8 MB Notification: Performance of NFPackage.collectConstants: time 0.004236/0.5091, allocations: 1.169 MB / 472.5 MB, free: 6.043 MB / 346.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01159/0.5207, allocations: 2.491 MB / 475 MB, free: 5.57 MB / 346.8 MB Notification: Performance of NFScalarize.scalarize: time 0.006105/0.5268, allocations: 3.636 MB / 478.6 MB, free: 3.02 MB / 346.8 MB Notification: Performance of NFVerifyModel.verify: time 0.01367/0.5404, allocations: 4.155 MB / 482.7 MB, free: 15.64 MB / 362.8 MB Notification: Performance of NFConvertDAE.convert: time 0.03937/0.5798, allocations: 17.17 MB / 499.9 MB, free: 15.32 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.5798, allocations: 0 / 499.9 MB, free: 15.32 MB / 378.8 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5798, allocations: 4 kB / 499.9 MB, free: 15.31 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.0007883/0.5806, allocations: 0 / 499.9 MB, free: 15.31 MB / 378.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.04268/0.6233, allocations: 14.58 MB / 0.5024 GB, free: 0.7266 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.092e-05/0.6233, allocations: 8.031 kB / 0.5025 GB, free: 0.7188 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01785/0.6412, allocations: 5.585 MB / 0.5079 GB, free: 11.16 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01837/0.6596, allocations: 6.518 MB / 0.5143 GB, free: 4.621 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002179/0.6617, allocations: 1.509 MB / 0.5157 GB, free: 3 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004141/0.6659, allocations: 1.156 MB / 0.5169 GB, free: 1.867 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0468/0.7127, allocations: 17.96 MB / 0.5344 GB, free: 15.86 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003081/0.713, allocations: 3.953 kB / 0.5344 GB, free: 15.86 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002086/0.7151, allocations: 477.2 kB / 0.5349 GB, free: 15.41 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002444/0.7175, allocations: 1.769 MB / 0.5366 GB, free: 13.64 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2836/1.001, allocations: 32.93 MB / 0.5688 GB, free: 145 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1029/1.104, allocations: 63.77 MB / 0.631 GB, free: 95.82 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008339/1.112, allocations: 4.36 MB / 0.6353 GB, free: 91.42 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005189/1.118, allocations: 2.694 MB / 0.6379 GB, free: 88.71 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03442/1.152, allocations: 17.69 MB / 0.6552 GB, free: 71.37 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.385e-05/1.152, allocations: 84.95 kB / 0.6553 GB, free: 71.27 MB / 442.8 MB Notification: Performance of pre-optimization done (n=393): time 6.963e-06/1.152, allocations: 0 / 0.6553 GB, free: 71.27 MB / 442.8 MB Notification: Performance of matching and sorting (n=481): time 0.09704/1.249, allocations: 34.48 MB / 0.689 GB, free: 37.17 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.001653/1.251, allocations: 2.576 MB / 0.6915 GB, free: 34.46 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006369/1.257, allocations: 6.092 MB / 0.6974 GB, free: 28.48 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001067/1.258, allocations: 101.7 kB / 0.6975 GB, free: 28.38 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002981/1.261, allocations: 6.841 MB / 0.7042 GB, free: 21.59 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001945/1.263, allocations: 1.828 MB / 0.706 GB, free: 19.79 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002634/1.266, allocations: 2.137 MB / 0.7081 GB, free: 17.64 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 6.556e-05/1.266, allocations: 483.3 kB / 0.7085 GB, free: 17.17 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00452/1.27, allocations: 2.597 MB / 0.7111 GB, free: 14.57 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005855/1.276, allocations: 6.774 MB / 0.7177 GB, free: 6.02 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02086/1.297, allocations: 12.76 MB / 0.7301 GB, free: 7.613 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001249/1.297, allocations: 28 kB / 0.7302 GB, free: 7.586 MB / 458.8 MB Notification: Performance of matching and sorting (n=907) (initialization): time 0.1958/1.493, allocations: 11.22 MB / 0.7411 GB, free: 130.3 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.818e-05/1.493, allocations: 45.88 kB / 0.7412 GB, free: 130.3 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001601/1.493, allocations: 92.19 kB / 0.7413 GB, free: 130.3 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00768/1.501, allocations: 2.238 MB / 0.7434 GB, free: 130 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01679/1.518, allocations: 3.03 MB / 0.7464 GB, free: 129.9 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02915/1.547, allocations: 38.07 MB / 0.7836 GB, free: 97.29 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007132/1.554, allocations: 339.6 kB / 0.7839 GB, free: 97.29 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001991/1.556, allocations: 1.074 MB / 0.785 GB, free: 97.29 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: 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.004874/1.561, allocations: 1.452 MB / 0.7864 GB, free: 97 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002333/1.563, allocations: 0.8173 MB / 0.7872 GB, free: 97 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03181/1.595, allocations: 11.86 MB / 0.7988 GB, free: 94.97 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.631e-05/1.595, allocations: 48.28 kB / 0.7988 GB, free: 94.97 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.147e-05/1.595, allocations: 7.5 kB / 0.7988 GB, free: 94.97 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-05/1.595, allocations: 22.08 kB / 0.7988 GB, free: 94.97 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05808/1.653, allocations: 24.02 MB / 0.8223 GB, free: 79.87 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.686e-05/1.653, allocations: 15.83 kB / 0.8223 GB, free: 79.86 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01177/1.665, allocations: 1.719 MB / 0.824 GB, free: 78.18 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007627/1.673, allocations: 2.266 MB / 0.8262 GB, free: 75.9 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009715/1.674, allocations: 183.9 kB / 0.8264 GB, free: 75.72 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03389/1.708, allocations: 40.18 MB / 0.8656 GB, free: 33.58 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.002032/1.71, allocations: 2.356 MB / 0.8679 GB, free: 31.13 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04788/1.757, allocations: 10.73 MB / 0.8784 GB, free: 20.42 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002382/1.76, allocations: 0.5112 MB / 0.8789 GB, free: 20.25 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00205/1.762, allocations: 107.7 kB / 0.879 GB, free: 20.15 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006805/1.769, allocations: 187.9 kB / 0.8792 GB, free: 19.96 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001774/1.77, allocations: 434.9 kB / 0.8796 GB, free: 19.54 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000736/1.771, allocations: 263.9 kB / 0.8798 GB, free: 19.28 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.006033/1.777, allocations: 3.229 MB / 0.883 GB, free: 16.05 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.5e-07/1.777, allocations: 0 / 0.883 GB, free: 16.05 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.009448/1.787, allocations: 2.209 MB / 0.8851 GB, free: 13.87 MB / 458.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.001324/1.788, allocations: 0.5283 MB / 0.8857 GB, free: 13.42 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01746/1.805, allocations: 10.05 MB / 0.8955 GB, free: 3.121 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 2.233e-05/1.806, allocations: 4 kB / 0.8955 GB, free: 3.117 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01292/1.818, allocations: 5.998 MB / 0.9013 GB, free: 12.85 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008738/1.827, allocations: 1.572 MB / 0.9029 GB, free: 11.34 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 658] [Calling sys.exit(0), Time elapsed: 4.483225101022981]