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.001004/0.001004, allocations: 84.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.0009902/0.0009902, 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 0.9624/0.9624, 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.08931/0.08931, allocations: 17.38 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: setCommandLineOptions("--fmiFlags=s:cvode") Running command: "" <> buildModelFMU(Chemical.Examples.Diffusion,fileNamePrefix="Chemical_Chemical_Examples_Diffusion",fmuType="me_cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.Diffusion,fileNamePrefix="Chemical_Chemical_Examples_Diffusion",fmuType="me_cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 3.938 kB / 413 MB, free: 14.84 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.336e-05/2.508e-05, allocations: 3.828 kB / 413 MB, free: 14.84 MB / 394.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.2737/0.2737, allocations: 64.05 MB / 477.1 MB, free: 37.47 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.02398/0.2977, allocations: 15.57 MB / 492.6 MB, free: 32.95 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007819/0.3055, allocations: 124.5 kB / 492.8 MB, free: 32.92 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007391/0.3129, allocations: 2.51 MB / 495.3 MB, free: 31.86 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01118/0.3241, allocations: 3.683 MB / 498.9 MB, free: 29.95 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00835/0.3324, allocations: 2.905 MB / 0.4901 GB, free: 28.38 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0125/0.3449, allocations: 11.28 MB / 0.5011 GB, free: 20.17 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00319/0.3481, allocations: 2.376 MB / 0.5034 GB, free: 17.99 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01103/0.3591, allocations: 6.837 MB / 0.5101 GB, free: 12.36 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00765/0.3668, allocations: 3.919 MB / 0.5139 GB, free: 9.34 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003876/0.3707, allocations: 1.223 MB / 0.5151 GB, free: 8.117 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007607/0.3783, allocations: 2.315 MB / 0.5174 GB, free: 5.973 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004374/0.3827, allocations: 3.646 MB / 0.5209 GB, free: 2.824 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0101/0.3928, allocations: 4.116 MB / 0.525 GB, free: 15.06 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02529/0.418, allocations: 16.93 MB / 0.5415 GB, free: 15.59 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.4181, allocations: 0 / 0.5415 GB, free: 15.59 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4181, allocations: 0 / 0.5415 GB, free: 15.59 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007318/0.4188, allocations: 0 / 0.5415 GB, free: 15.59 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.02831/0.4471, allocations: 12.49 MB / 0.5537 GB, free: 3 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.319e-05/0.4472, allocations: 15.97 kB / 0.5537 GB, free: 2.984 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004434/0.4516, allocations: 1.705 MB / 0.5554 GB, free: 1.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008264/0.4599, allocations: 2.865 MB / 0.5582 GB, free: 14.39 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01003/0.4699, allocations: 5.296 MB / 0.5633 GB, free: 9.023 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001901/0.4718, allocations: 2.005 MB / 0.5653 GB, free: 6.883 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002963/0.4747, allocations: 1.133 MB / 0.5664 GB, free: 5.75 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04841/0.5232, allocations: 47.3 MB / 0.6126 GB, free: 6.375 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001537/0.5233, allocations: 0 / 0.6126 GB, free: 6.375 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001368/0.5247, allocations: 463.9 kB / 0.613 GB, free: 5.922 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001204/0.5259, allocations: 1.843 MB / 0.6148 GB, free: 4.066 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3907/0.9166, allocations: 79.19 MB / 0.6922 GB, free: 126.2 MB / 0.5105 GB 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.1017/1.018, allocations: 108.4 MB / 0.7981 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01615/1.034, allocations: 19.41 MB / 0.817 GB, free: 6.754 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01452/1.049, allocations: 15.6 MB / 0.8323 GB, free: 7.164 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001834/1.051, allocations: 0.7541 MB / 0.833 GB, free: 6.414 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.72e-05/1.051, allocations: 95.81 kB / 0.8331 GB, free: 6.312 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=533): time 6.493e-06/1.051, allocations: 0 / 0.8331 GB, free: 6.312 MB / 0.5262 GB Notification: Performance of matching and sorting (n=755): time 0.4136/1.464, allocations: 132.1 MB / 0.9621 GB, free: 81.83 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.05213/1.517, allocations: 51.81 MB / 1.013 GB, free: 28.76 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01625/1.533, allocations: 13.71 MB / 1.026 GB, free: 15.12 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.00279/1.536, allocations: 152.4 kB / 1.026 GB, free: 14.97 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.003235/1.539, allocations: 5.421 MB / 1.032 GB, free: 9.828 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.00462/1.543, allocations: 2.609 MB / 1.034 GB, free: 7.457 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007418/1.551, allocations: 2.431 MB / 1.036 GB, free: 5.02 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 2.541e-05/1.551, allocations: 305.1 kB / 1.037 GB, free: 4.719 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1842/1.735, allocations: 23 MB / 1.059 GB, free: 143 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02193/1.757, allocations: 24.07 MB / 1.083 GB, free: 132.3 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2642/2.021, allocations: 111.2 MB / 1.191 GB, free: 46.48 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.504e-05/2.021, allocations: 4 kB / 1.191 GB, free: 46.47 MB / 0.5262 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.2715/2.293, allocations: 52.17 MB / 1.242 GB, free: 138.4 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 4.634e-05/2.293, allocations: 19.36 kB / 1.242 GB, free: 138.4 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.637e-05/2.293, allocations: 22.5 kB / 1.242 GB, free: 138.4 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03139/2.324, allocations: 13.58 MB / 1.256 GB, free: 138.1 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02078/2.345, allocations: 4.491 MB / 1.26 GB, free: 137.9 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05031/2.395, allocations: 74.48 MB / 1.333 GB, free: 90.33 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009805/2.405, allocations: 0.6977 MB / 1.333 GB, free: 90.22 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003348/2.409, allocations: 1.718 MB / 1.335 GB, free: 89.91 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.008698/2.417, allocations: 2.763 MB / 1.338 GB, free: 88.36 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003172/2.42, allocations: 1.194 MB / 1.339 GB, free: 88.36 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05071/2.471, allocations: 31.36 MB / 1.37 GB, free: 61.82 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03302/2.504, allocations: 18.17 MB / 1.387 GB, free: 43.68 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.572e-05/2.504, allocations: 11.94 kB / 1.387 GB, free: 43.66 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001959/2.504, allocations: 35.86 kB / 1.387 GB, free: 43.63 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2603/2.765, allocations: 62.16 MB / 1.448 GB, free: 144.7 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.475e-05/2.765, allocations: 33.83 kB / 1.448 GB, free: 144.7 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008123/2.773, allocations: 1.966 MB / 1.45 GB, free: 144.7 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01852/2.792, allocations: 7.224 MB / 1.457 GB, free: 144.5 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001606/2.793, allocations: 304.8 kB / 1.457 GB, free: 144.5 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04205/2.835, allocations: 50.45 MB / 1.507 GB, free: 111.2 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.01296/2.848, allocations: 11.44 MB / 1.518 GB, free: 101.7 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04731/2.895, allocations: 27.37 MB / 1.544 GB, free: 89.22 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004217/2.9, allocations: 1.816 MB / 1.546 GB, free: 88.65 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00397/2.904, allocations: 189.2 kB / 1.546 GB, free: 88.55 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006712/2.91, allocations: 396.7 kB / 1.547 GB, free: 88.46 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002556/2.913, allocations: 0.8782 MB / 1.548 GB, free: 88.27 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006162/2.914, allocations: 478.1 kB / 1.548 GB, free: 88.18 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.01893/2.932, allocations: 13.82 MB / 1.562 GB, free: 82.27 MB / 0.5418 GB Notification: Performance of sort global known variables: time 2.01e-07/2.932, allocations: 0 / 1.562 GB, free: 82.27 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01505/2.948, allocations: 4.104 MB / 1.566 GB, free: 79.3 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.04102/2.989, allocations: 26.73 MB / 1.592 GB, free: 54.68 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.03185/3.02, allocations: 29.84 MB / 1.621 GB, free: 25 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-05/3.02, allocations: 4 kB / 1.621 GB, free: 25 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.01339/3.034, allocations: 10.13 MB / 1.631 GB, free: 14.68 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01437/3.048, allocations: 2.792 MB / 1.634 GB, free: 12.28 MB / 0.5418 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4683:9-4683:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:843:5-843: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: 4.910597762092948]