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.000943/0.000943, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.0008823/0.0008823, allocations: 169 kB / 23.27 MB, free: 1.223 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.9413/0.9413, allocations: 177.2 MB / 203.7 MB, free: 5.516 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.08652/0.08652, allocations: 17.39 MB / 277.6 MB, free: 11.5 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.323e-06/1.323e-06, allocations: 0 / 353.9 MB, free: 9.707 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.284e-05/1.417e-05, allocations: 4.703 kB / 353.9 MB, free: 9.703 MB / 282.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.279/0.2791, allocations: 62.49 MB / 416.4 MB, free: 14.67 MB / 330.8 MB Notification: Performance of NFInst.instExpressions: time 0.02164/0.3007, allocations: 16.39 MB / 432.8 MB, free: 12.65 MB / 330.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00465/0.3053, allocations: 124.4 kB / 432.9 MB, free: 12.61 MB / 330.8 MB Notification: Performance of NFTyping.typeComponents: time 0.003974/0.3093, allocations: 2.519 MB / 435.4 MB, free: 11.57 MB / 330.8 MB Notification: Performance of NFTyping.typeBindings: time 0.006559/0.3159, allocations: 3.668 MB / 439.1 MB, free: 9.246 MB / 330.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.005305/0.3212, allocations: 2.92 MB / 442 MB, free: 7.043 MB / 330.8 MB Notification: Performance of NFFlatten.flatten: time 0.008945/0.3301, allocations: 11.29 MB / 453.3 MB, free: 160 kB / 330.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003038/0.3332, allocations: 2.382 MB / 455.7 MB, free: 14.89 MB / 346.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007858/0.341, allocations: 6.859 MB / 462.5 MB, free: 10.54 MB / 346.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004327/0.3453, allocations: 3.954 MB / 466.5 MB, free: 8.324 MB / 346.8 MB Notification: Performance of NFPackage.collectConstants: time 0.001946/0.3473, allocations: 1.217 MB / 467.7 MB, free: 8.324 MB / 346.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004618/0.3519, allocations: 2.31 MB / 470 MB, free: 7.938 MB / 346.8 MB Notification: Performance of NFScalarize.scalarize: time 0.002006/0.3539, allocations: 3.636 MB / 473.6 MB, free: 5.371 MB / 346.8 MB Notification: Performance of NFVerifyModel.verify: time 0.004443/0.3584, allocations: 4.11 MB / 477.7 MB, free: 3.074 MB / 346.8 MB Notification: Performance of NFConvertDAE.convert: time 0.01363/0.372, allocations: 11.62 MB / 489.4 MB, free: 10.11 MB / 362.8 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.372, allocations: 0 / 489.4 MB, free: 10.11 MB / 362.8 MB Notification: Performance of FrontEnd: time 9.82e-07/0.372, allocations: 0 / 489.4 MB, free: 10.11 MB / 362.8 MB Notification: Performance of Transformations before backend: time 0.0005121/0.3725, allocations: 0 / 489.4 MB, free: 10.11 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: 3564 * Number of variables: 3564 Notification: Performance of Generate backend data structure: time 0.01419/0.3867, allocations: 13.49 MB / 0.4911 GB, free: 13.34 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.3867, allocations: 12.03 kB / 0.4911 GB, free: 13.33 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006507/0.3932, allocations: 5.65 MB / 0.4966 GB, free: 7.715 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004856/0.3981, allocations: 4.648 MB / 0.5011 GB, free: 3.086 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001372/0.3995, allocations: 1.995 MB / 0.5031 GB, free: 0.9766 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009217/0.4004, allocations: 1.139 MB / 0.5042 GB, free: 15.86 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01457/0.415, allocations: 13.99 MB / 0.5179 GB, free: 2.43 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001237/0.4151, allocations: 4 kB / 0.5179 GB, free: 2.426 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005159/0.4156, allocations: 467.3 kB / 0.5183 GB, free: 1.992 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001292/0.4169, allocations: 1.847 MB / 0.5201 GB, free: 136 kB / 394.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01511/0.432, allocations: 16.46 MB / 0.5362 GB, free: 15.54 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2323/0.6643, allocations: 58.13 MB / 0.593 GB, free: 99.68 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005306/0.6696, allocations: 3.417 MB / 0.5963 GB, free: 99.09 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00285/0.6724, allocations: 1.784 MB / 0.598 GB, free: 98.88 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009602/0.6734, allocations: 0.8424 MB / 0.5989 GB, free: 98.62 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.857e-05/0.6734, allocations: 96.64 kB / 0.599 GB, free: 98.54 MB / 442.8 MB Notification: Performance of pre-optimization done (n=533): time 6.392e-06/0.6734, allocations: 0 / 0.599 GB, free: 98.54 MB / 442.8 MB Notification: Performance of matching and sorting (n=755): time 0.1157/0.7892, allocations: 42.52 MB / 0.6405 GB, free: 66.95 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02729/0.8164, allocations: 32.13 MB / 0.6719 GB, free: 34.02 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002945/0.8194, allocations: 3.85 MB / 0.6756 GB, free: 30.76 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001938/0.8213, allocations: 145.7 kB / 0.6758 GB, free: 30.61 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001744/0.8231, allocations: 5.742 MB / 0.6814 GB, free: 25.87 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002121/0.8252, allocations: 2.64 MB / 0.6839 GB, free: 23.43 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003743/0.8289, allocations: 2.335 MB / 0.6862 GB, free: 21.25 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 4.246e-05/0.829, allocations: 479.4 kB / 0.6867 GB, free: 20.78 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005217/0.8342, allocations: 3.141 MB / 0.6897 GB, free: 17.64 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006566/0.8408, allocations: 4.547 MB / 0.6942 GB, free: 12.79 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01978/0.8605, allocations: 11.3 MB / 0.7052 GB, free: 1.293 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.761e-05/0.8606, allocations: 4 kB / 0.7052 GB, free: 1.289 MB / 442.8 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.07771/0.9383, allocations: 12.85 MB / 0.7178 GB, free: 4.617 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.348e-05/0.9383, allocations: 16 kB / 0.7178 GB, free: 4.602 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-05/0.9384, allocations: 25.53 kB / 0.7178 GB, free: 4.578 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03912/0.9775, allocations: 10.39 MB / 0.728 GB, free: 10.24 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02313/1.001, allocations: 4.316 MB / 0.7322 GB, free: 6.027 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1786/1.179, allocations: 64.7 MB / 0.7954 GB, free: 72.51 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007258/1.186, allocations: 308.1 kB / 0.7957 GB, free: 72.51 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002798/1.189, allocations: 1.669 MB / 0.7973 GB, free: 72.51 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): 5 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 21 systems {(1,1), (1,1), (1,1), (1,1), (1,1), (1,1), (1,1), (1,1), (4,3), (6,20), (4,3), (1,1), (1,1), (1,1), (1,1), (2,1), (3,8), (2,1), (4,3), (6,20), (4,3)} Notification: Performance of prepare postOptimizeDAE: time 0.005072/1.194, allocations: 0.5575 MB / 0.7978 GB, free: 72.35 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003526/1.198, allocations: 0.8527 MB / 0.7987 GB, free: 72.02 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03095/1.229, allocations: 18 MB / 0.8162 GB, free: 70.67 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01608/1.245, allocations: 7.157 MB / 0.8232 GB, free: 70.26 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.448e-05/1.245, allocations: 7.812 kB / 0.8232 GB, free: 70.26 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001472/1.245, allocations: 40.44 kB / 0.8233 GB, free: 70.26 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05375/1.299, allocations: 31.09 MB / 0.8536 GB, free: 44.53 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.127e-05/1.299, allocations: 32 kB / 0.8537 GB, free: 44.5 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00717/1.306, allocations: 1.917 MB / 0.8555 GB, free: 42.67 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02247/1.329, allocations: 6.837 MB / 0.8622 GB, free: 35.93 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001468/1.33, allocations: 302.4 kB / 0.8625 GB, free: 35.64 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2029/1.533, allocations: 50.35 MB / 0.9117 GB, free: 118.8 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.009017/1.542, allocations: 13.53 MB / 0.9249 GB, free: 107.4 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02389/1.566, allocations: 12.31 MB / 0.9369 GB, free: 103.4 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001416/1.567, allocations: 0.7398 MB / 0.9376 GB, free: 103.4 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001018/1.568, allocations: 188.9 kB / 0.9378 GB, free: 103.4 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002568/1.571, allocations: 222 kB / 0.938 GB, free: 103.4 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001391/1.572, allocations: 0.816 MB / 0.9388 GB, free: 103.4 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005022/1.573, allocations: 431.7 kB / 0.9392 GB, free: 103.4 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.00242/1.575, allocations: 3.232 MB / 0.9424 GB, free: 103.1 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.7e-07/1.575, allocations: 3.656 kB / 0.9424 GB, free: 103.1 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.007801/1.583, allocations: 3.71 MB / 0.946 GB, free: 103.1 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.001027/1.584, allocations: 0.6333 MB / 0.9466 GB, free: 103.1 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01287/1.597, allocations: 8.038 MB / 0.9545 GB, free: 102 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.388e-05/1.597, allocations: 7.312 kB / 0.9545 GB, free: 102 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007181/1.604, allocations: 7.499 MB / 0.9618 GB, free: 98.03 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005189/1.609, allocations: 1.927 MB / 0.9637 GB, free: 97.96 MB / 490.8 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4595:9-4595:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:827:5-827: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.2699950276874006]