Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.WaterElectrolysis.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.0009945/0.0009945, allocations: 73.17 kB / 9.984 MB, free: 0.6992 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00136/0.002354, 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.001084/0.001084, allocations: 165.2 kB / 11.34 MB, free: 2.832 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001378/0.002462, 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.9338/0.9338, allocations: 177.2 MB / 189.7 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1059/1.04, allocations: 53.66 MB / 243.4 MB, free: 15.5 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.09835/0.09835, allocations: 17.37 MB / 261.5 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.009963/0.1083, allocations: 6.932 MB / 268.5 MB, free: 6.41 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.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 269.7 MB, free: 5.121 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.344e-05/1.513e-05, allocations: 2.312 kB / 269.7 MB, free: 5.117 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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Boundaries.mo:1328:7-1328:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Boundaries.mo:1328:7-1328:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.WaterElectrolysis): time 0.1459/0.1459, allocations: 16.98 MB / 286.7 MB, free: 12.32 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02017/0.1661, allocations: 16.33 MB / 303.1 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002356/0.1684, allocations: 54.03 kB / 303.1 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002862/0.1713, allocations: 1.454 MB / 304.6 MB, free: 15.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003127/0.1744, allocations: 1.616 MB / 306.2 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00535/0.1797, allocations: 4.52 MB / 310.7 MB, free: 9.508 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003747/0.1835, allocations: 5.118 MB / 315.8 MB, free: 4.383 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001113/0.1846, allocations: 1.299 MB / 317.1 MB, free: 2.992 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002256/0.1869, allocations: 3.253 MB / 320.4 MB, free: 15.68 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001556/0.1884, allocations: 1.952 MB / 322.3 MB, free: 13.72 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004833/0.1889, allocations: 0.5273 MB / 322.9 MB, free: 13.2 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002595/0.1915, allocations: 1.834 MB / 324.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007367/0.1922, allocations: 1.305 MB / 326 MB, free: 10.05 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001266/0.1935, allocations: 1.485 MB / 327.5 MB, free: 8.562 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004323/0.1978, allocations: 5.625 MB / 333.1 MB, free: 2.918 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.285e-05/0.1978, allocations: 4 kB / 333.1 MB, free: 2.914 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1978, allocations: 0 / 333.1 MB, free: 2.914 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.302e-05/0.1979, allocations: 0 / 333.1 MB, free: 2.914 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1492 * Number of variables: 1492 Notification: Performance of Generate backend data structure: time 0.00586/0.2037, allocations: 6.893 MB / 340 MB, free: 11.94 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.2038, allocations: 11.97 kB / 340 MB, free: 11.93 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002049/0.2058, allocations: 1.761 MB / 341.8 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001848/0.2077, allocations: 1.716 MB / 343.5 MB, free: 8.387 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004005/0.2081, allocations: 0.7845 MB / 344.3 MB, free: 7.539 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003633/0.2084, allocations: 496.3 kB / 344.8 MB, free: 7.055 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004481/0.2129, allocations: 5.412 MB / 350.2 MB, free: 1.586 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.431e-05/0.213, allocations: 192 / 350.2 MB, free: 1.586 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002226/0.2132, allocations: 204.1 kB / 350.4 MB, free: 1.387 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004123/0.2136, allocations: 0.6123 MB / 351 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006204/0.2198, allocations: 5.299 MB / 356.3 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02676/0.2466, allocations: 17.99 MB / 374.3 MB, free: 9.301 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002274/0.2488, allocations: 1.058 MB / 375.3 MB, free: 8.227 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0014/0.2502, allocations: 0.5303 MB / 375.9 MB, free: 7.699 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009226/0.2595, allocations: 5.657 MB / 381.5 MB, free: 2.016 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.698e-05/0.2595, allocations: 56.5 kB / 381.6 MB, free: 1.953 MB / 362.7 MB Notification: Performance of pre-optimization done (n=222): time 3.567e-06/0.2595, allocations: 0 / 381.6 MB, free: 1.953 MB / 362.7 MB Notification: Performance of matching and sorting (n=277): time 0.0564/0.3159, allocations: 15.15 MB / 396.7 MB, free: 2.781 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01/0.3259, allocations: 6.776 MB / 403.5 MB, free: 11.65 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001738/0.3276, allocations: 1.998 MB / 405.5 MB, free: 9.629 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007498/0.3284, allocations: 69.69 kB / 405.6 MB, free: 9.555 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009587/0.3294, allocations: 2.113 MB / 407.7 MB, free: 7.414 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009945/0.3304, allocations: 0.9681 MB / 408.6 MB, free: 6.438 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001438/0.3318, allocations: 0.6856 MB / 409.3 MB, free: 5.742 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.205e-05/0.3319, allocations: 309.1 kB / 409.6 MB, free: 5.438 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001997/0.3338, allocations: 0.7792 MB / 410.4 MB, free: 4.652 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002269/0.3361, allocations: 1.499 MB / 411.9 MB, free: 2.852 MB / 394.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: electrone.state_out.u = 96485.33212331001 * electrone.definition.data.z * electrone.v_start (0.0 = 96485.33212331001 * electrone.definition.data.z * electrone.v_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.008132/0.3442, allocations: 4.438 MB / 416.3 MB, free: 14.05 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.768e-05/0.3443, allocations: 12 kB / 416.4 MB, free: 14.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.009749/0.354, allocations: 3.5 MB / 419.9 MB, free: 10.46 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/0.3541, allocations: 19.98 kB / 419.9 MB, free: 10.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003196/0.3544, allocations: 143.9 kB / 420 MB, free: 10.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009076/0.3634, allocations: 3.373 MB / 423.4 MB, free: 6.906 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007336/0.3708, allocations: 1.648 MB / 425 MB, free: 5.258 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1547/0.5255, allocations: 9.558 MB / 434.6 MB, free: 98.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002419/0.5279, allocations: 132.1 kB / 434.7 MB, free: 98.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008344/0.5287, allocations: 467.3 kB / 435.2 MB, free: 98.48 MB / 410.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: electrone.state_out.u = 96485.33212331001 * electrone.definition.data.z * electrone.v_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 97 * Number of states: 0 () * Number of discrete variables: 2 (reaction.processDefinition.data.phase,reaction.processDefinition.SelfClustering) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (302): * Single equations (assignments): 293 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,4,77.8%), (1,20,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(6,20), (4,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001816/0.5305, allocations: 297.7 kB / 435.5 MB, free: 98.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001028/0.5316, allocations: 262.2 kB / 435.7 MB, free: 98.36 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01422/0.5458, allocations: 6.534 MB / 442.3 MB, free: 97.87 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0074/0.5532, allocations: 2.758 MB / 445 MB, free: 97.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.466e-05/0.5532, allocations: 3.531 kB / 445 MB, free: 97.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.292e-05/0.5532, allocations: 11.06 kB / 445 MB, free: 97.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01632/0.5696, allocations: 8.743 MB / 453.8 MB, free: 96.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.24e-05/0.5696, allocations: 7.5 kB / 453.8 MB, free: 96.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003311/0.5729, allocations: 0.8796 MB / 454.7 MB, free: 96.55 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006685/0.5736, allocations: 303.6 kB / 455 MB, free: 96.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01032/0.5839, allocations: 3.385 MB / 458.3 MB, free: 96.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004673/0.5843, allocations: 90.81 kB / 458.4 MB, free: 96.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009253/0.5936, allocations: 9.875 MB / 468.3 MB, free: 88.71 MB / 410.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! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001808/0.5954, allocations: 2.331 MB / 470.6 MB, free: 86.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009133/0.6045, allocations: 4.342 MB / 475 MB, free: 81.89 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006249/0.6052, allocations: 60.38 kB / 475 MB, free: 81.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.6062, allocations: 67.97 kB / 475.1 MB, free: 81.77 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006286/0.6069, allocations: 259.7 kB / 475.4 MB, free: 81.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002409/0.6071, allocations: 171.9 kB / 475.5 MB, free: 81.35 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009967/0.6081, allocations: 1.209 MB / 476.7 MB, free: 80.23 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6081, allocations: 0 / 476.7 MB, free: 80.23 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003818/0.6119, allocations: 1.758 MB / 478.5 MB, free: 78.51 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 7 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,reaction.rr,anode.temperature,cathode.temperature) * Number of discrete variables: 8 ($cse39.data.phase,$cse39.SelfClustering,$cse40.data.phase,$cse40.SelfClustering,reaction.processDefinition.data.phase,$cse48,$cse34,$cse27) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (180): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,20,100.0%), (1,1,100.0%), (3,4,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(6,22), (9,11), (3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001131/0.613, allocations: 0.5523 MB / 479 MB, free: 78.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008609/0.6217, allocations: 3.202 MB / 482.2 MB, free: 74.96 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001032/0.6218, allocations: 47.95 kB / 482.3 MB, free: 74.92 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004455/0.6262, allocations: 2.563 MB / 484.9 MB, free: 72.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002588/0.6288, allocations: 4.7 MB / 489.6 MB, free: 66.94 MB / 410.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 659] [Calling sys.exit(0), Time elapsed: 2.1610542219132185]