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.001273/0.001273, allocations: 112.4 kB / 17.13 MB, free: 6.008 MB / 14.72 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.001362/0.001362, allocations: 211.2 kB / 20.1 MB, free: 3.055 MB / 14.72 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.539/1.539, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 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.1742/0.1742, allocations: 23.87 MB / 333.4 MB, free: 1.273 MB / 254.1 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: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002031/0.002031, allocations: 64.66 kB / 467.1 MB, free: 30.48 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1429, allocations: 59.84 MB / 0.5146 GB, free: 12.44 MB / 382.1 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.08828/0.2311, allocations: 61.43 MB / 0.5746 GB, free: 14.9 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4/0.6311, allocations: 16.86 MB / 0.5911 GB, free: 17.8 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01333/0.6445, allocations: 127.1 kB / 0.5912 GB, free: 17.8 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009657/0.6541, allocations: 2.641 MB / 0.5938 GB, free: 17.75 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01437/0.6685, allocations: 3.522 MB / 0.5972 GB, free: 17.73 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009686/0.6782, allocations: 2.885 MB / 0.6 GB, free: 17.69 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.02164/0.6998, allocations: 10.88 MB / 0.6107 GB, free: 15.4 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005653/0.7055, allocations: 2.694 MB / 0.6133 GB, free: 14.33 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01025/0.7157, allocations: 4.489 MB / 0.6177 GB, free: 12.08 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009722/0.7254, allocations: 5.386 MB / 0.623 GB, free: 8.672 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004082/0.7295, allocations: 1.225 MB / 0.6241 GB, free: 8.672 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01005/0.7396, allocations: 2.906 MB / 0.627 GB, free: 7.879 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004619/0.7442, allocations: 3.592 MB / 0.6305 GB, free: 5.211 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01211/0.7563, allocations: 6.615 MB / 0.637 GB, free: 220 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03034/0.7866, allocations: 17.08 MB / 0.6536 GB, free: 15.9 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.7866, allocations: 0 / 0.6536 GB, free: 15.9 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.7866, allocations: 0 / 0.6536 GB, free: 15.9 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0007991/0.7874, allocations: 0 / 0.6536 GB, free: 15.9 MB / 478.1 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.0331/0.8205, allocations: 12.71 MB / 0.666 GB, free: 3.227 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.8206, allocations: 18.62 kB / 0.6661 GB, free: 3.211 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009057/0.8297, allocations: 2.389 MB / 0.6684 GB, free: 0.832 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01356/0.8432, allocations: 5.366 MB / 0.6736 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002922/0.8461, allocations: 1.685 MB / 0.6753 GB, free: 9.758 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004317/0.8505, allocations: 1.136 MB / 0.6764 GB, free: 8.645 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07694/0.9274, allocations: 45.18 MB / 0.7205 GB, free: 11.62 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004157/0.9278, allocations: 0 / 0.7205 GB, free: 11.62 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00294/0.9307, allocations: 467 kB / 0.7209 GB, free: 11.19 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002278/0.933, allocations: 1.835 MB / 0.7227 GB, free: 9.344 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09773/1.031, allocations: 75.81 MB / 0.7968 GB, free: 13.7 MB / 0.6075 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.7603/1.791, allocations: 111.7 MB / 0.9058 GB, free: 174.5 MB / 0.6232 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02286/1.814, allocations: 19.23 MB / 0.9246 GB, free: 155.2 MB / 0.6232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01686/1.831, allocations: 15.24 MB / 0.9395 GB, free: 140 MB / 0.6232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005343/1.836, allocations: 2.529 MB / 0.9419 GB, free: 137.2 MB / 0.6232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001239/1.836, allocations: 90.5 kB / 0.942 GB, free: 137.1 MB / 0.6232 GB Notification: Performance of pre-optimization done (n=533): time 7.684e-06/1.836, allocations: 0 / 0.942 GB, free: 137.1 MB / 0.6232 GB Notification: Performance of matching and sorting (n=755): time 0.3738/2.21, allocations: 132.1 MB / 1.071 GB, free: 5.625 MB / 0.6232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.4063/2.616, allocations: 53.01 MB / 1.123 GB, free: 191.3 MB / 0.6232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02454/2.641, allocations: 13.68 MB / 1.136 GB, free: 186.3 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.003668/2.644, allocations: 147 kB / 1.136 GB, free: 186.2 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.006053/2.651, allocations: 5.432 MB / 1.142 GB, free: 182.9 MB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.005926/2.656, allocations: 2.641 MB / 1.144 GB, free: 181.2 MB / 0.6232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01277/2.669, allocations: 2.43 MB / 1.147 GB, free: 180.6 MB / 0.6232 GB Notification: Performance of setup shared object (initialization): time 5.57e-05/2.669, allocations: 303.6 kB / 1.147 GB, free: 180.3 MB / 0.6232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02715/2.696, allocations: 22.43 MB / 1.169 GB, free: 158.9 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02812/2.725, allocations: 23.49 MB / 1.192 GB, free: 135.1 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5768/3.301, allocations: 116.3 MB / 1.305 GB, free: 19.17 MB / 0.6232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.091e-05/3.301, allocations: 8 kB / 1.305 GB, free: 19.16 MB / 0.6232 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.4918/3.793, allocations: 51.08 MB / 1.355 GB, free: 198.1 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 5.272e-05/3.793, allocations: 15.03 kB / 1.355 GB, free: 198.1 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.013e-05/3.793, allocations: 25.44 kB / 1.355 GB, free: 198.1 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0473/3.841, allocations: 13.26 MB / 1.368 GB, free: 194 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03316/3.874, allocations: 4.42 MB / 1.373 GB, free: 193.8 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07695/3.951, allocations: 76.26 MB / 1.447 GB, free: 120.3 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01734/3.968, allocations: 0.6228 MB / 1.448 GB, free: 119.6 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005303/3.973, allocations: 1.721 MB / 1.449 GB, free: 117.9 MB / 0.6232 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.01319/3.987, allocations: 2.746 MB / 1.452 GB, free: 115.2 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00723/3.994, allocations: 1.197 MB / 1.453 GB, free: 114 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07684/4.071, allocations: 30.94 MB / 1.483 GB, free: 83.11 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04381/4.114, allocations: 17.94 MB / 1.501 GB, free: 65.19 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001044/4.115, allocations: 12 kB / 1.501 GB, free: 65.18 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003117/4.115, allocations: 35.86 kB / 1.501 GB, free: 65.14 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4225/4.537, allocations: 65.28 MB / 1.565 GB, free: 186.9 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001685/4.538, allocations: 35.97 kB / 1.565 GB, free: 186.9 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0157/4.553, allocations: 1.894 MB / 1.567 GB, free: 186.9 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03864/4.592, allocations: 7.188 MB / 1.574 GB, free: 186.7 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002193/4.594, allocations: 297.4 kB / 1.574 GB, free: 186.7 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07757/4.672, allocations: 53.71 MB / 1.626 GB, free: 151.3 MB / 0.6232 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.02637/4.698, allocations: 12.17 MB / 1.638 GB, free: 141.1 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0714/4.769, allocations: 26.76 MB / 1.664 GB, free: 128.6 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006051/4.775, allocations: 1.877 MB / 1.666 GB, free: 127.4 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006399/4.782, allocations: 196.1 kB / 1.666 GB, free: 127.3 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01107/4.793, allocations: 324.4 kB / 1.667 GB, free: 127.2 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003692/4.797, allocations: 0.8462 MB / 1.667 GB, free: 127 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001846/4.798, allocations: 473.3 kB / 1.668 GB, free: 126.9 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.02433/4.823, allocations: 13.82 MB / 1.681 GB, free: 118 MB / 0.6232 GB Notification: Performance of sort global known variables: time 6.41e-07/4.823, allocations: 0 / 1.681 GB, free: 118 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.0195/4.842, allocations: 4.139 MB / 1.685 GB, free: 113.9 MB / 0.6232 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.002832/4.845, allocations: 0.6538 MB / 1.686 GB, free: 113.4 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.04098/4.886, allocations: 29.07 MB / 1.715 GB, free: 84.71 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 3.561e-05/4.886, allocations: 4 kB / 1.715 GB, free: 84.71 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.02005/4.906, allocations: 9.947 MB / 1.724 GB, free: 74.56 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02063/4.927, allocations: 2.792 MB / 1.727 GB, free: 71.99 MB / 0.6232 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4705:9-4705:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:818:5-818:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 655] [Calling sys.exit(0), Time elapsed: 7.777943734981818] Failed to read output from testmodel.py, exit status != 0: 4.937093321990687 4.945433652 4.156356673 Calling exit ...