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.0007527/0.0007527, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007838/0.0007838, allocations: 177.9 kB / 23.21 MB, free: 1.348 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.8718/0.8718, allocations: 177.1 MB / 203.5 MB, free: 5.73 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.09212/0.09212, allocations: 17.37 MB / 277.3 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: 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 1.403e-06/1.403e-06, allocations: 0 / 412.7 MB, free: 15.93 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.583e-05/2.723e-05, allocations: 6.281 kB / 412.7 MB, free: 15.92 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.2287/0.2288, allocations: 55.1 MB / 467.8 MB, free: 39.12 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.02144/0.2502, allocations: 15.56 MB / 483.4 MB, free: 34.77 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007495/0.2577, allocations: 125.7 kB / 483.5 MB, free: 34.73 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006842/0.2645, allocations: 2.518 MB / 486 MB, free: 33.68 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01157/0.2761, allocations: 3.673 MB / 489.7 MB, free: 31.8 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007875/0.284, allocations: 2.91 MB / 492.6 MB, free: 30.35 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.01556/0.2996, allocations: 11.28 MB / 0.4921 GB, free: 24.46 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003262/0.3028, allocations: 2.379 MB / 0.4944 GB, free: 23.48 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01186/0.3147, allocations: 6.835 MB / 0.5011 GB, free: 20.36 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008075/0.3227, allocations: 3.917 MB / 0.5049 GB, free: 18.54 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003242/0.326, allocations: 1.227 MB / 0.5061 GB, free: 17.31 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007566/0.3336, allocations: 2.317 MB / 0.5083 GB, free: 15.18 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003717/0.3373, allocations: 3.647 MB / 0.5119 GB, free: 12.03 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009069/0.3463, allocations: 4.112 MB / 0.5159 GB, free: 8.266 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01826/0.3646, allocations: 16.93 MB / 0.5325 GB, free: 9.141 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3646, allocations: 0 / 0.5325 GB, free: 9.141 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.532e-06/0.3646, allocations: 4 kB / 0.5325 GB, free: 9.137 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005011/0.3651, allocations: 0 / 0.5325 GB, free: 9.137 MB / 426.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.01798/0.3831, allocations: 12.5 MB / 0.5447 GB, free: 12.53 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.3831, allocations: 8.031 kB / 0.5447 GB, free: 12.52 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004975/0.3881, allocations: 2.869 MB / 0.5475 GB, free: 9.645 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007391/0.3955, allocations: 5.288 MB / 0.5526 GB, free: 4.281 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001359/0.3968, allocations: 2.012 MB / 0.5546 GB, free: 2.133 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00167/0.3985, allocations: 1.133 MB / 0.5557 GB, free: 1 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04046/0.439, allocations: 47.28 MB / 0.6019 GB, free: 1.641 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001349/0.4391, allocations: 7.938 kB / 0.6019 GB, free: 1.633 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006893/0.4398, allocations: 467.9 kB / 0.6023 GB, free: 1.176 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001159/0.441, allocations: 1.835 MB / 0.6041 GB, free: 15.33 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3228/0.7638, allocations: 79.2 MB / 0.6815 GB, free: 137.6 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.08497/0.8487, allocations: 103.6 MB / 0.7826 GB, free: 43.39 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0151/0.8638, allocations: 19.42 MB / 0.8016 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01203/0.8758, allocations: 15.6 MB / 0.8168 GB, free: 8.371 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001342/0.8772, allocations: 0.7485 MB / 0.8176 GB, free: 7.621 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.8772, allocations: 97.81 kB / 0.8177 GB, free: 7.52 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=533): time 6.924e-06/0.8772, allocations: 2.719 kB / 0.8177 GB, free: 7.52 MB / 0.5105 GB Notification: Performance of matching and sorting (n=755): time 0.3691/1.246, allocations: 131.6 MB / 0.9462 GB, free: 101.6 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.04341/1.29, allocations: 51.56 MB / 0.9965 GB, free: 48.94 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004962/1.295, allocations: 4.75 MB / 1.001 GB, free: 44.21 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.002874/1.298, allocations: 147.4 kB / 1.001 GB, free: 44.06 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.001674/1.299, allocations: 5.416 MB / 1.007 GB, free: 39.41 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.003892/1.303, allocations: 2.609 MB / 1.009 GB, free: 36.84 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005081/1.308, allocations: 2.475 MB / 1.012 GB, free: 34.36 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 2.146e-05/1.308, allocations: 305.1 kB / 1.012 GB, free: 34.06 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01746/1.326, allocations: 23 MB / 1.034 GB, free: 11.08 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1944/1.52, allocations: 24.06 MB / 1.058 GB, free: 146.7 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2615/1.782, allocations: 111.2 MB / 1.166 GB, free: 77.66 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.106e-05/1.782, allocations: 8 kB / 1.166 GB, free: 77.66 MB / 0.5262 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.05051/1.832, allocations: 51.58 MB / 1.217 GB, free: 26.63 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 4.048e-05/1.832, allocations: 16 kB / 1.217 GB, free: 26.61 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.292e-05/1.832, allocations: 27.94 kB / 1.217 GB, free: 26.59 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02258/1.855, allocations: 13.58 MB / 1.23 GB, free: 13.04 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01557/1.87, allocations: 4.494 MB / 1.234 GB, free: 8.539 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2318/2.102, allocations: 74.05 MB / 1.307 GB, free: 103.7 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008609/2.111, allocations: 0.6978 MB / 1.307 GB, free: 103.6 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003164/2.114, allocations: 1.722 MB / 1.309 GB, free: 103.3 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.008192/2.122, allocations: 2.753 MB / 1.312 GB, free: 101.7 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002481/2.125, allocations: 0.61 MB / 1.312 GB, free: 101.7 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04229/2.167, allocations: 30.82 MB / 1.343 GB, free: 89.73 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02406/2.191, allocations: 18.17 MB / 1.36 GB, free: 74.49 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.32e-05/2.191, allocations: 11.94 kB / 1.36 GB, free: 74.48 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001205/2.191, allocations: 39.86 kB / 1.36 GB, free: 74.48 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06181/2.253, allocations: 64.63 MB / 1.423 GB, free: 11.24 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-05/2.253, allocations: 32 kB / 1.423 GB, free: 11.21 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007434/2.261, allocations: 1.967 MB / 1.425 GB, free: 9.266 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01737/2.278, allocations: 7.221 MB / 1.432 GB, free: 2.113 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001529/2.279, allocations: 303.7 kB / 1.433 GB, free: 1.816 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2363/2.516, allocations: 49.96 MB / 1.481 GB, free: 132.1 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.008441/2.524, allocations: 11.33 MB / 1.493 GB, free: 122.9 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03638/2.561, allocations: 26.75 MB / 1.519 GB, free: 110.5 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00193/2.563, allocations: 0.7967 MB / 1.519 GB, free: 110.3 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002016/2.565, allocations: 195 kB / 1.52 GB, free: 110.2 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00392/2.568, allocations: 397.2 kB / 1.52 GB, free: 110.1 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001895/2.57, allocations: 0.8707 MB / 1.521 GB, free: 109.9 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007038/2.571, allocations: 487.2 kB / 1.521 GB, free: 109.8 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.007102/2.578, allocations: 7.449 MB / 1.529 GB, free: 106.3 MB / 0.5418 GB Notification: Performance of sort global known variables: time 2.01e-07/2.578, allocations: 0 / 1.529 GB, free: 106.3 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01213/2.59, allocations: 3.983 MB / 1.533 GB, free: 106.1 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.001705/2.592, allocations: 0.6133 MB / 1.533 GB, free: 105.8 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.02653/2.619, allocations: 29.83 MB / 1.562 GB, free: 84.82 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 2.658e-05/2.619, allocations: 4 kB / 1.562 GB, free: 84.82 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.01167/2.63, allocations: 10.13 MB / 1.572 GB, free: 75.56 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00635/2.637, allocations: 1.52 MB / 1.574 GB, free: 74.41 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: 4.308546374551952] Failed to read output from testmodel.py, exit status != 0: 2.643318415619433 2.64950808 2.283386332 Calling exit ...