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.001343/0.001343, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 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.001126/0.001126, allocations: 169.9 kB / 22.46 MB, free: 2.105 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 / 202.8 MB, free: 5.742 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.1118/0.1118, allocations: 17.37 MB / 276.6 MB, free: 11.84 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: "" <> buildModelFMU(Chemical.Examples.Diffusion,fileNamePrefix="Chemical_Chemical_Examples_Diffusion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.Diffusion,fileNamePrefix="Chemical_Chemical_Examples_Diffusion",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.164e-06/2.164e-06, allocations: 0 / 411.4 MB, free: 13.23 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.488e-05/2.704e-05, allocations: 2.281 kB / 411.4 MB, free: 13.23 MB / 330.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.0571/0.05713, allocations: 55.12 MB / 466.6 MB, free: 3.207 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0331/0.09023, allocations: 15.57 MB / 482.1 MB, free: 3.586 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01402/0.1043, allocations: 123.5 kB / 482.2 MB, free: 3.465 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009219/0.1135, allocations: 2.517 MB / 484.8 MB, free: 0.9297 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01599/0.1295, allocations: 3.667 MB / 488.4 MB, free: 13.23 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009171/0.1386, allocations: 2.917 MB / 491.3 MB, free: 10.31 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01927/0.1579, allocations: 11.27 MB / 0.4908 GB, free: 14.98 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005899/0.1638, allocations: 2.376 MB / 0.4932 GB, free: 12.52 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01688/0.1807, allocations: 6.83 MB / 0.4998 GB, free: 5.672 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008052/0.1887, allocations: 3.923 MB / 0.5037 GB, free: 1.738 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004337/0.1931, allocations: 1.223 MB / 0.5049 GB, free: 0.5156 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008792/0.2019, allocations: 2.322 MB / 0.5071 GB, free: 14.19 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004969/0.2068, allocations: 3.648 MB / 0.5107 GB, free: 10.53 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01078/0.2176, allocations: 4.107 MB / 0.5147 GB, free: 6.414 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02792/0.2455, allocations: 16.93 MB / 0.5312 GB, free: 5.422 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.528e-06/0.2455, allocations: 0 / 0.5312 GB, free: 5.422 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.2455, allocations: 4 kB / 0.5312 GB, free: 5.418 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009492/0.2465, allocations: 0 / 0.5312 GB, free: 5.418 MB / 442.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.03165/0.2781, allocations: 12.49 MB / 0.5434 GB, free: 8.828 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.084e-05/0.2782, allocations: 8.031 kB / 0.5434 GB, free: 8.82 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005449/0.2836, allocations: 1.705 MB / 0.5451 GB, free: 7.105 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008421/0.2921, allocations: 2.869 MB / 0.5479 GB, free: 4.227 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01054/0.3026, allocations: 5.296 MB / 0.5531 GB, free: 14.85 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002228/0.3048, allocations: 2.005 MB / 0.555 GB, free: 12.71 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003939/0.3088, allocations: 1.14 MB / 0.5561 GB, free: 11.57 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4057/0.7144, allocations: 47.28 MB / 0.6023 GB, free: 132.3 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003079/0.7147, allocations: 0 / 0.6023 GB, free: 132.3 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002275/0.717, allocations: 474.3 kB / 0.6028 GB, free: 131.9 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00183/0.7188, allocations: 1.843 MB / 0.6046 GB, free: 131.5 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05264/0.7715, allocations: 79.21 MB / 0.6819 GB, free: 61.62 MB / 490.8 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3493/1.121, allocations: 108.4 MB / 0.7878 GB, free: 152.4 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01871/1.14, allocations: 19.42 MB / 0.8068 GB, free: 144 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01234/1.152, allocations: 15.6 MB / 0.822 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001238/1.153, allocations: 0.7528 MB / 0.8227 GB, free: 137.1 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.395e-05/1.153, allocations: 91.59 kB / 0.8228 GB, free: 137 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=533): time 7.373e-06/1.153, allocations: 2.422 kB / 0.8228 GB, free: 137 MB / 0.5105 GB Notification: Performance of matching and sorting (n=755): time 0.1947/1.348, allocations: 132.2 MB / 0.9519 GB, free: 10.17 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2431/1.591, allocations: 51.8 MB / 1.002 GB, free: 156.3 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01601/1.607, allocations: 13.71 MB / 1.016 GB, free: 151.4 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.002982/1.61, allocations: 149.2 kB / 1.016 GB, free: 151.2 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.003021/1.613, allocations: 5.422 MB / 1.021 GB, free: 147.9 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.004321/1.617, allocations: 2.607 MB / 1.024 GB, free: 146.8 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004194/1.621, allocations: 2.434 MB / 1.026 GB, free: 146.2 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 2.971e-05/1.621, allocations: 303.1 kB / 1.027 GB, free: 145.9 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01842/1.64, allocations: 23 MB / 1.049 GB, free: 131 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0206/1.66, allocations: 24.07 MB / 1.072 GB, free: 108.1 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4652/2.126, allocations: 111.2 MB / 1.181 GB, free: 159.8 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.728e-05/2.126, allocations: 8.25 kB / 1.181 GB, free: 159.8 MB / 0.5262 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.06076/2.186, allocations: 52.16 MB / 1.232 GB, free: 143 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 3.988e-05/2.187, allocations: 19.94 kB / 1.232 GB, free: 143 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.693e-05/2.187, allocations: 29.19 kB / 1.232 GB, free: 142.9 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02334/2.21, allocations: 13.58 MB / 1.245 GB, free: 132.1 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01649/2.226, allocations: 4.503 MB / 1.25 GB, free: 128 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04539/2.272, allocations: 74.46 MB / 1.322 GB, free: 51.98 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01082/2.283, allocations: 0.6918 MB / 1.323 GB, free: 51.29 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003262/2.286, allocations: 1.729 MB / 1.325 GB, free: 49.57 MB / 0.5262 GB 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.008226/2.294, allocations: 2.761 MB / 1.327 GB, free: 46.83 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003362/2.297, allocations: 1.191 MB / 1.329 GB, free: 45.63 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.044/2.341, allocations: 31.36 MB / 1.359 GB, free: 14.3 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02684/2.368, allocations: 18.18 MB / 1.377 GB, free: 12.14 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.283e-05/2.368, allocations: 12 kB / 1.377 GB, free: 12.13 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001754/2.369, allocations: 35.86 kB / 1.377 GB, free: 12.1 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3094/2.678, allocations: 62.16 MB / 1.438 GB, free: 149.3 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-05/2.678, allocations: 29.84 kB / 1.438 GB, free: 149.3 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007031/2.685, allocations: 1.975 MB / 1.44 GB, free: 149.2 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01736/2.702, allocations: 7.213 MB / 1.447 GB, free: 147.1 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0012/2.704, allocations: 303 kB / 1.447 GB, free: 146.8 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03598/2.74, allocations: 50.47 MB / 1.496 GB, free: 98.04 MB / 0.5418 GB 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.00864/2.748, allocations: 11.44 MB / 1.508 GB, free: 86.72 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03472/2.783, allocations: 27.37 MB / 1.534 GB, free: 60.87 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003933/2.787, allocations: 1.808 MB / 1.536 GB, free: 59.05 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001453/2.788, allocations: 185 kB / 1.536 GB, free: 58.88 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003473/2.792, allocations: 394 kB / 1.537 GB, free: 58.5 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00179/2.794, allocations: 0.8838 MB / 1.537 GB, free: 57.62 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005707/2.794, allocations: 483.7 kB / 1.538 GB, free: 57.14 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.0129/2.807, allocations: 13.82 MB / 1.551 GB, free: 43.37 MB / 0.5418 GB Notification: Performance of sort global known variables: time 1.8e-07/2.807, allocations: 0 / 1.551 GB, free: 43.37 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01559/2.823, allocations: 4.107 MB / 1.555 GB, free: 39.29 MB / 0.5418 GB 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.04181/2.864, allocations: 26.74 MB / 1.582 GB, free: 11.82 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.2466/3.111, allocations: 29.82 MB / 1.611 GB, free: 166.9 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 4.961e-05/3.111, allocations: 7.969 kB / 1.611 GB, free: 166.9 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.01816/3.129, allocations: 10.12 MB / 1.621 GB, free: 161.8 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0262/3.155, allocations: 2.79 MB / 1.623 GB, free: 160.9 MB / 0.5418 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4676:9-4676:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:836:5-836: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.310072312131524] Failed to read output from testmodel.py, exit status != 0: 3.372531800530851 3.177043602 2.928923824 Calling exit ...