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.001237/0.001237, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.00139/0.00139, allocations: 216.7 kB / 23.01 MB, free: 4.566 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.475/1.475, allocations: 230.6 MB / 256.8 MB, free: 8.016 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.1333/0.1333, allocations: 23.85 MB / 337 MB, free: 11.21 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.00206/0.00206, allocations: 67.89 kB / 472.4 MB, free: 7.211 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.3007, allocations: 59.85 MB / 0.5198 GB, free: 9.867 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.07296/0.3737, allocations: 61.64 MB / 0.58 GB, free: 12.3 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.03532/0.409, allocations: 16.9 MB / 0.5965 GB, free: 11.45 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009435/0.4184, allocations: 123.5 kB / 0.5966 GB, free: 11.32 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008811/0.4272, allocations: 2.591 MB / 0.5991 GB, free: 8.715 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01325/0.4405, allocations: 3.513 MB / 0.6026 GB, free: 5.176 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008764/0.4492, allocations: 2.887 MB / 0.6054 GB, free: 2.281 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01849/0.4677, allocations: 10.89 MB / 0.616 GB, free: 7.348 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005367/0.4731, allocations: 2.396 MB / 0.6184 GB, free: 4.855 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007707/0.4808, allocations: 4.484 MB / 0.6227 GB, free: 364 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008756/0.4896, allocations: 5.392 MB / 0.628 GB, free: 10.94 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003982/0.4935, allocations: 1.227 MB / 0.6292 GB, free: 9.715 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009296/0.5028, allocations: 2.904 MB / 0.632 GB, free: 6.809 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005251/0.5081, allocations: 3.602 MB / 0.6356 GB, free: 3.195 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01126/0.5193, allocations: 6.611 MB / 0.642 GB, free: 12.55 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02654/0.5459, allocations: 17.07 MB / 0.6587 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 9.017e-06/0.5459, allocations: 7.938 kB / 0.6587 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.402e-06/0.5459, allocations: 0 / 0.6587 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0005773/0.5465, allocations: 4 kB / 0.6587 GB, free: 11.4 MB / 0.4981 GB 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.02685/0.5733, allocations: 12.63 MB / 0.671 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 7.083e-05/0.5734, allocations: 12.03 kB / 0.671 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006744/0.5801, allocations: 2.389 MB / 0.6734 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01333/0.5935, allocations: 5.269 MB / 0.6785 GB, free: 6.918 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003228/0.5967, allocations: 2.012 MB / 0.6805 GB, free: 4.77 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003213/0.5999, allocations: 1.133 MB / 0.6816 GB, free: 3.637 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0747/0.6746, allocations: 47.15 MB / 0.7276 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002166/0.6748, allocations: 0 / 0.7276 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001185/0.676, allocations: 471.8 kB / 0.7281 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002139/0.6782, allocations: 1.847 MB / 0.7299 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4556/1.134, allocations: 79.12 MB / 0.8071 GB, free: 117 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.279, allocations: 113.8 MB / 0.9183 GB, free: 3.75 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0318/1.311, allocations: 19.28 MB / 0.9371 GB, free: 456 kB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02834/1.339, allocations: 15.45 MB / 0.9522 GB, free: 0.9844 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007091/1.346, allocations: 1.188 MB / 0.9534 GB, free: 15.8 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001605/1.346, allocations: 94.56 kB / 0.9535 GB, free: 15.7 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=533): time 1.399e-05/1.346, allocations: 0 / 0.9535 GB, free: 15.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=755): time 0.5801/1.927, allocations: 131.3 MB / 1.082 GB, free: 126 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0782/2.005, allocations: 52.71 MB / 1.133 GB, free: 72.02 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01633/2.021, allocations: 13.68 MB / 1.146 GB, free: 58.4 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.002745/2.024, allocations: 147.2 kB / 1.147 GB, free: 58.25 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.00401/2.028, allocations: 5.434 MB / 1.152 GB, free: 53.11 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.003999/2.032, allocations: 2.639 MB / 1.155 GB, free: 50.71 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006643/2.039, allocations: 2.428 MB / 1.157 GB, free: 48.28 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.121e-05/2.039, allocations: 303.8 kB / 1.157 GB, free: 47.98 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02401/2.063, allocations: 22.84 MB / 1.179 GB, free: 25.16 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02508/2.088, allocations: 23.9 MB / 1.203 GB, free: 0.9805 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.7768/2.865, allocations: 116.8 MB / 1.317 GB, free: 116.4 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.279e-05/2.865, allocations: 8 kB / 1.317 GB, free: 116.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.07901/2.944, allocations: 51.84 MB / 1.367 GB, free: 65.38 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.219e-05/2.944, allocations: 16 kB / 1.367 GB, free: 65.36 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.724e-05/2.944, allocations: 27.98 kB / 1.368 GB, free: 65.33 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0432/2.987, allocations: 13.51 MB / 1.381 GB, free: 51.81 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02886/3.016, allocations: 4.413 MB / 1.385 GB, free: 47.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3217/3.337, allocations: 75.42 MB / 1.459 GB, free: 187.5 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01446/3.352, allocations: 0.6204 MB / 1.459 GB, free: 187.5 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004615/3.356, allocations: 1.72 MB / 1.461 GB, free: 187.5 MB / 0.6232 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.0101/3.367, allocations: 2.761 MB / 1.464 GB, free: 187.4 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00481/3.371, allocations: 1.194 MB / 1.465 GB, free: 187.4 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08008/3.451, allocations: 31.01 MB / 1.495 GB, free: 177.1 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04688/3.498, allocations: 17.99 MB / 1.513 GB, free: 170 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001431/3.498, allocations: 10.62 kB / 1.513 GB, free: 170 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002413/3.499, allocations: 39.12 kB / 1.513 GB, free: 170 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09979/3.599, allocations: 67.09 MB / 1.578 GB, free: 108.9 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-05/3.599, allocations: 35.94 kB / 1.578 GB, free: 108.9 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01341/3.612, allocations: 1.895 MB / 1.58 GB, free: 107 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03594/3.648, allocations: 7.177 MB / 1.587 GB, free: 99.91 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001657/3.65, allocations: 299.8 kB / 1.587 GB, free: 99.61 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06115/3.711, allocations: 51.46 MB / 1.638 GB, free: 46.12 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.01766/3.728, allocations: 11.66 MB / 1.649 GB, free: 33.83 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05705/3.785, allocations: 26.91 MB / 1.675 GB, free: 6.102 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004371/3.79, allocations: 1.808 MB / 1.677 GB, free: 4.289 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003389/3.793, allocations: 188.4 kB / 1.677 GB, free: 4.109 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007544/3.801, allocations: 326.3 kB / 1.678 GB, free: 3.793 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002235/3.803, allocations: 0.8707 MB / 1.678 GB, free: 2.938 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008741/3.804, allocations: 479.8 kB / 1.679 GB, free: 2.469 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.2755/4.079, allocations: 13.82 MB / 1.692 GB, free: 179.2 MB / 0.6232 GB Notification: Performance of sort global known variables: time 4.11e-07/4.079, allocations: 0 / 1.692 GB, free: 179.2 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01643/4.096, allocations: 4.136 MB / 1.696 GB, free: 179.2 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.002267/4.098, allocations: 0.6528 MB / 1.697 GB, free: 179.1 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.0431/4.141, allocations: 29.51 MB / 1.726 GB, free: 168.8 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 3.362e-05/4.141, allocations: 3.938 kB / 1.726 GB, free: 168.8 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.01928/4.16, allocations: 9.993 MB / 1.736 GB, free: 163.7 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0153/4.176, allocations: 2.794 MB / 1.738 GB, free: 162.8 MB / 0.6232 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4733:9-4733:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:822:5-822:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 656] [Calling sys.exit(0), Time elapsed: 6.6022594859823585] Failed to read output from testmodel.py, exit status != 0: 4.186255967011675 4.195705105 3.647203311 Calling exit ...