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.000892/0.000892, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001115/0.002007, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.000728/0.000728, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009167/0.001645, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.007/1.007, allocations: 177.2 MB / 189.7 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09498/1.102, allocations: 53.68 MB / 243.4 MB, free: 15.48 MB / 250.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.09519/0.09519, allocations: 17.36 MB / 261.5 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01226/0.1075, allocations: 6.937 MB / 268.4 MB, free: 6.402 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 2.204e-06/2.204e-06, allocations: 0 / 269.8 MB, free: 5.094 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.936e-05/3.156e-05, allocations: 6.312 kB / 269.8 MB, free: 5.086 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.1777/0.1778, allocations: 39.21 MB / 309 MB, free: 11.17 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03228/0.21, allocations: 17.26 MB / 326.2 MB, free: 9.898 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008605/0.2186, allocations: 127.4 kB / 326.4 MB, free: 9.773 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005731/0.2244, allocations: 2.656 MB / 329 MB, free: 7.098 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009645/0.234, allocations: 3.663 MB / 332.7 MB, free: 3.406 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005378/0.2394, allocations: 2.901 MB / 335.6 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01057/0.25, allocations: 11.31 MB / 346.9 MB, free: 5.156 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00234/0.2523, allocations: 2.479 MB / 349.4 MB, free: 2.559 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007411/0.2597, allocations: 7.413 MB / 356.8 MB, free: 11.04 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004176/0.2639, allocations: 3.958 MB / 360.7 MB, free: 7.074 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001679/0.2656, allocations: 1.219 MB / 362 MB, free: 5.855 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005073/0.2706, allocations: 2.361 MB / 364.3 MB, free: 3.492 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002125/0.2728, allocations: 3.014 MB / 367.3 MB, free: 480 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003527/0.2763, allocations: 3.41 MB / 370.7 MB, free: 13.05 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01054/0.2868, allocations: 10.83 MB / 381.6 MB, free: 2.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.449e-05/0.2869, allocations: 0 / 381.6 MB, free: 2.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2869, allocations: 0 / 381.6 MB, free: 2.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001991/0.2871, allocations: 0 / 381.6 MB, free: 2.18 MB / 362.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.0125/0.2996, allocations: 14.73 MB / 396.3 MB, free: 3.348 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.2996, allocations: 12.03 kB / 396.3 MB, free: 3.336 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006036/0.3056, allocations: 5.219 MB / 401.5 MB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004768/0.3104, allocations: 3.286 MB / 404.8 MB, free: 10.74 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001231/0.3116, allocations: 1.997 MB / 406.8 MB, free: 8.605 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009304/0.3125, allocations: 1.133 MB / 407.9 MB, free: 7.473 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01343/0.326, allocations: 14.2 MB / 422.1 MB, free: 9.207 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000133/0.3261, allocations: 0 / 422.1 MB, free: 9.207 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004765/0.3266, allocations: 467.9 kB / 422.6 MB, free: 8.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001363/0.328, allocations: 1.765 MB / 424.4 MB, free: 6.973 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1791/0.507, allocations: 16.39 MB / 440.8 MB, free: 83.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05929/0.5663, allocations: 48.83 MB / 489.6 MB, free: 56.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005225/0.5715, allocations: 3.138 MB / 492.7 MB, free: 53.59 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002916/0.5745, allocations: 1.397 MB / 494.1 MB, free: 52.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001009/0.5755, allocations: 0.7576 MB / 494.9 MB, free: 51.46 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/0.5755, allocations: 91.88 kB / 495 MB, free: 51.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=533): time 6.342e-06/0.5755, allocations: 0 / 495 MB, free: 51.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=707): time 0.1367/0.7122, allocations: 41.13 MB / 0.5235 GB, free: 10.81 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02871/0.7409, allocations: 24.15 MB / 0.5471 GB, free: 1.895 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003375/0.7443, allocations: 2.971 MB / 0.55 GB, free: 15.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001997/0.7463, allocations: 133.7 kB / 0.5501 GB, free: 15.36 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002408/0.7487, allocations: 4.587 MB / 0.5546 GB, free: 10.94 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002753/0.7514, allocations: 2.479 MB / 0.557 GB, free: 8.613 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004814/0.7563, allocations: 1.698 MB / 0.5587 GB, free: 7.059 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.454e-05/0.7563, allocations: 301.1 kB / 0.559 GB, free: 6.762 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006424/0.7627, allocations: 2.135 MB / 0.5611 GB, free: 4.621 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006873/0.7696, allocations: 3.194 MB / 0.5642 GB, free: 1.246 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01854/0.7882, allocations: 8.57 MB / 0.5726 GB, free: 8.539 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.339e-05/0.7882, allocations: 11.94 kB / 0.5726 GB, free: 8.527 MB / 458.7 MB Notification: Performance of matching and sorting (n=862) (initialization): time 0.02323/0.8114, allocations: 8.651 MB / 0.581 GB, free: 15.98 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.082e-05/0.8115, allocations: 20 kB / 0.581 GB, free: 15.96 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-05/0.8115, allocations: 31.94 kB / 0.5811 GB, free: 15.93 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02299/0.8345, allocations: 10.63 MB / 0.5915 GB, free: 5.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01907/0.8536, allocations: 4.613 MB / 0.596 GB, free: 0.832 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.177/1.031, allocations: 35.66 MB / 0.6308 GB, free: 97.87 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005473/1.036, allocations: 293.9 kB / 0.6311 GB, free: 97.87 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001715/1.038, allocations: 1.558 MB / 0.6326 GB, free: 97.87 MB / 474.7 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 (730): * Single equations (assignments): 698 * 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%), (3,4,77.8%), (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%), (3,4,77.8%), (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.004007/1.042, allocations: 0.4952 MB / 0.6331 GB, free: 97.75 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002038/1.044, allocations: 0.5661 MB / 0.6336 GB, free: 97.75 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02396/1.068, allocations: 14.41 MB / 0.6477 GB, free: 96.62 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01156/1.079, allocations: 4.885 MB / 0.6525 GB, free: 96.31 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.524e-05/1.079, allocations: 7.656 kB / 0.6525 GB, free: 96.31 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-05/1.079, allocations: 33.52 kB / 0.6525 GB, free: 96.31 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03474/1.114, allocations: 22.33 MB / 0.6743 GB, free: 89.43 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.854e-05/1.114, allocations: 30.52 kB / 0.6743 GB, free: 89.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006824/1.121, allocations: 2.365 MB / 0.6766 GB, free: 87.12 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001412/1.122, allocations: 0.6405 MB / 0.6773 GB, free: 86.69 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02038/1.143, allocations: 7.467 MB / 0.6846 GB, free: 79.27 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009626/1.144, allocations: 239.8 kB / 0.6848 GB, free: 79.04 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02242/1.166, allocations: 36.38 MB / 0.7203 GB, free: 41.17 MB / 474.7 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.006141/1.172, allocations: 10.05 MB / 0.7301 GB, free: 30.71 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01718/1.189, allocations: 10.22 MB / 0.7401 GB, free: 19.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001202/1.191, allocations: 179.3 kB / 0.7403 GB, free: 19.53 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002464/1.193, allocations: 215.9 kB / 0.7405 GB, free: 19.32 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001298/1.194, allocations: 0.7297 MB / 0.7412 GB, free: 18.62 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003914/1.195, allocations: 395.8 kB / 0.7416 GB, free: 18.23 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002101/1.197, allocations: 2.591 MB / 0.7441 GB, free: 15.83 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.2e-07/1.197, allocations: 0 / 0.7441 GB, free: 15.83 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009126/1.206, allocations: 3.826 MB / 0.7478 GB, free: 12.03 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 133 * 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 (533): * Single equations (assignments): 508 * 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%), (3,4,77.8%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (2,1,100.0%), (1,4,100.0%), (3,4,77.8%), (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.0008732/1.207, allocations: 0.5842 MB / 0.7484 GB, free: 11.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01177/1.219, allocations: 7.925 MB / 0.7562 GB, free: 3.711 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001133/1.219, allocations: 93.19 kB / 0.7562 GB, free: 3.621 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00921/1.228, allocations: 6.632 MB / 0.7627 GB, free: 13.03 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00942/1.237, allocations: 10.78 MB / 0.7732 GB, free: 0.5117 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4633:9-4633:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:793:5-793:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.01925091072917]