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.0008956/0.0008956, allocations: 93.06 kB / 19.65 MB, free: 276 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.0009742/0.0009742, allocations: 165 kB / 23.02 MB, free: 1.547 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.9937/0.9937, allocations: 177.1 MB / 203.4 MB, free: 5.609 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.1018/0.1018, allocations: 17.38 MB / 277.3 MB, free: 11.62 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.163e-06/1.163e-06, allocations: 0 / 353.4 MB, free: 9.973 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.888e-05/2.005e-05, allocations: 2.312 kB / 353.4 MB, free: 9.969 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.2701/0.2702, allocations: 63.4 MB / 416.8 MB, free: 14.1 MB / 330.8 MB Notification: Performance of NFInst.instExpressions: time 0.02151/0.2917, allocations: 16.54 MB / 433.4 MB, free: 12.03 MB / 330.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003202/0.2949, allocations: 122.9 kB / 433.5 MB, free: 12 MB / 330.8 MB Notification: Performance of NFTyping.typeComponents: time 0.003364/0.2982, allocations: 2.518 MB / 436 MB, free: 10.89 MB / 330.8 MB Notification: Performance of NFTyping.typeBindings: time 0.00404/0.3023, allocations: 3.669 MB / 439.7 MB, free: 8.531 MB / 330.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.003997/0.3063, allocations: 2.916 MB / 442.6 MB, free: 6.328 MB / 330.8 MB Notification: Performance of NFFlatten.flatten: time 0.006163/0.3124, allocations: 11.29 MB / 453.9 MB, free: 15.45 MB / 346.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002128/0.3146, allocations: 2.374 MB / 456.3 MB, free: 14.18 MB / 346.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004789/0.3193, allocations: 6.841 MB / 463.1 MB, free: 9.848 MB / 346.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003135/0.3225, allocations: 3.97 MB / 467.1 MB, free: 7.621 MB / 346.8 MB Notification: Performance of NFPackage.collectConstants: time 0.001041/0.3235, allocations: 1.228 MB / 468.3 MB, free: 7.617 MB / 346.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003814/0.3273, allocations: 2.32 MB / 470.6 MB, free: 7.223 MB / 346.8 MB Notification: Performance of NFScalarize.scalarize: time 0.00171/0.329, allocations: 3.648 MB / 474.3 MB, free: 4.645 MB / 346.8 MB Notification: Performance of NFVerifyModel.verify: time 0.002673/0.3317, allocations: 4.123 MB / 478.4 MB, free: 2.336 MB / 346.8 MB Notification: Performance of NFConvertDAE.convert: time 0.01014/0.3419, allocations: 11.62 MB / 490 MB, free: 9.785 MB / 362.8 MB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.3419, allocations: 4 kB / 490 MB, free: 9.781 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3419, allocations: 4 kB / 490 MB, free: 9.777 MB / 362.8 MB Notification: Performance of Transformations before backend: time 0.0003563/0.3422, allocations: 0 / 490 MB, free: 9.777 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.01405/0.3563, allocations: 13.43 MB / 0.4917 GB, free: 12.35 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.3563, allocations: 8.031 kB / 0.4917 GB, free: 12.34 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006548/0.3629, allocations: 5.654 MB / 0.4972 GB, free: 6.727 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005443/0.3683, allocations: 4.815 MB / 0.5019 GB, free: 1.93 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001072/0.3694, allocations: 2.002 MB / 0.5038 GB, free: 15.82 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009147/0.3703, allocations: 1.128 MB / 0.5049 GB, free: 14.72 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01674/0.387, allocations: 16.66 MB / 0.5212 GB, free: 14.07 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001206/0.3872, allocations: 11.94 kB / 0.5212 GB, free: 14.05 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005706/0.3877, allocations: 465.7 kB / 0.5217 GB, free: 13.62 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001585/0.3893, allocations: 1.843 MB / 0.5235 GB, free: 11.77 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02504/0.4144, allocations: 20.88 MB / 0.5439 GB, free: 6.805 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2377/0.6521, allocations: 61.31 MB / 0.6037 GB, free: 94.52 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007856/0.66, allocations: 3.759 MB / 0.6074 GB, free: 93.68 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004593/0.6645, allocations: 2.056 MB / 0.6094 GB, free: 93.32 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001099/0.6656, allocations: 0.7637 MB / 0.6102 GB, free: 93.12 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.73e-05/0.6657, allocations: 100.6 kB / 0.6102 GB, free: 93.04 MB / 442.8 MB Notification: Performance of pre-optimization done (n=533): time 7.164e-06/0.6657, allocations: 3.828 kB / 0.6103 GB, free: 93.04 MB / 442.8 MB Notification: Performance of matching and sorting (n=755): time 0.1503/0.816, allocations: 55.69 MB / 0.6646 GB, free: 40.61 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03464/0.8506, allocations: 33.07 MB / 0.6969 GB, free: 6.227 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003829/0.8545, allocations: 4.027 MB / 0.7009 GB, free: 2.203 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002219/0.8567, allocations: 144.1 kB / 0.701 GB, free: 2.059 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002384/0.8591, allocations: 5.689 MB / 0.7065 GB, free: 13.18 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003005/0.8621, allocations: 2.62 MB / 0.7091 GB, free: 10.66 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005057/0.8671, allocations: 2.296 MB / 0.7113 GB, free: 8.352 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.8672, allocations: 479.4 kB / 0.7118 GB, free: 7.883 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007906/0.8752, allocations: 3.426 MB / 0.7152 GB, free: 4.453 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008737/0.8839, allocations: 4.81 MB / 0.7198 GB, free: 15.2 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02154/0.9054, allocations: 12.11 MB / 0.7317 GB, free: 2.746 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.054e-05/0.9055, allocations: 8 kB / 0.7317 GB, free: 2.738 MB / 474.8 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.2347/1.14, allocations: 13.48 MB / 0.7448 GB, free: 119.1 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.79e-05/1.14, allocations: 17.88 kB / 0.7449 GB, free: 119.1 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.135e-05/1.14, allocations: 27.59 kB / 0.7449 GB, free: 119.1 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05237/1.193, allocations: 10.85 MB / 0.7555 GB, free: 118.7 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01602/1.209, allocations: 4.455 MB / 0.7598 GB, free: 118.7 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03523/1.244, allocations: 51.83 MB / 0.8104 GB, free: 79.13 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006561/1.25, allocations: 0.6487 MB / 0.8111 GB, free: 79.13 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001548/1.252, allocations: 1.726 MB / 0.8128 GB, free: 78.34 MB / 474.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.003506/1.255, allocations: 0.5448 MB / 0.8133 GB, free: 78.1 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002337/1.258, allocations: 0.8604 MB / 0.8141 GB, free: 77.37 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03067/1.288, allocations: 19.04 MB / 0.8327 GB, free: 60.58 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02408/1.313, allocations: 8.265 MB / 0.8408 GB, free: 52.38 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.254e-05/1.313, allocations: 12 kB / 0.8408 GB, free: 52.37 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.471e-05/1.313, allocations: 35.86 kB / 0.8408 GB, free: 52.34 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05195/1.365, allocations: 32.27 MB / 0.8724 GB, free: 19.81 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.6e-05/1.365, allocations: 35.98 kB / 0.8724 GB, free: 19.78 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006699/1.371, allocations: 1.94 MB / 0.8743 GB, free: 17.93 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02348/1.395, allocations: 7.258 MB / 0.8814 GB, free: 10.73 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001933/1.397, allocations: 307.8 kB / 0.8817 GB, free: 10.43 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2543/1.651, allocations: 51.52 MB / 0.932 GB, free: 97.53 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.01008/1.661, allocations: 13.74 MB / 0.9454 GB, free: 85.98 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03032/1.692, allocations: 13.52 MB / 0.9586 GB, free: 81.86 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001861/1.693, allocations: 0.7773 MB / 0.9594 GB, free: 81.86 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001712/1.695, allocations: 192.7 kB / 0.9596 GB, free: 81.86 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00371/1.699, allocations: 356.5 kB / 0.9599 GB, free: 81.86 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001907/1.701, allocations: 0.81 MB / 0.9607 GB, free: 81.83 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006924/1.701, allocations: 479.9 kB / 0.9611 GB, free: 81.83 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.004793/1.706, allocations: 4.022 MB / 0.9651 GB, free: 81.61 MB / 490.8 MB Notification: Performance of sort global known variables: time 5.41e-07/1.706, allocations: 0 / 0.9651 GB, free: 81.61 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01069/1.717, allocations: 3.986 MB / 0.969 GB, free: 81.61 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.00192/1.719, allocations: 0.6127 MB / 0.9696 GB, free: 81.52 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01864/1.737, allocations: 11.2 MB / 0.9805 GB, free: 77.87 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 2.453e-05/1.737, allocations: 6.344 kB / 0.9805 GB, free: 77.87 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01117/1.749, allocations: 8.011 MB / 0.9883 GB, free: 72.07 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008165/1.757, allocations: 1.93 MB / 0.9902 GB, free: 71.12 MB / 490.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.5100067551247776]