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.0009748/0.0009748, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.0009931/0.0009931, allocations: 173 kB / 23.49 MB, free: 1.055 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.009/1.009, allocations: 177.1 MB / 203.8 MB, free: 5.656 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.08691/0.08691, allocations: 17.38 MB / 277.7 MB, free: 11.72 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.904e-06/1.904e-06, allocations: 0 / 353.4 MB, free: 10.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.045e-05/3.235e-05, allocations: 2.312 kB / 353.4 MB, free: 10.31 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.2858/0.2858, allocations: 63.03 MB / 416.5 MB, free: 14.29 MB / 330.8 MB Notification: Performance of NFInst.instExpressions: time 0.02025/0.3061, allocations: 16.48 MB / 432.9 MB, free: 12.24 MB / 330.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00627/0.3123, allocations: 124.7 kB / 433.1 MB, free: 12.21 MB / 330.8 MB Notification: Performance of NFTyping.typeComponents: time 0.005674/0.318, allocations: 2.51 MB / 435.6 MB, free: 11.16 MB / 330.8 MB Notification: Performance of NFTyping.typeBindings: time 0.009399/0.3274, allocations: 3.673 MB / 439.3 MB, free: 8.844 MB / 330.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.006411/0.3338, allocations: 2.912 MB / 442.2 MB, free: 6.645 MB / 330.8 MB Notification: Performance of NFFlatten.flatten: time 0.01096/0.3448, allocations: 11.27 MB / 453.4 MB, free: 15.77 MB / 346.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002677/0.3474, allocations: 2.383 MB / 455.8 MB, free: 14.5 MB / 346.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007221/0.3547, allocations: 6.838 MB / 462.7 MB, free: 10.16 MB / 346.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003526/0.3582, allocations: 3.968 MB / 466.6 MB, free: 7.941 MB / 346.8 MB Notification: Performance of NFPackage.collectConstants: time 0.0008598/0.3591, allocations: 1.221 MB / 467.9 MB, free: 7.941 MB / 346.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003726/0.3628, allocations: 2.328 MB / 470.2 MB, free: 7.543 MB / 346.8 MB Notification: Performance of NFScalarize.scalarize: time 0.001768/0.3645, allocations: 3.644 MB / 473.8 MB, free: 4.969 MB / 346.8 MB Notification: Performance of NFVerifyModel.verify: time 0.004039/0.3686, allocations: 4.131 MB / 478 MB, free: 2.648 MB / 346.8 MB Notification: Performance of NFConvertDAE.convert: time 0.01237/0.381, allocations: 11.62 MB / 489.6 MB, free: 10.22 MB / 362.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.381, allocations: 4 kB / 489.6 MB, free: 10.21 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.675e-06/0.381, allocations: 0 / 489.6 MB, free: 10.21 MB / 362.8 MB Notification: Performance of Transformations before backend: time 0.0002551/0.3812, allocations: 0 / 489.6 MB, free: 10.21 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.01323/0.3944, allocations: 13.43 MB / 0.4912 GB, free: 12.79 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.3945, allocations: 8.031 kB / 0.4912 GB, free: 12.79 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00659/0.4011, allocations: 5.654 MB / 0.4967 GB, free: 7.168 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00584/0.4069, allocations: 4.821 MB / 0.5014 GB, free: 2.359 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001172/0.4081, allocations: 2 MB / 0.5034 GB, free: 256 kB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009808/0.4091, allocations: 1.129 MB / 0.5045 GB, free: 15.14 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0218/0.4309, allocations: 16.67 MB / 0.5208 GB, free: 14.48 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002224/0.4311, allocations: 4 kB / 0.5208 GB, free: 14.48 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001309/0.4324, allocations: 463.3 kB / 0.5212 GB, free: 14.05 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001297/0.4337, allocations: 1.839 MB / 0.523 GB, free: 12.2 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02624/0.4599, allocations: 20.89 MB / 0.5434 GB, free: 7.23 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2405/0.7004, allocations: 61.31 MB / 0.6033 GB, free: 129.6 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009436/0.7099, allocations: 3.747 MB / 0.607 GB, free: 126 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007261/0.7171, allocations: 2.063 MB / 0.609 GB, free: 124 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001649/0.7188, allocations: 0.7683 MB / 0.6097 GB, free: 123.2 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.664e-05/0.7188, allocations: 94.7 kB / 0.6098 GB, free: 123.1 MB / 442.8 MB Notification: Performance of pre-optimization done (n=533): time 1.157e-05/0.7189, allocations: 2.688 kB / 0.6098 GB, free: 123.1 MB / 442.8 MB Notification: Performance of matching and sorting (n=755): time 0.1735/0.8924, allocations: 55.69 MB / 0.6642 GB, free: 68.33 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03933/0.9317, allocations: 33.07 MB / 0.6965 GB, free: 33.8 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004049/0.9357, allocations: 4.034 MB / 0.7004 GB, free: 29.78 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00276/0.9385, allocations: 141.7 kB / 0.7006 GB, free: 29.63 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002359/0.9408, allocations: 5.693 MB / 0.7061 GB, free: 24.72 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003524/0.9444, allocations: 2.617 MB / 0.7087 GB, free: 22.14 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005783/0.9502, allocations: 2.294 MB / 0.7109 GB, free: 19.84 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 3.607e-05/0.9502, allocations: 476.8 kB / 0.7114 GB, free: 19.37 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008308/0.9585, allocations: 3.429 MB / 0.7147 GB, free: 15.94 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009205/0.9677, allocations: 4.81 MB / 0.7194 GB, free: 10.67 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2133/1.181, allocations: 12.1 MB / 0.7312 GB, free: 125.3 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.591e-05/1.181, allocations: 7.344 kB / 0.7312 GB, free: 125.3 MB / 442.8 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.04116/1.222, allocations: 13.48 MB / 0.7444 GB, free: 124.8 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.277e-05/1.222, allocations: 18.75 kB / 0.7444 GB, free: 124.8 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.644e-05/1.222, allocations: 22.59 kB / 0.7445 GB, free: 124.8 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03334/1.256, allocations: 10.85 MB / 0.755 GB, free: 124.4 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01995/1.276, allocations: 4.458 MB / 0.7594 GB, free: 123.1 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0315/1.307, allocations: 51.83 MB / 0.81 GB, free: 74.07 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008696/1.316, allocations: 0.6492 MB / 0.8106 GB, free: 73.42 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003021/1.319, allocations: 1.722 MB / 0.8123 GB, free: 71.7 MB / 442.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: 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.005754/1.325, allocations: 0.5574 MB / 0.8129 GB, free: 71.16 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003766/1.328, allocations: 0.8541 MB / 0.8137 GB, free: 70.34 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03631/1.365, allocations: 19.03 MB / 0.8323 GB, free: 51.2 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0205/1.385, allocations: 8.268 MB / 0.8404 GB, free: 42.92 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.363e-05/1.385, allocations: 8 kB / 0.8404 GB, free: 42.91 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002318/1.385, allocations: 31.88 kB / 0.8404 GB, free: 42.88 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06354/1.449, allocations: 32.28 MB / 0.8719 GB, free: 10.03 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-05/1.449, allocations: 35.28 kB / 0.872 GB, free: 10 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007694/1.457, allocations: 1.939 MB / 0.8739 GB, free: 8.086 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02496/1.482, allocations: 7.265 MB / 0.881 GB, free: 0.8672 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001434/1.483, allocations: 295.8 kB / 0.8812 GB, free: 0.5781 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1973/1.68, allocations: 51.53 MB / 0.9316 GB, free: 94.39 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.01082/1.691, allocations: 13.73 MB / 0.945 GB, free: 82.8 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06054/1.752, allocations: 13.53 MB / 0.9582 GB, free: 78.68 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001799/1.754, allocations: 0.7764 MB / 0.9589 GB, free: 78.68 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00195/1.756, allocations: 191.9 kB / 0.9591 GB, free: 78.68 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004466/1.76, allocations: 361.1 kB / 0.9595 GB, free: 78.68 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002115/1.762, allocations: 0.8089 MB / 0.9603 GB, free: 78.64 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008251/1.763, allocations: 482.9 kB / 0.9607 GB, free: 78.64 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.005514/1.768, allocations: 4.02 MB / 0.9646 GB, free: 78.42 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.8e-07/1.768, allocations: 0 / 0.9646 GB, free: 78.42 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01252/1.781, allocations: 3.989 MB / 0.9685 GB, free: 78.42 MB / 458.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.001767/1.783, allocations: 0.5974 MB / 0.9691 GB, free: 78.33 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01842/1.801, allocations: 11.21 MB / 0.9801 GB, free: 70.75 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 2.373e-05/1.801, allocations: 4 kB / 0.9801 GB, free: 70.75 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01025/1.811, allocations: 8.007 MB / 0.9879 GB, free: 63.79 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007104/1.819, allocations: 1.931 MB / 0.9898 GB, free: 62.4 MB / 458.8 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4695:9-4695: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 658] [Calling sys.exit(0), Time elapsed: 3.551645044935867]