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.0009621/0.0009621, allocations: 80.81 kB / 19.94 MB, free: 4.539 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.0009783/0.0009783, allocations: 181.3 kB / 23.36 MB, free: 1.125 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.049/1.049, allocations: 177.1 MB / 203.8 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] 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.1059/0.1059, allocations: 17.38 MB / 277.6 MB, free: 11.53 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.934e-06/1.934e-06, allocations: 0 / 300.6 MB, free: 1.852 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.083e-05/2.276e-05, allocations: 4.375 kB / 300.7 MB, free: 1.848 MB / 266.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.05976/0.05979, allocations: 68.35 MB / 369 MB, free: 108 kB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03178/0.09156, allocations: 17.13 MB / 386.1 MB, free: 14.9 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008806/0.1004, allocations: 119.5 kB / 386.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00812/0.1085, allocations: 2.645 MB / 388.9 MB, free: 12.12 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01235/0.1208, allocations: 3.671 MB / 392.6 MB, free: 8.422 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007418/0.1283, allocations: 2.917 MB / 395.5 MB, free: 5.496 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.01476/0.143, allocations: 11.29 MB / 406.8 MB, free: 10.16 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003964/0.147, allocations: 2.47 MB / 409.2 MB, free: 7.562 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009898/0.1569, allocations: 6.849 MB / 416.1 MB, free: 0.6992 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005605/0.1625, allocations: 3.958 MB / 420.1 MB, free: 12.73 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002412/0.1649, allocations: 1.219 MB / 421.3 MB, free: 11.51 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004981/0.1699, allocations: 2.35 MB / 423.6 MB, free: 9.156 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002055/0.1719, allocations: 3.641 MB / 427.3 MB, free: 5.504 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003798/0.1757, allocations: 4.103 MB / 431.4 MB, free: 1.391 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01076/0.1865, allocations: 11.62 MB / 443 MB, free: 5.723 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.1865, allocations: 0 / 443 MB, free: 5.723 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1865, allocations: 0 / 443 MB, free: 5.723 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001863/0.1867, allocations: 0 / 443 MB, free: 5.723 MB / 410.7 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.2854/0.4721, allocations: 12.37 MB / 455.4 MB, free: 79.16 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.4722, allocations: 9.844 kB / 455.4 MB, free: 79.16 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008456/0.4806, allocations: 5.132 MB / 460.5 MB, free: 79.12 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005266/0.4859, allocations: 3.289 MB / 463.8 MB, free: 78.52 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001124/0.487, allocations: 1.992 MB / 465.8 MB, free: 77.8 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009861/0.488, allocations: 1.135 MB / 466.9 MB, free: 77.78 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0141/0.5021, allocations: 14.2 MB / 481.1 MB, free: 75.73 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001925/0.5023, allocations: 7.406 kB / 481.1 MB, free: 75.72 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005873/0.5029, allocations: 469 kB / 481.6 MB, free: 75.43 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001306/0.5042, allocations: 1.844 MB / 483.4 MB, free: 73.82 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01378/0.5179, allocations: 16.4 MB / 499.8 MB, free: 57.57 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0509/0.5688, allocations: 48.63 MB / 0.5356 GB, free: 11.29 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005285/0.5741, allocations: 3.121 MB / 0.5386 GB, free: 8.234 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002924/0.5771, allocations: 1.399 MB / 0.54 GB, free: 6.859 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001051/0.5781, allocations: 0.7599 MB / 0.5408 GB, free: 6.105 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.634e-05/0.5782, allocations: 91.88 kB / 0.5408 GB, free: 6.008 MB / 410.8 MB Notification: Performance of pre-optimization done (n=533): time 7.424e-06/0.5782, allocations: 0 / 0.5408 GB, free: 6.008 MB / 410.8 MB Notification: Performance of matching and sorting (n=755): time 0.15/0.7282, allocations: 41 MB / 0.5809 GB, free: 14.13 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03237/0.7605, allocations: 24.09 MB / 0.6044 GB, free: 5.375 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003106/0.7636, allocations: 2.965 MB / 0.6073 GB, free: 2.984 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002065/0.7657, allocations: 145.7 kB / 0.6074 GB, free: 2.836 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.1669/0.9326, allocations: 4.597 MB / 0.6119 GB, free: 118.7 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004719/0.9374, allocations: 2.634 MB / 0.6145 GB, free: 117.3 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005608/0.943, allocations: 1.799 MB / 0.6163 GB, free: 117.2 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 4.259e-05/0.943, allocations: 302.3 kB / 0.6165 GB, free: 116.9 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007241/0.9502, allocations: 2.66 MB / 0.6191 GB, free: 116.9 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007055/0.9573, allocations: 3.749 MB / 0.6228 GB, free: 116 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01624/0.9735, allocations: 10.24 MB / 0.6328 GB, free: 114.8 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.693e-05/0.9736, allocations: 6.688 kB / 0.6328 GB, free: 114.8 MB / 474.8 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.02356/0.9971, allocations: 9.79 MB / 0.6424 GB, free: 114.2 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.216e-05/0.9972, allocations: 15 kB / 0.6424 GB, free: 114.2 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.665e-05/0.9972, allocations: 26.38 kB / 0.6424 GB, free: 114.2 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02375/1.021, allocations: 10.28 MB / 0.6524 GB, free: 113.8 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01931/1.04, allocations: 4.315 MB / 0.6567 GB, free: 111.5 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0293/1.07, allocations: 35.63 MB / 0.6915 GB, free: 78.89 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0082/1.078, allocations: 311 kB / 0.6918 GB, free: 78.64 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002584/1.08, allocations: 1.607 MB / 0.6933 GB, free: 77.09 MB / 474.8 MB Warning: Assuming fixed start value for the following 5 variables: d2.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 d3.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 d5.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 {(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%), (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%)} * 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.005052/1.085, allocations: 0.5097 MB / 0.6938 GB, free: 76.68 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003102/1.088, allocations: 0.5916 MB / 0.6944 GB, free: 76.09 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02877/1.117, allocations: 15.6 MB / 0.7096 GB, free: 61.45 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01733/1.135, allocations: 5.721 MB / 0.7152 GB, free: 55.82 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.121e-05/1.135, allocations: 8 kB / 0.7152 GB, free: 55.82 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-05/1.135, allocations: 39.86 kB / 0.7153 GB, free: 55.78 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04348/1.178, allocations: 23.48 MB / 0.7382 GB, free: 33.6 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.556e-05/1.178, allocations: 32 kB / 0.7382 GB, free: 33.57 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007266/1.186, allocations: 2.365 MB / 0.7405 GB, free: 31.32 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02144/1.207, allocations: 6.99 MB / 0.7474 GB, free: 24.47 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008847/1.208, allocations: 258.5 kB / 0.7476 GB, free: 24.22 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02651/1.234, allocations: 36.27 MB / 0.783 GB, free: 2.539 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.2143/1.449, allocations: 10.03 MB / 0.7928 GB, free: 98.68 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0208/1.469, allocations: 10.7 MB / 0.8033 GB, free: 94.77 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001551/1.471, allocations: 0.6573 MB / 0.8039 GB, free: 94.77 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000883/1.472, allocations: 187.7 kB / 0.8041 GB, free: 94.77 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002288/1.474, allocations: 228.2 kB / 0.8043 GB, free: 94.77 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001538/1.476, allocations: 0.7622 MB / 0.8051 GB, free: 94.77 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004396/1.476, allocations: 412.5 kB / 0.8055 GB, free: 94.77 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.002132/1.478, allocations: 2.509 MB / 0.8079 GB, free: 94.64 MB / 490.8 MB Notification: Performance of sort global known variables: time 5.31e-07/1.478, allocations: 2.656 kB / 0.8079 GB, free: 94.64 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.00845/1.487, allocations: 3.977 MB / 0.8118 GB, free: 94.64 MB / 490.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.0008507/1.488, allocations: 0.6177 MB / 0.8124 GB, free: 94.57 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01247/1.5, allocations: 8.609 MB / 0.8208 GB, free: 92.15 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0001102/1.5, allocations: 53.25 kB / 0.8209 GB, free: 92.14 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007196/1.507, allocations: 6.021 MB / 0.8267 GB, free: 89.47 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00613/1.514, allocations: 1.822 MB / 0.8285 GB, free: 89.45 MB / 490.8 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4069:9-4069:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:791:5-791: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: 3.2989094550721347]