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.0006784/0.0006784, allocations: 73.17 kB / 9.984 MB, free: 0.6992 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008814/0.00156, allocations: 455.9 kB / 10.43 MB, free: 260 kB / 10.45 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.0006628/0.0006628, allocations: 165.2 kB / 11.34 MB, free: 2.832 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008564/0.001519, allocations: 475.6 kB / 11.8 MB, free: 2.363 MB / 13.93 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.9791/0.9791, allocations: 177.2 MB / 189.7 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09625/1.075, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.1055/0.1055, allocations: 17.37 MB / 261.5 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01014/0.1156, allocations: 6.94 MB / 268.5 MB, free: 6.418 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.352e-06/1.352e-06, allocations: 0 / 269.8 MB, free: 5.113 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.788e-06/1.114e-05, allocations: 2.312 kB / 269.8 MB, free: 5.109 MB / 266.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.1676/0.1676, allocations: 39.21 MB / 309 MB, free: 11.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03202/0.1996, allocations: 17.27 MB / 326.2 MB, free: 9.941 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01032/0.2099, allocations: 119.5 kB / 326.4 MB, free: 9.824 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007723/0.2177, allocations: 2.66 MB / 329 MB, free: 7.145 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01204/0.2297, allocations: 3.655 MB / 332.7 MB, free: 3.461 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007963/0.2377, allocations: 2.909 MB / 335.6 MB, free: 0.543 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01714/0.2548, allocations: 11.31 MB / 346.9 MB, free: 5.207 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004064/0.2589, allocations: 2.479 MB / 349.4 MB, free: 2.609 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01364/0.2725, allocations: 7.409 MB / 356.8 MB, free: 11.1 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007486/0.28, allocations: 3.985 MB / 360.8 MB, free: 7.102 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003411/0.2834, allocations: 1.219 MB / 362 MB, free: 5.883 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007351/0.2908, allocations: 2.373 MB / 364.4 MB, free: 3.508 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003546/0.2943, allocations: 3.003 MB / 367.4 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008855/0.3032, allocations: 3.414 MB / 370.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01518/0.3183, allocations: 10.83 MB / 381.6 MB, free: 2.203 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.825e-05/0.3184, allocations: 4 kB / 381.6 MB, free: 2.199 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3184, allocations: 0 / 381.6 MB, free: 2.199 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006425/0.319, allocations: 0 / 381.6 MB, free: 2.199 MB / 362.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.01824/0.3372, allocations: 14.74 MB / 396.3 MB, free: 3.363 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.3373, allocations: 8.031 kB / 396.3 MB, free: 3.355 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0068/0.3441, allocations: 5.223 MB / 401.6 MB, free: 14.11 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005979/0.3501, allocations: 3.29 MB / 404.9 MB, free: 10.75 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001613/0.3517, allocations: 1.993 MB / 406.8 MB, free: 8.621 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001136/0.3528, allocations: 1.133 MB / 408 MB, free: 7.488 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01737/0.3702, allocations: 14.19 MB / 422.2 MB, free: 9.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001428/0.3703, allocations: 3.938 kB / 422.2 MB, free: 9.227 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005337/0.3709, allocations: 471.9 kB / 422.6 MB, free: 8.766 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001452/0.3723, allocations: 1.757 MB / 424.4 MB, free: 6.996 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1732/0.5455, allocations: 16.4 MB / 440.8 MB, free: 83.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0619/0.6074, allocations: 48.83 MB / 489.6 MB, free: 56.86 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005672/0.6131, allocations: 3.134 MB / 492.8 MB, free: 53.77 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003179/0.6163, allocations: 1.385 MB / 494.1 MB, free: 52.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001035/0.6173, allocations: 0.7588 MB / 494.9 MB, free: 51.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.14e-05/0.6174, allocations: 95.78 kB / 495 MB, free: 51.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=533): time 7.894e-06/0.6174, allocations: 0 / 495 MB, free: 51.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=707): time 0.1383/0.7557, allocations: 42.75 MB / 0.5251 GB, free: 9.477 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0367/0.7924, allocations: 24.2 MB / 0.5488 GB, free: 0.5117 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003494/0.7959, allocations: 2.972 MB / 0.5517 GB, free: 14.12 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002164/0.798, allocations: 133.7 kB / 0.5518 GB, free: 13.98 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002427/0.8005, allocations: 4.594 MB / 0.5563 GB, free: 9.555 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003307/0.8038, allocations: 2.479 MB / 0.5587 GB, free: 7.227 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004859/0.8086, allocations: 1.7 MB / 0.5604 GB, free: 5.672 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.603e-05/0.8087, allocations: 301.1 kB / 0.5607 GB, free: 5.375 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006504/0.8152, allocations: 2.084 MB / 0.5627 GB, free: 3.285 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006384/0.8216, allocations: 3.142 MB / 0.5658 GB, free: 15.95 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01381/0.8354, allocations: 8.418 MB / 0.574 GB, free: 7.395 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.319e-05/0.8354, allocations: 11.94 kB / 0.574 GB, free: 7.383 MB / 458.7 MB Notification: Performance of matching and sorting (n=862) (initialization): time 0.02922/0.8647, allocations: 8.955 MB / 0.5827 GB, free: 14.53 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.355e-05/0.8647, allocations: 12 kB / 0.5828 GB, free: 14.52 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.365e-05/0.8648, allocations: 31.94 kB / 0.5828 GB, free: 14.48 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02377/0.8885, allocations: 10.64 MB / 0.5932 GB, free: 3.867 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1946/1.083, allocations: 4.608 MB / 0.5977 GB, free: 123.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02771/1.111, allocations: 35.9 MB / 0.6327 GB, free: 96.87 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006269/1.117, allocations: 288.4 kB / 0.633 GB, free: 96.87 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003563/1.121, allocations: 1.559 MB / 0.6345 GB, free: 96.87 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 (730): * Single equations (assignments): 698 * 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%), (3,4,77.8%), (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%), (3,4,77.8%), (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.006488/1.127, allocations: 0.4921 MB / 0.635 GB, free: 96.75 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002898/1.13, allocations: 0.5689 MB / 0.6356 GB, free: 96.75 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03346/1.164, allocations: 15.48 MB / 0.6507 GB, free: 95.63 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01565/1.179, allocations: 5.129 MB / 0.6557 GB, free: 95.31 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.522e-05/1.179, allocations: 10.75 kB / 0.6557 GB, free: 95.31 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001803/1.179, allocations: 35.34 kB / 0.6557 GB, free: 95.31 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05395/1.233, allocations: 22.78 MB / 0.678 GB, free: 86.12 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.99e-05/1.233, allocations: 31.98 kB / 0.678 GB, free: 86.09 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01029/1.244, allocations: 2.372 MB / 0.6803 GB, free: 83.82 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002193/1.246, allocations: 0.6392 MB / 0.681 GB, free: 83.39 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02611/1.272, allocations: 7.596 MB / 0.6884 GB, free: 75.85 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001466/1.274, allocations: 250.9 kB / 0.6886 GB, free: 75.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02825/1.302, allocations: 36.81 MB / 0.7246 GB, free: 37.3 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! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01067/1.312, allocations: 13.33 MB / 0.7376 GB, free: 23.45 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02351/1.336, allocations: 10.89 MB / 0.7482 GB, free: 11.82 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001834/1.338, allocations: 178.2 kB / 0.7484 GB, free: 11.65 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003674/1.341, allocations: 214 kB / 0.7486 GB, free: 11.45 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001421/1.343, allocations: 0.729 MB / 0.7493 GB, free: 10.74 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005457/1.343, allocations: 399.7 kB / 0.7497 GB, free: 10.35 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002639/1.346, allocations: 2.602 MB / 0.7522 GB, free: 7.945 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.71e-07/1.346, allocations: 4 kB / 0.7522 GB, free: 7.941 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01103/1.357, allocations: 3.878 MB / 0.756 GB, free: 4.082 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 127 * 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 ($cse160,$cse154,$cse142,$cse137,$cse130,$cse123,$cse117,$cse108,$cse101,$cse93,$cse87) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (533): * Single equations (assignments): 508 * 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%), (3,4,77.8%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (2,1,100.0%), (1,4,100.0%), (3,4,77.8%), (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.001372/1.358, allocations: 0.5869 MB / 0.7566 GB, free: 3.645 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0161/1.375, allocations: 8.234 MB / 0.7646 GB, free: 11.39 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002053/1.375, allocations: 93.58 kB / 0.7647 GB, free: 11.31 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01294/1.388, allocations: 7.087 MB / 0.7716 GB, free: 4.258 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1511/1.539, allocations: 10.78 MB / 0.7822 GB, free: 123.6 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4647:9-4647:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:793:5-793: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.1049702018499374]