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.0009695/0.0009695, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.001081/0.001081, allocations: 181 kB / 23.36 MB, free: 1.133 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.03/1.03, allocations: 177.1 MB / 203.8 MB, free: 5.477 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.09114/0.09114, allocations: 17.38 MB / 277.6 MB, free: 11.53 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.042e-06/1.042e-06, allocations: 0 / 300.6 MB, free: 1.668 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.88e-05/1.984e-05, allocations: 7.016 kB / 300.6 MB, free: 1.66 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.05599/0.05601, allocations: 68.3 MB / 368.9 MB, free: 80 kB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02957/0.08558, allocations: 17.13 MB / 386 MB, free: 14.88 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00825/0.09383, allocations: 123.5 kB / 386.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008089/0.1019, allocations: 2.637 MB / 388.8 MB, free: 12.1 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01254/0.1145, allocations: 3.683 MB / 392.5 MB, free: 8.387 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008487/0.123, allocations: 2.929 MB / 395.4 MB, free: 5.449 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.01544/0.1384, allocations: 11.3 MB / 406.7 MB, free: 10.1 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003943/0.1423, allocations: 2.47 MB / 409.2 MB, free: 7.504 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01145/0.1538, allocations: 6.849 MB / 416 MB, free: 0.6406 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00656/0.1604, allocations: 3.954 MB / 420 MB, free: 12.68 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00269/0.163, allocations: 1.219 MB / 421.2 MB, free: 11.46 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005337/0.1684, allocations: 2.318 MB / 423.5 MB, free: 9.137 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002597/0.171, allocations: 3.637 MB / 427.2 MB, free: 5.488 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006795/0.1778, allocations: 4.107 MB / 431.3 MB, free: 1.371 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01703/0.1948, allocations: 11.62 MB / 442.9 MB, free: 5.711 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.1948, allocations: 3.938 kB / 442.9 MB, free: 5.707 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1948, allocations: 0 / 442.9 MB, free: 5.707 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006508/0.1955, allocations: 0 / 442.9 MB, free: 5.707 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.2879/0.4834, allocations: 12.37 MB / 455.3 MB, free: 79.61 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.4834, allocations: 10.16 kB / 455.3 MB, free: 79.61 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008522/0.4919, allocations: 5.136 MB / 460.4 MB, free: 79.56 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007262/0.4992, allocations: 3.286 MB / 463.7 MB, free: 78.96 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001504/0.5007, allocations: 1.999 MB / 465.7 MB, free: 78.24 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001832/0.5025, allocations: 1.131 MB / 466.8 MB, free: 78.23 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01792/0.5205, allocations: 14.2 MB / 481 MB, free: 76.06 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002501/0.5207, allocations: 7.25 kB / 481 MB, free: 76.05 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006579/0.5214, allocations: 463 kB / 481.5 MB, free: 75.62 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001407/0.5228, allocations: 1.843 MB / 483.3 MB, free: 74.02 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01498/0.5378, allocations: 16.4 MB / 499.7 MB, free: 57.8 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07107/0.6088, allocations: 48.63 MB / 0.5355 GB, free: 11.52 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008577/0.6174, allocations: 3.123 MB / 0.5385 GB, free: 8.469 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004052/0.6215, allocations: 1.395 MB / 0.5399 GB, free: 7.094 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001084/0.6225, allocations: 0.7624 MB / 0.5406 GB, free: 6.34 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.663e-05/0.6226, allocations: 91.88 kB / 0.5407 GB, free: 6.242 MB / 410.8 MB Notification: Performance of pre-optimization done (n=533): time 6.993e-06/0.6226, allocations: 0 / 0.5407 GB, free: 6.242 MB / 410.8 MB Notification: Performance of matching and sorting (n=755): time 0.2318/0.8543, allocations: 41.03 MB / 0.5808 GB, free: 14.34 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03003/0.8844, allocations: 24.04 MB / 0.6043 GB, free: 5.609 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003243/0.8876, allocations: 2.967 MB / 0.6072 GB, free: 3.219 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001944/0.8896, allocations: 155.1 kB / 0.6073 GB, free: 3.07 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.1546/1.044, allocations: 4.582 MB / 0.6118 GB, free: 120.9 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003858/1.048, allocations: 2.64 MB / 0.6144 GB, free: 119.5 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006493/1.055, allocations: 1.796 MB / 0.6161 GB, free: 119.5 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 3.301e-05/1.055, allocations: 301.1 kB / 0.6164 GB, free: 119.2 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007614/1.062, allocations: 2.67 MB / 0.619 GB, free: 119.1 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008004/1.07, allocations: 3.747 MB / 0.6227 GB, free: 118.2 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01863/1.089, allocations: 10.24 MB / 0.6327 GB, free: 117 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.202e-05/1.089, allocations: 6.969 kB / 0.6327 GB, free: 117 MB / 474.8 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.0318/1.121, allocations: 9.797 MB / 0.6423 GB, free: 116.5 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.711e-05/1.121, allocations: 13.59 kB / 0.6423 GB, free: 116.5 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-05/1.121, allocations: 25.69 kB / 0.6423 GB, free: 116.5 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02419/1.145, allocations: 10.29 MB / 0.6523 GB, free: 116 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01455/1.16, allocations: 3.404 MB / 0.6557 GB, free: 114.6 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02581/1.185, allocations: 35.56 MB / 0.6904 GB, free: 81.92 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009136/1.194, allocations: 307.1 kB / 0.6907 GB, free: 81.67 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003285/1.198, allocations: 1.606 MB / 0.6923 GB, free: 80.31 MB / 474.8 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.006369/1.204, allocations: 0.5082 MB / 0.6928 GB, free: 79.89 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003461/1.208, allocations: 0.5964 MB / 0.6933 GB, free: 79.43 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03477/1.242, allocations: 15.61 MB / 0.7086 GB, free: 65.08 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01865/1.261, allocations: 5.718 MB / 0.7142 GB, free: 59.46 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.267e-05/1.261, allocations: 15.94 kB / 0.7142 GB, free: 59.45 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000197/1.261, allocations: 42.56 kB / 0.7142 GB, free: 59.41 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05066/1.312, allocations: 23.48 MB / 0.7372 GB, free: 37.2 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-05/1.312, allocations: 32 kB / 0.7372 GB, free: 37.17 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006666/1.319, allocations: 1.806 MB / 0.739 GB, free: 35.46 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02238/1.341, allocations: 6.989 MB / 0.7458 GB, free: 28.61 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001318/1.342, allocations: 255.1 kB / 0.746 GB, free: 28.36 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02429/1.367, allocations: 36.22 MB / 0.7814 GB, free: 6.719 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.168/1.535, allocations: 10 MB / 0.7912 GB, free: 104.2 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02221/1.557, allocations: 10.7 MB / 0.8016 GB, free: 100.3 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001806/1.559, allocations: 0.6632 MB / 0.8023 GB, free: 100.3 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00127/1.56, allocations: 193.1 kB / 0.8024 GB, free: 100.3 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003526/1.563, allocations: 226 kB / 0.8027 GB, free: 100.3 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001613/1.565, allocations: 0.7652 MB / 0.8034 GB, free: 100.3 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006195/1.566, allocations: 409.5 kB / 0.8038 GB, free: 100.3 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.002772/1.568, allocations: 2.508 MB / 0.8062 GB, free: 100.1 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.8e-07/1.568, allocations: 0 / 0.8062 GB, free: 100.1 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01052/1.579, allocations: 3.981 MB / 0.8101 GB, free: 100.1 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.001254/1.58, allocations: 0.6175 MB / 0.8107 GB, free: 100.1 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01668/1.597, allocations: 8.605 MB / 0.8191 GB, free: 97.65 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0001187/1.597, allocations: 51.34 kB / 0.8192 GB, free: 97.64 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009454/1.607, allocations: 6.028 MB / 0.8251 GB, free: 94.98 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008336/1.615, allocations: 1.821 MB / 0.8269 GB, free: 94.96 MB / 490.8 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4068:9-4068:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:790:5-790: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.4010686627589166]