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.001293/0.001293, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001542/0.001542, allocations: 209.8 kB / 22.24 MB, free: 5.262 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.475/1.475, allocations: 230.6 MB / 256 MB, free: 7.781 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.158/0.158, allocations: 23.89 MB / 336.3 MB, free: 10.93 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.002359/0.002359, allocations: 67.84 kB / 471.6 MB, free: 6.973 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3414/0.3438, allocations: 59.85 MB / 0.519 GB, free: 9.84 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.08177/0.4256, allocations: 35.69 MB / 0.5539 GB, free: 4.602 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02654/0.4521, allocations: 14.48 MB / 0.568 GB, free: 7.504 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004785/0.4569, allocations: 55.75 kB / 0.5681 GB, free: 7.449 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004912/0.4618, allocations: 1.373 MB / 0.5694 GB, free: 6.168 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005643/0.4674, allocations: 1.571 MB / 0.5709 GB, free: 4.586 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008347/0.4758, allocations: 4.194 MB / 0.575 GB, free: 384 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007921/0.4837, allocations: 4.946 MB / 0.5799 GB, free: 11.4 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003184/0.4869, allocations: 1.217 MB / 0.581 GB, free: 10.12 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004008/0.4909, allocations: 1.985 MB / 0.583 GB, free: 8.133 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00335/0.4942, allocations: 2.213 MB / 0.5851 GB, free: 5.91 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008817/0.4951, allocations: 0.539 MB / 0.5857 GB, free: 5.371 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004548/0.4997, allocations: 1.76 MB / 0.5874 GB, free: 3.609 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001477/0.5011, allocations: 1.569 MB / 0.5889 GB, free: 2.035 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002766/0.5039, allocations: 2.223 MB / 0.5911 GB, free: 15.8 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01311/0.517, allocations: 8.352 MB / 0.5993 GB, free: 7.418 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.517, allocations: 4 kB / 0.5993 GB, free: 7.414 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.517, allocations: 3.938 kB / 0.5993 GB, free: 7.41 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001619/0.5172, allocations: 4 kB / 0.5993 GB, free: 7.406 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.011/0.5282, allocations: 5.991 MB / 0.6051 GB, free: 1.348 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.5282, allocations: 12.03 kB / 0.6051 GB, free: 1.336 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002933/0.5312, allocations: 1.051 MB / 0.6062 GB, free: 288 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004465/0.5356, allocations: 2.486 MB / 0.6086 GB, free: 13.73 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008158/0.5364, allocations: 0.7924 MB / 0.6094 GB, free: 12.88 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000721/0.5372, allocations: 496.2 kB / 0.6098 GB, free: 12.39 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02119/0.5584, allocations: 16.13 MB / 0.6256 GB, free: 12.21 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.161e-05/0.5584, allocations: 4 kB / 0.6256 GB, free: 12.21 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004036/0.5588, allocations: 200 kB / 0.6258 GB, free: 12.01 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007247/0.5596, allocations: 0.6396 MB / 0.6264 GB, free: 11.37 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03094/0.5905, allocations: 24.79 MB / 0.6506 GB, free: 2.57 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.06713/0.6576, allocations: 37.45 MB / 0.6872 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01163/0.6693, allocations: 7.891 MB / 0.6949 GB, free: 5.031 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009776/0.679, allocations: 6.435 MB / 0.7012 GB, free: 14.59 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02428/0.7033, allocations: 11.72 MB / 0.7126 GB, free: 2.84 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.199e-05/0.7034, allocations: 60.44 kB / 0.7127 GB, free: 2.773 MB / 0.545 GB Notification: Performance of pre-optimization done (n=222): time 4.308e-06/0.7034, allocations: 0 / 0.7127 GB, free: 2.773 MB / 0.545 GB Notification: Performance of matching and sorting (n=297): time 0.3879/1.091, allocations: 54.1 MB / 0.7655 GB, free: 166.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02304/1.114, allocations: 18.38 MB / 0.7835 GB, free: 150.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002747/1.117, allocations: 2.556 MB / 0.786 GB, free: 147.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001154/1.118, allocations: 69.7 kB / 0.786 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001205/1.119, allocations: 2.502 MB / 0.7885 GB, free: 145.4 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001254/1.121, allocations: 1.041 MB / 0.7895 GB, free: 144.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001968/1.123, allocations: 1.007 MB / 0.7905 GB, free: 143.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.162e-05/1.123, allocations: 305.1 kB / 0.7908 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008833/1.131, allocations: 9.538 MB / 0.8001 GB, free: 133.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009216/1.141, allocations: 10.28 MB / 0.8101 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.2492/1.39, allocations: 68.77 MB / 0.8773 GB, free: 54.48 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.119e-05/1.39, allocations: 4 kB / 0.8773 GB, free: 54.48 MB / 0.5606 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.03079/1.421, allocations: 21.87 MB / 0.8986 GB, free: 32.58 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.168e-05/1.421, allocations: 19.94 kB / 0.8987 GB, free: 32.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000493/1.421, allocations: 227.9 kB / 0.8989 GB, free: 32.34 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01767/1.439, allocations: 6.226 MB / 0.9049 GB, free: 26.12 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0118/1.451, allocations: 1.68 MB / 0.9066 GB, free: 24.46 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02489/1.476, allocations: 23.93 MB / 0.93 GB, free: 112 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005981/1.482, allocations: 361.5 kB / 0.9303 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001933/1.484, allocations: 0.5505 MB / 0.9308 GB, free: 15.21 MB / 0.5762 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.005282/1.489, allocations: 1.43 MB / 0.9322 GB, free: 13.78 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002274/1.491, allocations: 342 kB / 0.9326 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03946/1.531, allocations: 16.56 MB / 0.9487 GB, free: 12.85 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02939/1.56, allocations: 12.29 MB / 0.9607 GB, free: 0.5391 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.701e-05/1.56, allocations: 17.67 kB / 0.9607 GB, free: 0.5234 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-05/1.56, allocations: 11.95 kB / 0.9608 GB, free: 0.5117 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3021/1.862, allocations: 22.21 MB / 0.9824 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.52e-05/1.862, allocations: 19.91 kB / 0.9825 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005957/1.868, allocations: 0.7455 MB / 0.9832 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01901/1.887, allocations: 4.34 MB / 0.9874 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000702/1.888, allocations: 127.3 kB / 0.9876 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01997/1.908, allocations: 16.23 MB / 1.003 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.003865/1.912, allocations: 2.604 MB / 1.006 GB, free: 182.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02485/1.937, allocations: 16.31 MB / 1.022 GB, free: 168.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009959/1.938, allocations: 346.9 kB / 1.022 GB, free: 168.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001116/1.939, allocations: 64.55 kB / 1.022 GB, free: 168.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002564/1.941, allocations: 139.8 kB / 1.022 GB, free: 168.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009165/1.942, allocations: 321.3 kB / 1.023 GB, free: 168 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004546/1.943, allocations: 226.5 kB / 1.023 GB, free: 167.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.003475/1.946, allocations: 3.309 MB / 1.026 GB, free: 164.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9.1e-08/1.946, allocations: 3.828 kB / 1.026 GB, free: 164.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.005409/1.951, allocations: 1.819 MB / 1.028 GB, free: 162.6 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.001315/1.953, allocations: 0.5059 MB / 1.028 GB, free: 162.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01786/1.971, allocations: 14.65 MB / 1.043 GB, free: 147.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.257e-05/1.971, allocations: 2.656 kB / 1.043 GB, free: 147.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.007651/1.978, allocations: 5.138 MB / 1.048 GB, free: 142.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003985/1.982, allocations: 0.6191 MB / 1.048 GB, free: 141.9 MB / 0.5919 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4734:9-4734:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:823:5-823: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: 4.5508023127913475] Failed to read output from testmodel.py, exit status != 0: 1.991438975557685 1.999869902 1.480579488 Calling exit ...