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.00149/0.00149, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.00169/0.00169, allocations: 211.3 kB / 22.25 MB, free: 5.086 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.359/1.359, allocations: 230.6 MB / 256 MB, free: 8.02 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.1308/0.1308, allocations: 23.85 MB / 336.3 MB, free: 11.21 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.001958/0.001958, allocations: 71.91 kB / 471.6 MB, free: 7.223 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2636, allocations: 59.86 MB / 0.519 GB, free: 9.859 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.04287/0.3064, allocations: 38.26 MB / 0.5564 GB, free: 2.293 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02265/0.3291, allocations: 16.63 MB / 0.5727 GB, free: 3.035 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002608/0.3317, allocations: 51.75 kB / 0.5727 GB, free: 2.984 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003771/0.3355, allocations: 1.474 MB / 0.5741 GB, free: 1.688 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004064/0.3395, allocations: 1.563 MB / 0.5757 GB, free: 116 kB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007698/0.3472, allocations: 4.622 MB / 0.5802 GB, free: 11.47 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00658/0.3538, allocations: 4.962 MB / 0.585 GB, free: 6.484 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001674/0.3555, allocations: 1.244 MB / 0.5862 GB, free: 5.18 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002187/0.3577, allocations: 1.978 MB / 0.5882 GB, free: 3.195 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00279/0.3605, allocations: 2.506 MB / 0.5906 GB, free: 0.6797 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006597/0.3611, allocations: 0.5352 MB / 0.5911 GB, free: 148 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004573/0.3657, allocations: 2.38 MB / 0.5935 GB, free: 13.76 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001268/0.367, allocations: 1.573 MB / 0.595 GB, free: 12.18 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00261/0.3696, allocations: 2.895 MB / 0.5978 GB, free: 9.273 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009968/0.3795, allocations: 8.488 MB / 0.6061 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.3795, allocations: 4 kB / 0.6061 GB, free: 0.75 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.3795, allocations: 0 / 0.6061 GB, free: 0.75 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.836e-05/0.3796, allocations: 4 kB / 0.6061 GB, free: 0.7461 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.009864/0.3895, allocations: 5.987 MB / 0.612 GB, free: 10.68 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3895, allocations: 8.031 kB / 0.612 GB, free: 10.68 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002076/0.3916, allocations: 0.9573 MB / 0.6129 GB, free: 9.715 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003931/0.3955, allocations: 2.474 MB / 0.6153 GB, free: 7.184 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007386/0.3963, allocations: 0.8002 MB / 0.6161 GB, free: 6.32 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006267/0.3969, allocations: 492.2 kB / 0.6166 GB, free: 5.84 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01838/0.4153, allocations: 16.08 MB / 0.6323 GB, free: 5.707 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.315e-05/0.4154, allocations: 0 / 0.6323 GB, free: 5.707 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003747/0.4157, allocations: 204 kB / 0.6325 GB, free: 5.508 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006723/0.4164, allocations: 0.6357 MB / 0.6331 GB, free: 4.871 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0269/0.4433, allocations: 24.78 MB / 0.6573 GB, free: 12.07 MB / 0.4981 GB 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.06026/0.5036, allocations: 41.84 MB / 0.6982 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01018/0.5137, allocations: 7.856 MB / 0.7058 GB, free: 9.98 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008122/0.5219, allocations: 6.404 MB / 0.7121 GB, free: 3.57 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02318/0.545, allocations: 14.22 MB / 0.726 GB, free: 5.309 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.5451, allocations: 52.56 kB / 0.726 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=222): time 3.617e-06/0.5451, allocations: 0 / 0.726 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of matching and sorting (n=297): time 0.3135/0.8586, allocations: 54.13 MB / 0.7789 GB, free: 155.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.024/0.8826, allocations: 18.7 MB / 0.7972 GB, free: 136.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005904/0.8885, allocations: 6.305 MB / 0.8033 GB, free: 130.4 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009075/0.8894, allocations: 69.7 kB / 0.8034 GB, free: 130.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001271/0.8907, allocations: 2.477 MB / 0.8058 GB, free: 128 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001153/0.8918, allocations: 1.038 MB / 0.8068 GB, free: 127.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001935/0.8938, allocations: 0.9904 MB / 0.8078 GB, free: 126.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 2.893e-05/0.8938, allocations: 309.1 kB / 0.8081 GB, free: 125.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008444/0.9022, allocations: 9.505 MB / 0.8174 GB, free: 116.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008745/0.911, allocations: 10.24 MB / 0.8274 GB, free: 105.8 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.2485/1.16, allocations: 69.4 MB / 0.8951 GB, free: 36.66 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.619e-05/1.16, allocations: 9.094 kB / 0.8951 GB, free: 36.65 MB / 0.5606 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.02747/1.187, allocations: 22.02 MB / 0.9167 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/1.187, allocations: 16 kB / 0.9167 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004747/1.188, allocations: 231.9 kB / 0.9169 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01734/1.205, allocations: 6.227 MB / 0.923 GB, free: 8.156 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01043/1.215, allocations: 1.652 MB / 0.9246 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02987/1.245, allocations: 24.25 MB / 0.9483 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00551/1.251, allocations: 336.3 kB / 0.9486 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001182/1.252, allocations: 0.5544 MB / 0.9491 GB, free: 12.93 MB / 0.5919 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.00324/1.255, allocations: 1.429 MB / 0.9505 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001655/1.257, allocations: 0.5664 MB / 0.9511 GB, free: 10.94 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2427/1.499, allocations: 16.66 MB / 0.9673 GB, free: 201.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02498/1.524, allocations: 12.21 MB / 0.9793 GB, free: 197.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.032e-05/1.524, allocations: 4.625 kB / 0.9793 GB, free: 197.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-05/1.524, allocations: 14.06 kB / 0.9793 GB, free: 197.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03678/1.561, allocations: 23.23 MB / 1.002 GB, free: 186.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.926e-05/1.561, allocations: 17.89 kB / 1.002 GB, free: 186.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005519/1.567, allocations: 0.7294 MB / 1.003 GB, free: 186.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01883/1.586, allocations: 4.338 MB / 1.007 GB, free: 184 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006732/1.586, allocations: 135.5 kB / 1.007 GB, free: 183.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01946/1.606, allocations: 16.7 MB / 1.023 GB, free: 167.9 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.004167/1.61, allocations: 2.678 MB / 1.026 GB, free: 165.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02483/1.635, allocations: 16.45 MB / 1.042 GB, free: 148.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001731/1.636, allocations: 0.762 MB / 1.043 GB, free: 148.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008747/1.637, allocations: 72.16 kB / 1.043 GB, free: 148.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002178/1.64, allocations: 119.9 kB / 1.043 GB, free: 148.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007053/1.64, allocations: 325.6 kB / 1.043 GB, free: 147.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003137/1.641, allocations: 223.9 kB / 1.044 GB, free: 147.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005803/1.646, allocations: 5.991 MB / 1.049 GB, free: 141.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/1.646, allocations: 2.219 kB / 1.049 GB, free: 141.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.004345/1.651, allocations: 1.862 MB / 1.051 GB, free: 139.9 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.0009351/1.652, allocations: 0.5191 MB / 1.052 GB, free: 139.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01622/1.668, allocations: 14.59 MB / 1.066 GB, free: 124.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.747e-06/1.668, allocations: 3.938 kB / 1.066 GB, free: 124.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.006946/1.675, allocations: 5.106 MB / 1.071 GB, free: 119.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004464/1.679, allocations: 1.125 MB / 1.072 GB, free: 118.7 MB / 0.5919 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4733:9-4733:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:822:5-822: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.9534188380930573] Failed to read output from testmodel.py, exit status != 0: 1.6875661190133542 1.695771131 1.314190392 Calling exit ...