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.001113/0.001113, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.001121/0.001121, allocations: 169 kB / 23.28 MB, free: 1.223 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 0.974/0.974, allocations: 177.1 MB / 203.7 MB, free: 5.504 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.1034/0.1034, allocations: 17.39 MB / 277.6 MB, free: 11.48 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.323e-06/1.323e-06, allocations: 0 / 353.9 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.04e-05/1.172e-05, allocations: 2.312 kB / 353.9 MB, free: 10.75 MB / 330.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.03012/0.03013, allocations: 40.45 MB / 394.3 MB, free: 2.344 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01557/0.0457, allocations: 15.73 MB / 410.1 MB, free: 2.551 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001805/0.0475, allocations: 55.75 kB / 410.1 MB, free: 2.496 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002634/0.05013, allocations: 1.397 MB / 411.5 MB, free: 1.09 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003668/0.0538, allocations: 1.624 MB / 413.1 MB, free: 15.45 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005308/0.05911, allocations: 4.458 MB / 417.6 MB, free: 10.98 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.004648/0.06376, allocations: 5.136 MB / 422.7 MB, free: 5.824 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001377/0.06514, allocations: 1.225 MB / 424 MB, free: 4.531 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002267/0.0674, allocations: 2.998 MB / 427 MB, free: 1.527 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001471/0.06887, allocations: 1.94 MB / 428.9 MB, free: 15.58 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000464/0.06934, allocations: 0.5352 MB / 429.4 MB, free: 15.05 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002926/0.07226, allocations: 1.771 MB / 431.2 MB, free: 13.27 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000741/0.073, allocations: 1.593 MB / 432.8 MB, free: 11.68 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001119/0.07412, allocations: 1.792 MB / 434.6 MB, free: 9.879 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004669/0.07879, allocations: 6.081 MB / 440.7 MB, free: 3.777 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.0788, allocations: 0 / 440.7 MB, free: 3.777 MB / 410.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.0788, allocations: 0 / 440.7 MB, free: 3.777 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.682e-05/0.07884, allocations: 4 kB / 440.7 MB, free: 3.773 MB / 410.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.1393/0.2181, allocations: 6.343 MB / 447 MB, free: 87.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.2181, allocations: 9.844 kB / 447 MB, free: 87.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002551/0.2207, allocations: 1.977 MB / 449 MB, free: 87.43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002379/0.2231, allocations: 2.101 MB / 451.1 MB, free: 87.05 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004567/0.2235, allocations: 0.79 MB / 451.9 MB, free: 86.72 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004652/0.224, allocations: 493.8 kB / 452.4 MB, free: 86.72 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005803/0.2298, allocations: 5.324 MB / 457.7 MB, free: 86.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-05/0.2299, allocations: 3.188 kB / 457.7 MB, free: 86.29 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002833/0.2301, allocations: 205.1 kB / 457.9 MB, free: 86.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004833/0.2306, allocations: 0.6402 MB / 458.5 MB, free: 86.27 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005118/0.2357, allocations: 5.244 MB / 463.8 MB, free: 86.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02671/0.2625, allocations: 22.13 MB / 485.9 MB, free: 76.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002314/0.2648, allocations: 1.161 MB / 487.1 MB, free: 76.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00152/0.2663, allocations: 0.6636 MB / 487.7 MB, free: 76.14 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00874/0.275, allocations: 6.535 MB / 494.3 MB, free: 73.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.2751, allocations: 58.05 kB / 494.3 MB, free: 73.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=222): time 3.566e-06/0.2751, allocations: 0 / 494.3 MB, free: 73.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=297): time 0.04763/0.3227, allocations: 15.74 MB / 0.4981 GB, free: 62.47 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009131/0.3318, allocations: 8.99 MB / 0.5069 GB, free: 54.04 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00156/0.3334, allocations: 2.219 MB / 0.5091 GB, free: 52.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004619/0.3338, allocations: 69.22 kB / 0.5091 GB, free: 52.39 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009008/0.3347, allocations: 2.688 MB / 0.5118 GB, free: 50.08 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007146/0.3355, allocations: 1.056 MB / 0.5128 GB, free: 49.09 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001336/0.3368, allocations: 0.9085 MB / 0.5137 GB, free: 48.23 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.424e-05/0.3368, allocations: 480.8 kB / 0.5141 GB, free: 47.76 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001982/0.3388, allocations: 1.153 MB / 0.5153 GB, free: 46.62 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002248/0.3411, allocations: 2.192 MB / 0.5174 GB, free: 44.1 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.007926/0.349, allocations: 6.023 MB / 0.5233 GB, free: 37.83 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.349, allocations: 8 kB / 0.5233 GB, free: 37.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=411) (initialization): time 0.009341/0.3583, allocations: 4.998 MB / 0.5282 GB, free: 32.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.3584, allocations: 16 kB / 0.5282 GB, free: 32.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002626/0.3586, allocations: 231.1 kB / 0.5284 GB, free: 32.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007859/0.3665, allocations: 3.282 MB / 0.5316 GB, free: 29.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004707/0.3712, allocations: 1.508 MB / 0.5331 GB, free: 28.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009637/0.3808, allocations: 16 MB / 0.5487 GB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002146/0.383, allocations: 146.6 kB / 0.5488 GB, free: 11.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005281/0.3835, allocations: 0.5271 MB / 0.5494 GB, free: 11.07 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): 1 system {(1,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(4,3), (6,20), (4,3), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.001512/0.385, allocations: 341.8 kB / 0.5497 GB, free: 10.77 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001016/0.386, allocations: 411.2 kB / 0.5501 GB, free: 10.37 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01102/0.397, allocations: 7.859 MB / 0.5577 GB, free: 3.008 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007089/0.4041, allocations: 3.744 MB / 0.5614 GB, free: 15.28 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/0.4041, allocations: 4 kB / 0.5614 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.747e-05/0.4042, allocations: 14.61 kB / 0.5614 GB, free: 15.26 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01624/0.4204, allocations: 11.21 MB / 0.5724 GB, free: 4.305 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.808e-05/0.4204, allocations: 15.98 kB / 0.5724 GB, free: 4.289 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002439/0.4229, allocations: 0.6929 MB / 0.5731 GB, free: 3.625 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009946/0.4328, allocations: 2.992 MB / 0.576 GB, free: 0.6758 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002557/0.4331, allocations: 123.9 kB / 0.5761 GB, free: 0.5547 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01022/0.4433, allocations: 13.12 MB / 0.5889 GB, free: 3.055 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.1429/0.5862, allocations: 3.111 MB / 0.592 GB, free: 102.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0093/0.5955, allocations: 5.027 MB / 0.5969 GB, free: 101.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004297/0.5959, allocations: 328.2 kB / 0.5972 GB, free: 101.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003642/0.5963, allocations: 66.77 kB / 0.5972 GB, free: 101.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008981/0.5972, allocations: 70.47 kB / 0.5973 GB, free: 101.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000515/0.5977, allocations: 301.7 kB / 0.5976 GB, free: 101.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000236/0.5979, allocations: 205.2 kB / 0.5978 GB, free: 101.9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001085/0.599, allocations: 1.532 MB / 0.5993 GB, free: 101.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 8e-08/0.599, allocations: 3.219 kB / 0.5993 GB, free: 101.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00341/0.6024, allocations: 1.769 MB / 0.601 GB, free: 101.7 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.0007795/0.6032, allocations: 0.5739 MB / 0.6016 GB, free: 101.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00554/0.6087, allocations: 3.481 MB / 0.605 GB, free: 101.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.6087, allocations: 2.844 kB / 0.605 GB, free: 101.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002625/0.6114, allocations: 2.589 MB / 0.6075 GB, free: 100.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001721/0.6131, allocations: 0.7843 MB / 0.6083 GB, free: 100.3 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4595:9-4595:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:827:5-827: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.3428642628714442]