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.002313/0.002313, allocations: 109.1 kB / 18.99 MB, free: 2.609 MB / 14.72 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.003474/0.003474, allocations: 219.3 kB / 22.3 MB, free: 5.281 MB / 14.72 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.54/1.54, allocations: 230.6 MB / 256.1 MB, free: 7.801 MB / 206.1 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.1633/0.1633, allocations: 23.9 MB / 336.4 MB, free: 10.95 MB / 270.1 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: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002165/0.002165, allocations: 63.89 kB / 471.7 MB, free: 6.973 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4196/0.4217, allocations: 59.86 MB / 0.5191 GB, free: 9.867 MB / 382.1 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.08425/0.506, allocations: 35.68 MB / 0.554 GB, free: 4.602 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02873/0.5347, allocations: 14.47 MB / 0.5681 GB, free: 7.512 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006062/0.5408, allocations: 59.69 kB / 0.5681 GB, free: 7.453 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00645/0.5472, allocations: 1.379 MB / 0.5695 GB, free: 6.207 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0092/0.5564, allocations: 1.559 MB / 0.571 GB, free: 4.637 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01042/0.5668, allocations: 4.19 MB / 0.5751 GB, free: 440 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01108/0.5779, allocations: 4.958 MB / 0.5799 GB, free: 11.45 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002413/0.5803, allocations: 1.217 MB / 0.5811 GB, free: 10.17 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003682/0.584, allocations: 1.981 MB / 0.5831 GB, free: 8.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004628/0.5886, allocations: 2.217 MB / 0.5852 GB, free: 5.953 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00144/0.5901, allocations: 0.5391 MB / 0.5858 GB, free: 5.414 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006553/0.5966, allocations: 1.756 MB / 0.5875 GB, free: 3.656 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002363/0.599, allocations: 1.565 MB / 0.589 GB, free: 2.086 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006027/0.605, allocations: 2.219 MB / 0.5912 GB, free: 15.85 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02246/0.6275, allocations: 8.368 MB / 0.5993 GB, free: 7.457 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/0.6275, allocations: 0 / 0.5993 GB, free: 7.457 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.6275, allocations: 4 kB / 0.5993 GB, free: 7.453 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003783/0.6279, allocations: 0 / 0.5993 GB, free: 7.453 MB / 446.1 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.02092/0.6488, allocations: 5.999 MB / 0.6052 GB, free: 1.387 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/0.6488, allocations: 8.031 kB / 0.6052 GB, free: 1.379 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004418/0.6532, allocations: 1.051 MB / 0.6062 GB, free: 332 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006369/0.6596, allocations: 2.474 MB / 0.6087 GB, free: 13.79 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001221/0.6608, allocations: 0.8002 MB / 0.6094 GB, free: 12.93 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001583/0.6624, allocations: 492.2 kB / 0.6099 GB, free: 12.45 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02987/0.6923, allocations: 16.14 MB / 0.6257 GB, free: 12.25 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001636/0.6925, allocations: 0 / 0.6257 GB, free: 12.25 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001205/0.6937, allocations: 200 kB / 0.6259 GB, free: 12.05 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008771/0.6945, allocations: 0.6357 MB / 0.6265 GB, free: 11.42 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03801/0.7326, allocations: 24.8 MB / 0.6507 GB, free: 2.609 MB / 494.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07943/0.812, allocations: 37.45 MB / 0.6873 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0123/0.8243, allocations: 7.892 MB / 0.695 GB, free: 5.07 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009496/0.8338, allocations: 6.431 MB / 0.7013 GB, free: 14.63 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02487/0.8587, allocations: 11.73 MB / 0.7127 GB, free: 2.879 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.176e-05/0.8587, allocations: 52.5 kB / 0.7128 GB, free: 2.82 MB / 0.545 GB Notification: Performance of pre-optimization done (n=222): time 6.893e-06/0.8587, allocations: 0 / 0.7128 GB, free: 2.82 MB / 0.545 GB Notification: Performance of matching and sorting (n=297): time 0.4866/1.345, allocations: 54.15 MB / 0.7656 GB, free: 166.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02703/1.372, allocations: 18.38 MB / 0.7836 GB, free: 150.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00374/1.376, allocations: 2.55 MB / 0.7861 GB, free: 147.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001193/1.377, allocations: 73.7 kB / 0.7861 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001384/1.379, allocations: 2.5 MB / 0.7886 GB, free: 145.4 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001976/1.381, allocations: 1.039 MB / 0.7896 GB, free: 144.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003794/1.384, allocations: 1.01 MB / 0.7906 GB, free: 143.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.898e-05/1.384, allocations: 301.1 kB / 0.7909 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01002/1.394, allocations: 9.544 MB / 0.8002 GB, free: 133.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01068/1.405, allocations: 10.28 MB / 0.8102 GB, free: 123 MB / 0.5606 GB 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.2654/1.671, allocations: 68.99 MB / 0.8776 GB, free: 54.25 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.069e-05/1.671, allocations: 8 kB / 0.8776 GB, free: 54.24 MB / 0.5606 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.03342/1.704, allocations: 21.87 MB / 0.899 GB, free: 32.35 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.205e-05/1.704, allocations: 19.77 kB / 0.899 GB, free: 32.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005616/1.705, allocations: 234.5 kB / 0.8992 GB, free: 32.11 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01923/1.724, allocations: 6.265 MB / 0.9053 GB, free: 25.86 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01193/1.736, allocations: 1.671 MB / 0.907 GB, free: 24.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02605/1.762, allocations: 23.94 MB / 0.9303 GB, free: 15.85 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00678/1.769, allocations: 354 kB / 0.9307 GB, free: 15.5 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002126/1.771, allocations: 0.5544 MB / 0.9312 GB, free: 14.95 MB / 0.5763 GB 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.006126/1.777, allocations: 1.421 MB / 0.9326 GB, free: 13.52 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002588/1.779, allocations: 345.7 kB / 0.9329 GB, free: 13.18 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04128/1.821, allocations: 16.56 MB / 0.9491 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03073/1.851, allocations: 12.29 MB / 0.9611 GB, free: 284 kB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.119e-05/1.852, allocations: 11.69 kB / 0.9611 GB, free: 276 kB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001168/1.852, allocations: 19.94 kB / 0.9611 GB, free: 256 kB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3535/2.205, allocations: 22.21 MB / 0.9828 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.277e-05/2.205, allocations: 18.92 kB / 0.9829 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006307/2.211, allocations: 0.7429 MB / 0.9836 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0198/2.231, allocations: 4.371 MB / 0.9878 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008826/2.232, allocations: 129 kB / 0.988 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0214/2.254, allocations: 16.24 MB / 1.004 GB, free: 184.4 MB / 0.5919 GB 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.004296/2.258, allocations: 2.599 MB / 1.006 GB, free: 182.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02625/2.284, allocations: 16.3 MB / 1.022 GB, free: 168.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001335/2.285, allocations: 351.5 kB / 1.023 GB, free: 168.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001311/2.287, allocations: 69.09 kB / 1.023 GB, free: 168.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002863/2.29, allocations: 139.8 kB / 1.023 GB, free: 168 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009079/2.291, allocations: 317.3 kB / 1.023 GB, free: 167.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003413/2.291, allocations: 230.5 kB / 1.023 GB, free: 167.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.003747/2.295, allocations: 3.309 MB / 1.027 GB, free: 164.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/2.295, allocations: 0 / 1.027 GB, free: 164.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00656/2.301, allocations: 1.819 MB / 1.028 GB, free: 162.3 MB / 0.5919 GB 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.00138/2.303, allocations: 0.508 MB / 1.029 GB, free: 162 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0183/2.321, allocations: 14.66 MB / 1.043 GB, free: 147.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.678e-05/2.321, allocations: 4 kB / 1.043 GB, free: 147.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.008224/2.329, allocations: 5.123 MB / 1.048 GB, free: 142.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003596/2.333, allocations: 0.614 MB / 1.049 GB, free: 141.6 MB / 0.5919 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4747:9-4747:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:836:5-836: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: 5.10582584887743] Failed to read output from testmodel.py, exit status != 0: 2.3423569072037935 2.35166298 1.721712598 Calling exit ...