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.000963/0.000963, allocations: 73.88 kB / 20.66 MB, free: 3.848 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.0009378/0.0009378, allocations: 173 kB / 24.06 MB, free: 456 kB / 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.002/1.002, allocations: 177.1 MB / 204.5 MB, free: 5.504 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.1046/0.1046, allocations: 17.37 MB / 278.4 MB, free: 11.5 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.283e-06/1.283e-06, allocations: 0 / 354.7 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.358e-05/2.487e-05, allocations: 2.312 kB / 354.7 MB, free: 10.75 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.0557/0.05572, allocations: 62.49 MB / 417.2 MB, free: 12.23 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.0327/0.08843, allocations: 16.38 MB / 433.5 MB, free: 11.78 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009437/0.09786, allocations: 127.4 kB / 433.7 MB, free: 11.66 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008463/0.1063, allocations: 2.509 MB / 436.2 MB, free: 9.129 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01297/0.1193, allocations: 3.679 MB / 439.9 MB, free: 5.422 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008173/0.1275, allocations: 2.905 MB / 442.8 MB, free: 2.508 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.1857/0.3132, allocations: 11.3 MB / 454.1 MB, free: 66.29 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004698/0.3179, allocations: 2.369 MB / 456.4 MB, free: 65.85 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01746/0.3353, allocations: 6.852 MB / 463.3 MB, free: 65.3 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008645/0.344, allocations: 3.953 MB / 467.2 MB, free: 64.54 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004052/0.348, allocations: 1.218 MB / 468.5 MB, free: 64.54 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008928/0.3569, allocations: 2.317 MB / 470.8 MB, free: 64.39 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004644/0.3616, allocations: 3.636 MB / 474.4 MB, free: 62.33 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009511/0.3711, allocations: 4.107 MB / 478.5 MB, free: 60.4 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02091/0.392, allocations: 11.62 MB / 490.1 MB, free: 55.2 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.392, allocations: 4.031 kB / 490.1 MB, free: 55.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.392, allocations: 0 / 490.1 MB, free: 55.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007081/0.3927, allocations: 3.969 kB / 490.1 MB, free: 55.2 MB / 410.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.02383/0.4166, allocations: 13.49 MB / 0.4918 GB, free: 48.1 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.4166, allocations: 8.969 kB / 0.4918 GB, free: 48.1 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01176/0.4284, allocations: 5.653 MB / 0.4974 GB, free: 45.83 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009538/0.4379, allocations: 4.646 MB / 0.5019 GB, free: 43.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002183/0.4401, allocations: 1.995 MB / 0.5038 GB, free: 42.04 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002646/0.4427, allocations: 1.134 MB / 0.5049 GB, free: 41.68 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02637/0.4691, allocations: 13.99 MB / 0.5186 GB, free: 31.61 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002878/0.4694, allocations: 6.844 kB / 0.5186 GB, free: 31.61 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001089/0.4705, allocations: 469.2 kB / 0.5191 GB, free: 31.17 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001216/0.4717, allocations: 1.839 MB / 0.5209 GB, free: 29.57 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01868/0.4904, allocations: 16.47 MB / 0.5369 GB, free: 13.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09245/0.5828, allocations: 58.13 MB / 0.5937 GB, free: 5.742 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009555/0.5924, allocations: 3.412 MB / 0.597 GB, free: 2.391 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005551/0.5979, allocations: 1.784 MB / 0.5988 GB, free: 0.6172 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1893/0.7872, allocations: 0.75 MB / 0.5995 GB, free: 102 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001018/0.7873, allocations: 98.08 kB / 0.5996 GB, free: 102 MB / 458.7 MB Notification: Performance of pre-optimization done (n=533): time 8.055e-06/0.7873, allocations: 0 / 0.5996 GB, free: 102 MB / 458.7 MB Notification: Performance of matching and sorting (n=755): time 0.1935/0.9808, allocations: 42.47 MB / 0.6411 GB, free: 99.32 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03718/1.018, allocations: 32.13 MB / 0.6725 GB, free: 77.47 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005041/1.023, allocations: 3.85 MB / 0.6762 GB, free: 75.25 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002459/1.026, allocations: 144.3 kB / 0.6764 GB, free: 75.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002919/1.028, allocations: 5.751 MB / 0.682 GB, free: 70.87 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004214/1.033, allocations: 2.639 MB / 0.6845 GB, free: 68.58 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008855/1.042, allocations: 2.327 MB / 0.6868 GB, free: 66.82 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 4.222e-05/1.042, allocations: 476.8 kB / 0.6873 GB, free: 66.35 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008794/1.05, allocations: 3.147 MB / 0.6903 GB, free: 63.66 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01023/1.061, allocations: 4.548 MB / 0.6948 GB, free: 59.36 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02066/1.081, allocations: 11.31 MB / 0.7058 GB, free: 48.11 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.607e-05/1.081, allocations: 8 kB / 0.7058 GB, free: 48.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.034/1.115, allocations: 12.83 MB / 0.7184 GB, free: 35.45 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.878e-05/1.115, allocations: 22.44 kB / 0.7184 GB, free: 35.43 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-05/1.115, allocations: 24 kB / 0.7184 GB, free: 35.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02367/1.139, allocations: 10.37 MB / 0.7285 GB, free: 25.08 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01599/1.155, allocations: 4.315 MB / 0.7328 GB, free: 20.87 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2269/1.382, allocations: 50.56 MB / 0.7821 GB, free: 82.95 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00854/1.391, allocations: 318.7 kB / 0.7824 GB, free: 82.95 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002356/1.393, allocations: 1.663 MB / 0.7841 GB, free: 82.95 MB / 474.7 MB Warning: Assuming fixed start value for the following 5 variables: d2.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 d3.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 d5.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 {(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%), (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%)} * 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.005266/1.398, allocations: 0.5599 MB / 0.7846 GB, free: 82.79 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003743/1.402, allocations: 0.8499 MB / 0.7854 GB, free: 82.79 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04083/1.443, allocations: 17.99 MB / 0.803 GB, free: 81.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01879/1.461, allocations: 7.14 MB / 0.81 GB, free: 81.29 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.297e-05/1.462, allocations: 8.5 kB / 0.81 GB, free: 81.29 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.33e-05/1.462, allocations: 45.05 kB / 0.81 GB, free: 81.29 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05311/1.515, allocations: 31.07 MB / 0.8404 GB, free: 74.92 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.905e-05/1.515, allocations: 33.91 kB / 0.8404 GB, free: 74.92 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007084/1.522, allocations: 1.918 MB / 0.8423 GB, free: 74.87 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02557/1.547, allocations: 6.828 MB / 0.8489 GB, free: 73.42 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001953/1.549, allocations: 301.2 kB / 0.8492 GB, free: 73.26 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03116/1.581, allocations: 50.35 MB / 0.8984 GB, free: 22.35 MB / 474.7 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.0103/1.591, allocations: 13.54 MB / 0.9116 GB, free: 8.289 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03026/1.621, allocations: 12.28 MB / 0.9236 GB, free: 11.22 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002407/1.624, allocations: 0.7469 MB / 0.9244 GB, free: 10.48 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001307/1.625, allocations: 183.9 kB / 0.9245 GB, free: 10.31 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003621/1.628, allocations: 226.6 kB / 0.9248 GB, free: 10.09 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001943/1.63, allocations: 0.8111 MB / 0.9255 GB, free: 9.312 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006653/1.631, allocations: 431.8 kB / 0.926 GB, free: 8.891 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003571/1.635, allocations: 3.222 MB / 0.9291 GB, free: 5.871 MB / 490.7 MB Notification: Performance of sort global known variables: time 7e-08/1.635, allocations: 2.531 kB / 0.9291 GB, free: 5.871 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01148/1.646, allocations: 3.981 MB / 0.933 GB, free: 1.914 MB / 490.7 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.00117/1.647, allocations: 0.6347 MB / 0.9336 GB, free: 1.469 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01677/1.664, allocations: 10.54 MB / 0.9439 GB, free: 6.91 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.122e-05/1.664, allocations: 8 kB / 0.9439 GB, free: 6.902 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.1793/1.843, allocations: 7.513 MB / 0.9512 GB, free: 116.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007909/1.851, allocations: 1.926 MB / 0.9531 GB, free: 116.3 MB / 0.4948 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4595:9-4595:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:827:5-827: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: 3.7303237598389387]