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.001391/0.001391, allocations: 92.7 kB / 19.44 MB, free: 324 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.001815/0.001815, allocations: 161.3 kB / 22.75 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.505/1.505, allocations: 177.1 MB / 203.1 MB, free: 5.617 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.143/0.143, allocations: 17.37 MB / 276.9 MB, free: 11.68 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.924e-06/1.924e-06, allocations: 0 / 352.7 MB, free: 10.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.896e-05/3.088e-05, allocations: 4.703 kB / 352.7 MB, free: 10.34 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.05309/0.05313, allocations: 36.17 MB / 388.9 MB, free: 6.262 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02704/0.08017, allocations: 14.49 MB / 403.3 MB, free: 7.711 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004057/0.08422, allocations: 59.75 kB / 403.4 MB, free: 7.652 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004661/0.08888, allocations: 1.385 MB / 404.8 MB, free: 6.258 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006031/0.09492, allocations: 1.628 MB / 406.4 MB, free: 4.617 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009328/0.1042, allocations: 4.22 MB / 410.6 MB, free: 388 kB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.1521/0.2564, allocations: 5.096 MB / 415.7 MB, free: 33.13 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002407/0.2588, allocations: 1.229 MB / 417 MB, free: 32.88 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007492/0.2663, allocations: 2.98 MB / 419.9 MB, free: 32.66 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004673/0.2709, allocations: 1.917 MB / 421.9 MB, free: 32.48 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00167/0.2726, allocations: 0.5384 MB / 422.4 MB, free: 32.48 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005946/0.2786, allocations: 1.767 MB / 424.2 MB, free: 32.46 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001724/0.2803, allocations: 1.596 MB / 425.8 MB, free: 31.71 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00387/0.2842, allocations: 1.8 MB / 427.6 MB, free: 30.89 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01084/0.295, allocations: 8.402 MB / 436 MB, free: 27.11 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.295, allocations: 4 kB / 436 MB, free: 27.11 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.295, allocations: 0 / 436 MB, free: 27.11 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001642/0.2952, allocations: 0 / 436 MB, free: 27.11 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.00956/0.3047, allocations: 5.931 MB / 441.9 MB, free: 22.62 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.3048, allocations: 12.03 kB / 441.9 MB, free: 22.61 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003631/0.3084, allocations: 2.037 MB / 443.9 MB, free: 20.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003656/0.312, allocations: 2.507 MB / 446.5 MB, free: 18.22 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005841/0.3126, allocations: 0.8012 MB / 447.3 MB, free: 17.37 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005831/0.3132, allocations: 488.7 kB / 447.7 MB, free: 16.9 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01704/0.3303, allocations: 16.14 MB / 463.9 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.213e-05/0.3303, allocations: 192 / 463.9 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004084/0.3308, allocations: 198.4 kB / 464.1 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005884/0.3313, allocations: 0.6396 MB / 464.7 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03735/0.3687, allocations: 24.79 MB / 489.5 MB, free: 7.23 MB / 362.7 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.07539/0.4441, allocations: 37.66 MB / 0.5148 GB, free: 2.012 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01365/0.4577, allocations: 7.89 MB / 0.5225 GB, free: 10.13 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01057/0.4683, allocations: 6.432 MB / 0.5288 GB, free: 3.699 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02491/0.4932, allocations: 11.75 MB / 0.5403 GB, free: 7.973 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.253e-05/0.4933, allocations: 52.56 kB / 0.5403 GB, free: 7.914 MB / 426.7 MB Notification: Performance of pre-optimization done (n=222): time 5.23e-06/0.4933, allocations: 0 / 0.5403 GB, free: 7.914 MB / 426.7 MB Notification: Performance of matching and sorting (n=297): time 0.3172/0.8105, allocations: 54.23 MB / 0.5933 GB, free: 148.4 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02622/0.8367, allocations: 18.41 MB / 0.6113 GB, free: 129.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0028/0.8395, allocations: 2.558 MB / 0.6137 GB, free: 127.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00112/0.8407, allocations: 65.7 kB / 0.6138 GB, free: 127 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001093/0.8417, allocations: 2.498 MB / 0.6163 GB, free: 124.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001543/0.8433, allocations: 1.023 MB / 0.6173 GB, free: 123.5 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002256/0.8455, allocations: 1.005 MB / 0.6182 GB, free: 122.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 4.017e-05/0.8456, allocations: 309.1 kB / 0.6185 GB, free: 122.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009682/0.8553, allocations: 9.544 MB / 0.6278 GB, free: 112.6 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01019/0.8655, allocations: 10.27 MB / 0.6379 GB, free: 102.1 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.2635/1.129, allocations: 69 MB / 0.7053 GB, free: 33.32 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.844e-05/1.129, allocations: 8 kB / 0.7053 GB, free: 33.31 MB / 442.7 MB Notification: Performance of matching and sorting (n=411) (initialization): time 0.03587/1.165, allocations: 22.13 MB / 0.7269 GB, free: 11.15 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.195e-05/1.165, allocations: 19.94 kB / 0.7269 GB, free: 11.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005704/1.165, allocations: 227.9 kB / 0.7271 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02217/1.188, allocations: 7.24 MB / 0.7342 GB, free: 3.699 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01221/1.2, allocations: 1.675 MB / 0.7358 GB, free: 2.035 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2136/1.413, allocations: 23.96 MB / 0.7592 GB, free: 144.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00592/1.419, allocations: 357 kB / 0.7596 GB, free: 144.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00138/1.421, allocations: 0.557 MB / 0.7601 GB, free: 144.2 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.00395/1.425, allocations: 1.434 MB / 0.7615 GB, free: 143.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002046/1.427, allocations: 413.5 kB / 0.7619 GB, free: 143.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04558/1.472, allocations: 16.56 MB / 0.7781 GB, free: 132.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0269/1.499, allocations: 12.29 MB / 0.7901 GB, free: 120.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.215e-05/1.499, allocations: 4 kB / 0.7901 GB, free: 120.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.769e-05/1.499, allocations: 14.58 kB / 0.7901 GB, free: 120.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03957/1.539, allocations: 22.42 MB / 0.812 GB, free: 98.03 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.34e-05/1.539, allocations: 13.81 kB / 0.812 GB, free: 98.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006321/1.545, allocations: 0.744 MB / 0.8127 GB, free: 97.28 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02451/1.57, allocations: 4.891 MB / 0.8175 GB, free: 92.45 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007117/1.57, allocations: 134.3 kB / 0.8176 GB, free: 92.33 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02128/1.592, allocations: 16.29 MB / 0.8335 GB, free: 75.56 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.004421/1.596, allocations: 2.592 MB / 0.8361 GB, free: 72.83 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02631/1.622, allocations: 16.45 MB / 0.8521 GB, free: 56.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008772/1.623, allocations: 352.8 kB / 0.8525 GB, free: 55.87 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009382/1.624, allocations: 66.14 kB / 0.8525 GB, free: 55.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002283/1.627, allocations: 142.5 kB / 0.8527 GB, free: 55.67 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009397/1.627, allocations: 321.2 kB / 0.853 GB, free: 55.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004628/1.628, allocations: 227.9 kB / 0.8532 GB, free: 55.13 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003721/1.632, allocations: 3.308 MB / 0.8564 GB, free: 51.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.1e-08/1.632, allocations: 2.656 kB / 0.8564 GB, free: 51.82 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005778/1.637, allocations: 1.835 MB / 0.8582 GB, free: 49.99 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.00127/1.639, allocations: 0.5587 MB / 0.8588 GB, free: 49.53 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01952/1.658, allocations: 14.67 MB / 0.8731 GB, free: 34.82 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-05/1.658, allocations: 0 / 0.8731 GB, free: 34.82 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008503/1.667, allocations: 5.123 MB / 0.8781 GB, free: 29.64 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003475/1.67, allocations: 0.7766 MB / 0.8788 GB, free: 28.92 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4696:9-4696:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:846:5-846: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.992237445083447]