Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Processes.Tests.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.002463/0.002463, allocations: 81.5 kB / 19.44 MB, free: 344 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.002863/0.002863, allocations: 169.2 kB / 22.76 MB, free: 1.664 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.579/1.579, allocations: 177.1 MB / 203.1 MB, free: 5.602 MB / 186.7 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.1401/0.1401, allocations: 17.36 MB / 276.9 MB, free: 11.68 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.Processes.Tests.Diffusion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Processes.Tests.Diffusion") translateModel(Chemical.Processes.Tests.Diffusion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Processes.Tests.Diffusion") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.749e-06/4.749e-06, allocations: 3.984 kB / 352.7 MB, free: 10.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.938e-05/3.412e-05, allocations: 2.312 kB / 352.7 MB, free: 10.33 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.Processes.Tests.Diffusion): time 0.3692/0.3693, allocations: 60.9 MB / 413.6 MB, free: 15.57 MB / 330.8 MB Notification: Performance of NFInst.instExpressions: time 0.03104/0.4003, allocations: 16.47 MB / 430.1 MB, free: 13.6 MB / 330.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009793/0.4101, allocations: 128.5 kB / 430.2 MB, free: 13.56 MB / 330.8 MB Notification: Performance of NFTyping.typeComponents: time 0.007751/0.4178, allocations: 2.511 MB / 432.7 MB, free: 12.52 MB / 330.8 MB Notification: Performance of NFTyping.typeBindings: time 0.01107/0.4289, allocations: 3.675 MB / 436.4 MB, free: 10.46 MB / 330.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.008058/0.437, allocations: 2.915 MB / 439.3 MB, free: 8.258 MB / 330.8 MB Notification: Performance of NFFlatten.flatten: time 0.01425/0.4512, allocations: 11.28 MB / 450.6 MB, free: 1.391 MB / 330.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004034/0.4552, allocations: 2.368 MB / 452.9 MB, free: 140 kB / 330.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01447/0.4697, allocations: 6.841 MB / 459.8 MB, free: 11.8 MB / 346.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009956/0.4797, allocations: 3.968 MB / 463.7 MB, free: 9.57 MB / 346.8 MB Notification: Performance of NFPackage.collectConstants: time 0.003519/0.4832, allocations: 1.224 MB / 465 MB, free: 9.57 MB / 346.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0087/0.4919, allocations: 2.326 MB / 467.3 MB, free: 9.172 MB / 346.8 MB Notification: Performance of NFScalarize.scalarize: time 0.004842/0.4967, allocations: 3.647 MB / 470.9 MB, free: 6.594 MB / 346.8 MB Notification: Performance of NFVerifyModel.verify: time 0.009227/0.506, allocations: 4.122 MB / 475.1 MB, free: 4.285 MB / 346.8 MB Notification: Performance of NFConvertDAE.convert: time 0.02888/0.5349, allocations: 16.95 MB / 492 MB, free: 6.445 MB / 362.8 MB Notification: Performance of FrontEnd - DAE generated: time 9.438e-06/0.5349, allocations: 0 / 492 MB, free: 6.445 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.073e-06/0.5349, allocations: 0 / 492 MB, free: 6.445 MB / 362.8 MB Notification: Performance of Transformations before backend: time 0.000792/0.5357, allocations: 0 / 492 MB, free: 6.445 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.03887/0.5745, allocations: 14.32 MB / 0.4945 GB, free: 8.133 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/0.5746, allocations: 8.031 kB / 0.4945 GB, free: 8.125 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01682/0.5914, allocations: 5.657 MB / 0.5 GB, free: 2.504 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01314/0.6045, allocations: 4.922 MB / 0.5048 GB, free: 13.6 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002786/0.6073, allocations: 2 MB / 0.5067 GB, free: 11.49 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003367/0.6107, allocations: 1.127 MB / 0.5078 GB, free: 10.39 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04597/0.6567, allocations: 18.61 MB / 0.526 GB, free: 7.785 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002746/0.6569, allocations: 0 / 0.526 GB, free: 7.785 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002141/0.6591, allocations: 463.4 kB / 0.5265 GB, free: 7.355 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002425/0.6615, allocations: 1.847 MB / 0.5283 GB, free: 5.496 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05735/0.7188, allocations: 33.85 MB / 0.5613 GB, free: 3.602 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3178/1.037, allocations: 77.89 MB / 0.6374 GB, free: 91.88 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01446/1.051, allocations: 6.466 MB / 0.6437 GB, free: 85.37 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01037/1.062, allocations: 4.4 MB / 0.648 GB, free: 80.96 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002351/1.064, allocations: 0.766 MB / 0.6487 GB, free: 80.2 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.988e-05/1.064, allocations: 98.64 kB / 0.6488 GB, free: 80.09 MB / 442.8 MB Notification: Performance of pre-optimization done (n=533): time 9.838e-06/1.064, allocations: 0 / 0.6488 GB, free: 80.09 MB / 442.8 MB Notification: Performance of matching and sorting (n=755): time 0.3053/1.369, allocations: 71.37 MB / 0.7185 GB, free: 8.848 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2549/1.624, allocations: 39.05 MB / 0.7567 GB, free: 111 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007125/1.631, allocations: 4.989 MB / 0.7615 GB, free: 109 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.003076/1.634, allocations: 145.8 kB / 0.7617 GB, free: 108.9 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003888/1.638, allocations: 5.89 MB / 0.7674 GB, free: 105.7 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.005754/1.644, allocations: 2.803 MB / 0.7702 GB, free: 103.5 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008526/1.653, allocations: 2.548 MB / 0.7727 GB, free: 102.7 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 6.962e-05/1.653, allocations: 480.1 kB / 0.7731 GB, free: 102.3 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01593/1.669, allocations: 6.762 MB / 0.7797 GB, free: 99.93 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01728/1.686, allocations: 8.355 MB / 0.7879 GB, free: 95.99 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04028/1.726, allocations: 20.72 MB / 0.8081 GB, free: 76.19 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.031e-05/1.726, allocations: 10.62 kB / 0.8081 GB, free: 76.18 MB / 442.8 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.06563/1.792, allocations: 20.59 MB / 0.8282 GB, free: 56.53 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.408e-05/1.792, allocations: 16 kB / 0.8282 GB, free: 56.51 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.527e-05/1.792, allocations: 24 kB / 0.8283 GB, free: 56.49 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04871/1.841, allocations: 12 MB / 0.84 GB, free: 44.55 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03168/1.872, allocations: 4.456 MB / 0.8443 GB, free: 40.11 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2415/2.114, allocations: 59.5 MB / 0.9024 GB, free: 118.2 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0146/2.128, allocations: 0.6488 MB / 0.9031 GB, free: 118.2 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00482/2.133, allocations: 1.72 MB / 0.9048 GB, free: 118.2 MB / 458.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.009752/2.143, allocations: 1.369 MB / 0.9061 GB, free: 118.1 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007168/2.15, allocations: 0.8558 MB / 0.9069 GB, free: 118.1 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07725/2.227, allocations: 24.31 MB / 0.9307 GB, free: 116.9 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04078/2.268, allocations: 11.49 MB / 0.9419 GB, free: 113.9 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.00013/2.268, allocations: 14.02 kB / 0.9419 GB, free: 113.9 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000323/2.269, allocations: 36.97 kB / 0.9419 GB, free: 113.9 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1242/2.393, allocations: 38.88 MB / 0.9799 GB, free: 78.87 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.704e-05/2.393, allocations: 37.73 kB / 0.9799 GB, free: 78.83 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01548/2.408, allocations: 1.933 MB / 0.9818 GB, free: 76.92 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04948/2.458, allocations: 7.95 MB / 0.9896 GB, free: 69.04 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00188/2.46, allocations: 307.8 kB / 0.9899 GB, free: 68.73 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06105/2.521, allocations: 58.85 MB / 1.047 GB, free: 7.688 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.02188/2.543, allocations: 14.8 MB / 1.062 GB, free: 8.219 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.294/2.837, allocations: 18.96 MB / 1.08 GB, free: 117.1 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00384/2.841, allocations: 0.7803 MB / 1.081 GB, free: 117.1 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003879/2.845, allocations: 192.2 kB / 1.081 GB, free: 117.1 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008495/2.853, allocations: 353.9 kB / 1.082 GB, free: 117.1 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003163/2.856, allocations: 0.884 MB / 1.082 GB, free: 117.1 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009419/2.857, allocations: 475 kB / 1.083 GB, free: 117.1 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.008282/2.865, allocations: 4.953 MB / 1.088 GB, free: 116.9 MB / 474.8 MB Notification: Performance of sort global known variables: time 8e-08/2.865, allocations: 0 / 1.088 GB, free: 116.9 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01898/2.884, allocations: 3.985 MB / 1.092 GB, free: 116.9 MB / 474.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.00279/2.887, allocations: 0.6147 MB / 1.092 GB, free: 116.8 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.03828/2.925, allocations: 16.01 MB / 1.108 GB, free: 113.2 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 5.692e-05/2.925, allocations: 3.25 kB / 1.108 GB, free: 113.2 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02049/2.946, allocations: 9.468 MB / 1.117 GB, free: 109.2 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01431/2.96, allocations: 1.934 MB / 1.119 GB, free: 109.1 MB / 474.8 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4687:9-4687:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:848:5-848:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 657] [Calling sys.exit(0), Time elapsed: 5.379305784008466]