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.001769/0.001769, allocations: 89.48 kB / 19.44 MB, free: 336 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.001997/0.001997, allocations: 173.2 kB / 22.76 MB, free: 1.656 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.607/1.607, allocations: 177.1 MB / 203.1 MB, free: 5.539 MB / 186.7 MB " [Timeout remaining time 178] 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.1406/0.1406, allocations: 17.37 MB / 276.9 MB, free: 11.7 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 2.234e-06/2.234e-06, allocations: 0 / 352.7 MB, free: 10.36 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.111e-05/4.334e-05, allocations: 6.25 kB / 352.7 MB, free: 10.36 MB / 282.7 MB [/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. [/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.WaterElectrolysis): time 0.06246/0.0625, allocations: 38.32 MB / 391 MB, free: 4.121 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03072/0.09322, allocations: 15.87 MB / 406.9 MB, free: 4.191 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004186/0.09741, allocations: 55.75 kB / 406.9 MB, free: 4.137 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005542/0.103, allocations: 1.385 MB / 408.3 MB, free: 2.742 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007517/0.1105, allocations: 1.632 MB / 409.9 MB, free: 1.098 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.2112/0.3217, allocations: 4.495 MB / 414.4 MB, free: 33.8 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.009504/0.3312, allocations: 5.115 MB / 419.6 MB, free: 32.7 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002457/0.3337, allocations: 1.235 MB / 420.8 MB, free: 32.45 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008155/0.3418, allocations: 2.987 MB / 423.8 MB, free: 32.23 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004607/0.3464, allocations: 1.963 MB / 425.7 MB, free: 31.69 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00114/0.3476, allocations: 0.5362 MB / 426.3 MB, free: 31.69 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007541/0.3551, allocations: 1.77 MB / 428 MB, free: 31.5 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001824/0.3569, allocations: 1.601 MB / 429.6 MB, free: 30.62 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004228/0.3612, allocations: 1.802 MB / 431.4 MB, free: 29.8 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01375/0.3749, allocations: 8.409 MB / 439.9 MB, free: 25.19 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.3749, allocations: 2.906 kB / 439.9 MB, free: 25.19 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3749, allocations: 0 / 439.9 MB, free: 25.19 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002779/0.3752, allocations: 2.688 kB / 439.9 MB, free: 25.19 MB / 330.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.01367/0.3889, allocations: 6.789 MB / 446.7 MB, free: 19.24 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.3889, allocations: 12.03 kB / 446.7 MB, free: 19.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003697/0.3926, allocations: 1.993 MB / 448.7 MB, free: 17.25 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004336/0.3969, allocations: 2.227 MB / 450.9 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006106/0.3976, allocations: 0.7828 MB / 451.7 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006314/0.3982, allocations: 497 kB / 452.2 MB, free: 13.85 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01117/0.4094, allocations: 7.286 MB / 459.4 MB, free: 6.527 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-05/0.4095, allocations: 192 / 459.4 MB, free: 6.527 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000344/0.4098, allocations: 208.7 kB / 459.6 MB, free: 6.336 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004924/0.4103, allocations: 0.6473 MB / 460.3 MB, free: 5.688 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01621/0.4265, allocations: 10.79 MB / 471.1 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07456/0.5011, allocations: 30.39 MB / 0.4897 GB, free: 12.42 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007256/0.5083, allocations: 2.731 MB / 0.4924 GB, free: 9.695 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005367/0.5137, allocations: 1.992 MB / 0.4943 GB, free: 7.703 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02325/0.5369, allocations: 7.825 MB / 0.502 GB, free: 15.88 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.237e-05/0.537, allocations: 59.39 kB / 0.502 GB, free: 15.82 MB / 394.7 MB Notification: Performance of pre-optimization done (n=222): time 4.328e-06/0.537, allocations: 0 / 0.502 GB, free: 15.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=297): time 0.1298/0.6668, allocations: 27.31 MB / 0.5287 GB, free: 4.805 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02876/0.6956, allocations: 12.1 MB / 0.5405 GB, free: 8.348 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004777/0.7004, allocations: 2.763 MB / 0.5432 GB, free: 5.559 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00114/0.7015, allocations: 76.36 kB / 0.5433 GB, free: 5.48 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002857/0.7044, allocations: 2.764 MB / 0.546 GB, free: 2.699 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002361/0.7067, allocations: 1.114 MB / 0.5471 GB, free: 1.602 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002864/0.7096, allocations: 1.002 MB / 0.548 GB, free: 0.5859 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002324/0.7098, allocations: 476.8 kB / 0.5485 GB, free: 120 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007169/0.717, allocations: 2.989 MB / 0.5514 GB, free: 13.12 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008551/0.7255, allocations: 4.102 MB / 0.5554 GB, free: 8.625 MB / 442.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.4524/1.178, allocations: 45.69 MB / 0.6001 GB, free: 135.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.991e-05/1.178, allocations: 4 kB / 0.6001 GB, free: 135.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=411) (initialization): time 0.02764/1.206, allocations: 8.927 MB / 0.6088 GB, free: 126.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.958e-05/1.206, allocations: 12 kB / 0.6088 GB, free: 126.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005817/1.206, allocations: 235.9 kB / 0.609 GB, free: 126.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01958/1.226, allocations: 4.564 MB / 0.6135 GB, free: 121.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01134/1.237, allocations: 1.649 MB / 0.6151 GB, free: 120 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02099/1.258, allocations: 16.87 MB / 0.6315 GB, free: 102.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005565/1.264, allocations: 346.1 kB / 0.6319 GB, free: 102.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00154/1.265, allocations: 0.5544 MB / 0.6324 GB, free: 102 MB / 442.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 (322): * Single equations (assignments): 313 * 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 {(4,3,62.5%), (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.003626/1.269, allocations: 0.777 MB / 0.6332 GB, free: 101.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002398/1.271, allocations: 406.9 kB / 0.6336 GB, free: 101 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02801/1.299, allocations: 11.15 MB / 0.6445 GB, free: 89.91 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01949/1.319, allocations: 6.486 MB / 0.6508 GB, free: 83.39 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.899e-05/1.319, allocations: 6.656 kB / 0.6508 GB, free: 83.38 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.108e-05/1.319, allocations: 15.89 kB / 0.6508 GB, free: 83.37 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04145/1.36, allocations: 16.06 MB / 0.6665 GB, free: 67.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.721e-05/1.36, allocations: 19.98 kB / 0.6665 GB, free: 67.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006085/1.366, allocations: 0.728 MB / 0.6672 GB, free: 66.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02359/1.39, allocations: 4.032 MB / 0.6712 GB, free: 62.42 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008923/1.391, allocations: 127.9 kB / 0.6713 GB, free: 62.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02158/1.413, allocations: 16.43 MB / 0.6873 GB, free: 45.32 MB / 442.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.005306/1.418, allocations: 3.388 MB / 0.6906 GB, free: 41.78 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02421/1.442, allocations: 8.853 MB / 0.6993 GB, free: 32.69 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001058/1.443, allocations: 341.5 kB / 0.6996 GB, free: 32.37 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00124/1.444, allocations: 69.12 kB / 0.6997 GB, free: 32.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002744/1.447, allocations: 127.9 kB / 0.6998 GB, free: 32.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001133/1.448, allocations: 325.2 kB / 0.7001 GB, free: 31.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005398/1.449, allocations: 227.9 kB / 0.7003 GB, free: 31.64 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002862/1.452, allocations: 2.264 MB / 0.7025 GB, free: 29.36 MB / 442.7 MB Notification: Performance of sort global known variables: time 9e-08/1.452, allocations: 2.688 kB / 0.7025 GB, free: 29.36 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005985/1.458, allocations: 1.83 MB / 0.7043 GB, free: 27.57 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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 (200): * Single equations (assignments): 191 * 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%), (4,3,62.5%)} * 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.001194/1.459, allocations: 0.5571 MB / 0.7049 GB, free: 27.14 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01389/1.473, allocations: 6.862 MB / 0.7116 GB, free: 20.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.606e-05/1.473, allocations: 0 / 0.7116 GB, free: 20.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006826/1.48, allocations: 3.622 MB / 0.7151 GB, free: 16.49 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003534/1.483, allocations: 0.7868 MB / 0.7159 GB, free: 15.76 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4687:9-4687:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:848:5-848: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: 3.941161527996883]