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.001013/0.001013, allocations: 80.88 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001285/0.001285, allocations: 181 kB / 23.36 MB, free: 1.133 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.075/1.075, allocations: 177.1 MB / 203.8 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] 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.102/0.102, allocations: 17.39 MB / 277.6 MB, free: 11.52 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.545e-06/2.545e-06, allocations: 0.6094 kB / 300.6 MB, free: 1.84 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.078e-05/2.332e-05, allocations: 3.078 kB / 300.6 MB, free: 1.836 MB / 266.7 MB [/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. [/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. Notification: Performance of NFInst.instantiate(Chemical.Examples.WaterElectrolysis): time 0.04685/0.04687, allocations: 46.28 MB / 346.9 MB, free: 6.262 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0233/0.07018, allocations: 16.19 MB / 363.1 MB, free: 6 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004247/0.07442, allocations: 51.75 kB / 363.2 MB, free: 5.949 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004551/0.07897, allocations: 1.451 MB / 364.6 MB, free: 4.488 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005957/0.08493, allocations: 1.624 MB / 366.2 MB, free: 2.852 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007432/0.09236, allocations: 4.508 MB / 370.8 MB, free: 14.32 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.008012/0.1004, allocations: 5.109 MB / 375.9 MB, free: 9.195 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002367/0.1027, allocations: 1.288 MB / 377.1 MB, free: 7.82 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005277/0.108, allocations: 2.994 MB / 380.1 MB, free: 4.82 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003686/0.1117, allocations: 1.948 MB / 382.1 MB, free: 2.867 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00112/0.1128, allocations: 0.5312 MB / 382.6 MB, free: 2.336 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004869/0.1177, allocations: 1.81 MB / 384.4 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001035/0.1187, allocations: 1.596 MB / 386 MB, free: 14.92 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002455/0.1212, allocations: 1.792 MB / 387.8 MB, free: 13.12 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007692/0.1289, allocations: 6.081 MB / 393.9 MB, free: 7.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1289, allocations: 4 kB / 393.9 MB, free: 7.016 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1289, allocations: 0 / 393.9 MB, free: 7.016 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001362/0.129, allocations: 0 / 393.9 MB, free: 7.016 MB / 362.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.006852/0.1359, allocations: 5.739 MB / 399.6 MB, free: 1.215 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.1359, allocations: 8.031 kB / 399.7 MB, free: 1.207 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002249/0.1382, allocations: 1.753 MB / 401.4 MB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002443/0.1406, allocations: 1.708 MB / 403.1 MB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000475/0.1411, allocations: 0.7884 MB / 403.9 MB, free: 12.83 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000426/0.1415, allocations: 492.3 kB / 404.4 MB, free: 12.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005872/0.1474, allocations: 5.412 MB / 409.8 MB, free: 6.879 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.696e-05/0.1474, allocations: 192 / 409.8 MB, free: 6.879 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002269/0.1477, allocations: 204.1 kB / 410 MB, free: 6.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004444/0.1481, allocations: 0.6435 MB / 410.6 MB, free: 6.035 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005003/0.1531, allocations: 5.293 MB / 415.9 MB, free: 0.7305 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02507/0.1782, allocations: 17.92 MB / 433.8 MB, free: 14.63 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002407/0.1806, allocations: 1.049 MB / 434.9 MB, free: 13.57 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001857/0.1824, allocations: 0.5342 MB / 435.4 MB, free: 13.04 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009498/0.1919, allocations: 5.657 MB / 441.1 MB, free: 7.359 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.382e-05/0.192, allocations: 56.5 kB / 441.1 MB, free: 7.297 MB / 410.7 MB Notification: Performance of pre-optimization done (n=222): time 4.098e-06/0.192, allocations: 0 / 441.1 MB, free: 7.297 MB / 410.7 MB Notification: Performance of matching and sorting (n=297): time 0.2131/0.4051, allocations: 15.03 MB / 456.2 MB, free: 95.07 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009912/0.415, allocations: 6.737 MB / 462.9 MB, free: 91.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002182/0.4172, allocations: 2.001 MB / 464.9 MB, free: 90.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001037/0.4182, allocations: 70.52 kB / 465 MB, free: 90.87 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009634/0.4192, allocations: 2.121 MB / 467.1 MB, free: 90 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001243/0.4204, allocations: 1.04 MB / 468.1 MB, free: 89.44 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002139/0.4226, allocations: 0.7145 MB / 468.9 MB, free: 89.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.568e-05/0.4226, allocations: 311.6 kB / 469.2 MB, free: 89.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003013/0.4256, allocations: 0.9995 MB / 470.2 MB, free: 89.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006503/0.4321, allocations: 1.743 MB / 471.9 MB, free: 88.29 MB / 410.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.03318/0.4653, allocations: 5.324 MB / 477.2 MB, free: 87.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-05/0.4653, allocations: 7.656 kB / 477.2 MB, free: 87.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=411) (initialization): time 0.03134/0.4967, allocations: 3.864 MB / 481.1 MB, free: 87.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.516e-05/0.4967, allocations: 13.62 kB / 481.1 MB, free: 87.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003889/0.4971, allocations: 145.2 kB / 481.3 MB, free: 87.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008739/0.5058, allocations: 3.256 MB / 484.5 MB, free: 86.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007319/0.5132, allocations: 1.611 MB / 486.1 MB, free: 85.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009111/0.5223, allocations: 9.456 MB / 495.6 MB, free: 76.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003792/0.5261, allocations: 136.9 kB / 495.7 MB, free: 76.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008346/0.5269, allocations: 486.2 kB / 496.2 MB, free: 76.46 MB / 410.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.002146/0.529, allocations: 296.4 kB / 496.5 MB, free: 76.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001147/0.5302, allocations: 288.9 kB / 496.8 MB, free: 76.06 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01069/0.5409, allocations: 6.746 MB / 0.4917 GB, free: 70.04 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00626/0.5471, allocations: 2.997 MB / 0.4946 GB, free: 67.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-05/0.5472, allocations: 7.938 kB / 0.4946 GB, free: 67.06 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-05/0.5472, allocations: 11.95 kB / 0.4946 GB, free: 67.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0153/0.5625, allocations: 8.828 MB / 0.5033 GB, free: 58.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.754e-05/0.5625, allocations: 12 kB / 0.5033 GB, free: 58.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003377/0.5659, allocations: 0.8775 MB / 0.5041 GB, free: 57.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0104/0.5763, allocations: 3.12 MB / 0.5072 GB, free: 54.59 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000747/0.577, allocations: 102.6 kB / 0.5073 GB, free: 54.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008603/0.5856, allocations: 9.702 MB / 0.5168 GB, free: 44.51 MB / 410.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.001868/0.5875, allocations: 2.336 MB / 0.519 GB, free: 42.09 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00907/0.5966, allocations: 4.266 MB / 0.5232 GB, free: 37.72 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007162/0.5973, allocations: 304.8 kB / 0.5235 GB, free: 37.43 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005938/0.5979, allocations: 66.58 kB / 0.5236 GB, free: 37.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001292/0.5992, allocations: 75.97 kB / 0.5236 GB, free: 37.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000768/0.5999, allocations: 271.5 kB / 0.5239 GB, free: 37.03 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003601/0.6003, allocations: 179.9 kB / 0.5241 GB, free: 36.85 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001203/0.6015, allocations: 1.171 MB / 0.5252 GB, free: 35.77 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6015, allocations: 0 / 0.5252 GB, free: 35.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004489/0.606, allocations: 1.834 MB / 0.527 GB, free: 33.94 MB / 410.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.001025/0.607, allocations: 0.5559 MB / 0.5275 GB, free: 33.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007752/0.6148, allocations: 3.334 MB / 0.5308 GB, free: 30.24 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.957e-05/0.6148, allocations: 33.31 kB / 0.5308 GB, free: 30.21 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003699/0.6185, allocations: 2.126 MB / 0.5329 GB, free: 28.13 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002798/0.6213, allocations: 0.7368 MB / 0.5336 GB, free: 27.45 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4069:9-4069:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:791:5-791: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: 2.5000629448331892]