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.00128/0.00128, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 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.001489/0.001489, allocations: 169 kB / 23.02 MB, free: 1.551 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.074/1.074, allocations: 177.1 MB / 203.4 MB, free: 5.578 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.1409/0.1409, allocations: 17.38 MB / 277.3 MB, free: 11.62 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.044e-06/2.044e-06, allocations: 0 / 353.4 MB, free: 9.973 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.489e-05/3.693e-05, allocations: 3.859 kB / 353.4 MB, free: 9.969 MB / 282.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.3758/0.3758, allocations: 63.42 MB / 416.8 MB, free: 14.12 MB / 330.8 MB Notification: Performance of NFInst.instExpressions: time 0.0264/0.4022, allocations: 16.54 MB / 433.4 MB, free: 12.04 MB / 330.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009282/0.4115, allocations: 125.4 kB / 433.5 MB, free: 12.01 MB / 330.8 MB Notification: Performance of NFTyping.typeComponents: time 0.006157/0.4177, allocations: 2.518 MB / 436 MB, free: 10.89 MB / 330.8 MB Notification: Performance of NFTyping.typeBindings: time 0.009403/0.4271, allocations: 3.667 MB / 439.7 MB, free: 8.539 MB / 330.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.006233/0.4333, allocations: 2.919 MB / 442.6 MB, free: 6.336 MB / 330.8 MB Notification: Performance of NFFlatten.flatten: time 0.01278/0.4461, allocations: 11.29 MB / 453.9 MB, free: 15.46 MB / 346.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003306/0.4494, allocations: 2.376 MB / 456.3 MB, free: 14.2 MB / 346.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008243/0.4577, allocations: 6.852 MB / 463.1 MB, free: 9.855 MB / 346.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005009/0.4627, allocations: 3.955 MB / 467.1 MB, free: 7.645 MB / 346.8 MB Notification: Performance of NFPackage.collectConstants: time 0.002289/0.4649, allocations: 1.216 MB / 468.3 MB, free: 7.645 MB / 346.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004719/0.4697, allocations: 2.325 MB / 470.6 MB, free: 7.242 MB / 346.8 MB Notification: Performance of NFScalarize.scalarize: time 0.001891/0.4716, allocations: 3.63 MB / 474.3 MB, free: 4.68 MB / 346.8 MB Notification: Performance of NFVerifyModel.verify: time 0.005878/0.4774, allocations: 4.108 MB / 478.4 MB, free: 2.387 MB / 346.8 MB Notification: Performance of NFConvertDAE.convert: time 0.01529/0.4927, allocations: 11.62 MB / 490 MB, free: 9.828 MB / 362.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.4927, allocations: 4 kB / 490 MB, free: 9.824 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4927, allocations: 0 / 490 MB, free: 9.824 MB / 362.8 MB Notification: Performance of Transformations before backend: time 0.000615/0.4934, allocations: 4 kB / 490 MB, free: 9.82 MB / 362.8 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.01661/0.51, allocations: 13.42 MB / 0.4916 GB, free: 12.4 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.797e-05/0.51, allocations: 8.031 kB / 0.4916 GB, free: 12.39 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006926/0.5169, allocations: 5.648 MB / 0.4971 GB, free: 6.777 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006996/0.5239, allocations: 4.796 MB / 0.5018 GB, free: 2 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001668/0.5256, allocations: 1.998 MB / 0.5038 GB, free: 15.89 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001173/0.5268, allocations: 1.131 MB / 0.5049 GB, free: 14.79 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02174/0.5485, allocations: 16.66 MB / 0.5212 GB, free: 14.12 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001457/0.5487, allocations: 0 / 0.5212 GB, free: 14.12 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006951/0.5494, allocations: 467.6 kB / 0.5216 GB, free: 13.69 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001521/0.5509, allocations: 1.847 MB / 0.5234 GB, free: 11.83 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02644/0.5773, allocations: 20.88 MB / 0.5438 GB, free: 6.879 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3071/0.8844, allocations: 61.31 MB / 0.6037 GB, free: 94.43 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01106/0.8954, allocations: 3.753 MB / 0.6073 GB, free: 93.59 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007375/0.9028, allocations: 2.059 MB / 0.6093 GB, free: 93.23 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001801/0.9046, allocations: 0.7556 MB / 0.6101 GB, free: 93.03 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.566e-05/0.9047, allocations: 110.5 kB / 0.6102 GB, free: 92.94 MB / 442.8 MB Notification: Performance of pre-optimization done (n=533): time 1.086e-05/0.9047, allocations: 0 / 0.6102 GB, free: 92.94 MB / 442.8 MB Notification: Performance of matching and sorting (n=755): time 0.2002/1.105, allocations: 55.69 MB / 0.6646 GB, free: 40.5 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03383/1.139, allocations: 33.06 MB / 0.6969 GB, free: 6.117 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004488/1.143, allocations: 3.996 MB / 0.7008 GB, free: 2.125 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00242/1.146, allocations: 149.7 kB / 0.7009 GB, free: 1.973 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002561/1.148, allocations: 5.688 MB / 0.7065 GB, free: 13.1 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004136/1.152, allocations: 2.621 MB / 0.709 GB, free: 10.57 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005514/1.158, allocations: 2.296 MB / 0.7113 GB, free: 8.262 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 9.453e-05/1.158, allocations: 480.7 kB / 0.7117 GB, free: 7.789 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00794/1.166, allocations: 3.426 MB / 0.7151 GB, free: 4.359 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01022/1.176, allocations: 4.807 MB / 0.7198 GB, free: 15.11 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02463/1.201, allocations: 12.11 MB / 0.7316 GB, free: 2.656 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.335e-05/1.201, allocations: 8 kB / 0.7316 GB, free: 2.648 MB / 474.8 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.3025/1.503, allocations: 13.48 MB / 0.7448 GB, free: 118.9 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.914e-05/1.503, allocations: 13.25 kB / 0.7448 GB, free: 118.9 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.677e-05/1.503, allocations: 26.19 kB / 0.7448 GB, free: 118.9 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02621/1.53, allocations: 10.86 MB / 0.7554 GB, free: 118.6 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01724/1.547, allocations: 4.459 MB / 0.7597 GB, free: 118.6 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03263/1.579, allocations: 51.82 MB / 0.8104 GB, free: 78.95 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008905/1.588, allocations: 0.6516 MB / 0.811 GB, free: 78.95 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003814/1.592, allocations: 1.718 MB / 0.8127 GB, free: 78.09 MB / 474.8 MB 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.007018/1.599, allocations: 0.5606 MB / 0.8132 GB, free: 77.86 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004213/1.603, allocations: 0.8556 MB / 0.8141 GB, free: 77.13 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03681/1.64, allocations: 19.03 MB / 0.8326 GB, free: 60.32 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02002/1.66, allocations: 8.254 MB / 0.8407 GB, free: 52.14 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.232e-05/1.66, allocations: 8 kB / 0.8407 GB, free: 52.13 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001685/1.66, allocations: 35.86 kB / 0.8407 GB, free: 52.09 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05534/1.716, allocations: 32.28 MB / 0.8723 GB, free: 19.57 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.955e-05/1.716, allocations: 32 kB / 0.8723 GB, free: 19.54 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0069/1.723, allocations: 1.937 MB / 0.8742 GB, free: 17.69 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0232/1.746, allocations: 7.252 MB / 0.8813 GB, free: 10.5 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001477/1.747, allocations: 307.8 kB / 0.8816 GB, free: 10.2 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2406/1.988, allocations: 51.52 MB / 0.9319 GB, free: 97.3 MB / 490.8 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.009965/1.998, allocations: 13.74 MB / 0.9453 GB, free: 85.75 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02667/2.025, allocations: 13.52 MB / 0.9585 GB, free: 81.63 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002273/2.027, allocations: 0.7786 MB / 0.9593 GB, free: 81.63 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00206/2.029, allocations: 196.5 kB / 0.9594 GB, free: 81.63 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004424/2.033, allocations: 358.6 kB / 0.9598 GB, free: 81.63 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002186/2.035, allocations: 0.8115 MB / 0.9606 GB, free: 81.6 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006917/2.036, allocations: 479.2 kB / 0.961 GB, free: 81.6 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.005166/2.041, allocations: 4.004 MB / 0.9649 GB, free: 81.38 MB / 490.8 MB Notification: Performance of sort global known variables: time 2e-07/2.041, allocations: 0 / 0.9649 GB, free: 81.38 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01457/2.056, allocations: 3.982 MB / 0.9688 GB, free: 81.38 MB / 490.8 MB 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.002461/2.058, allocations: 0.6104 MB / 0.9694 GB, free: 81.29 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01932/2.078, allocations: 11.2 MB / 0.9804 GB, free: 77.64 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 2.643e-05/2.078, allocations: 9.281 kB / 0.9804 GB, free: 77.64 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01033/2.088, allocations: 7.998 MB / 0.9882 GB, free: 71.88 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007029/2.095, allocations: 1.93 MB / 0.9901 GB, free: 70.94 MB / 490.8 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4759:9-4759:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:856:5-856:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 658] [Calling sys.exit(0), Time elapsed: 4.0388932269997895]