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.001385/0.001385, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.001639/0.001639, allocations: 173 kB / 23.49 MB, free: 1.059 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.9745/0.9745, allocations: 177.1 MB / 203.8 MB, free: 5.656 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.1055/0.1055, allocations: 17.38 MB / 277.7 MB, free: 11.73 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.473e-06/1.473e-06, allocations: 0 / 353.4 MB, free: 10.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.091e-05/2.238e-05, allocations: 6.312 kB / 353.4 MB, free: 10.31 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.06492/0.06494, allocations: 40.57 MB / 394 MB, free: 1.828 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01718/0.08212, allocations: 15.87 MB / 409.9 MB, free: 1.891 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002266/0.08438, allocations: 59.75 kB / 409.9 MB, free: 1.832 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002529/0.08691, allocations: 1.389 MB / 411.3 MB, free: 444 kB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1364/0.2234, allocations: 1.617 MB / 413 MB, free: 34.38 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00587/0.2292, allocations: 4.5 MB / 417.5 MB, free: 34.17 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004356/0.2336, allocations: 5.112 MB / 422.6 MB, free: 32.84 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001381/0.235, allocations: 1.232 MB / 423.8 MB, free: 32.59 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002562/0.2375, allocations: 2.991 MB / 426.8 MB, free: 31.83 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001657/0.2392, allocations: 1.962 MB / 428.8 MB, free: 31.21 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000471/0.2397, allocations: 0.5373 MB / 429.3 MB, free: 31.21 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00231/0.242, allocations: 1.777 MB / 431.1 MB, free: 31 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006086/0.2426, allocations: 1.599 MB / 432.7 MB, free: 30.12 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001137/0.2437, allocations: 1.804 MB / 434.5 MB, free: 29.3 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003733/0.2474, allocations: 6.109 MB / 440.6 MB, free: 25.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2474, allocations: 0 / 440.6 MB, free: 25.96 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2474, allocations: 0 / 440.6 MB, free: 25.96 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.607e-05/0.2475, allocations: 2.656 kB / 440.6 MB, free: 25.96 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.00503/0.2525, allocations: 6.421 MB / 447 MB, free: 20.36 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.2526, allocations: 8.031 kB / 447 MB, free: 20.36 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001899/0.2545, allocations: 1.985 MB / 449 MB, free: 18.39 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001759/0.2562, allocations: 2.203 MB / 451.2 MB, free: 16.32 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003049/0.2565, allocations: 0.7932 MB / 452 MB, free: 15.47 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003212/0.2569, allocations: 493.9 kB / 452.5 MB, free: 15 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005088/0.2619, allocations: 6.206 MB / 458.7 MB, free: 8.762 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.877e-05/0.262, allocations: 7.25 kB / 458.7 MB, free: 8.758 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002342/0.2622, allocations: 206 kB / 458.9 MB, free: 8.566 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003348/0.2626, allocations: 0.6434 MB / 459.5 MB, free: 7.922 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00628/0.2688, allocations: 6.684 MB / 466.2 MB, free: 1.238 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02497/0.2938, allocations: 22.75 MB / 489 MB, free: 10.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002631/0.2964, allocations: 1.296 MB / 490.3 MB, free: 9.574 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001991/0.2984, allocations: 0.7734 MB / 491 MB, free: 8.801 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008479/0.3069, allocations: 6.965 MB / 498 MB, free: 1.848 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.651e-05/0.307, allocations: 59.39 kB / 498.1 MB, free: 1.781 MB / 362.7 MB Notification: Performance of pre-optimization done (n=222): time 3.286e-06/0.307, allocations: 0 / 498.1 MB, free: 1.781 MB / 362.7 MB Notification: Performance of matching and sorting (n=297): time 0.05545/0.3624, allocations: 19.45 MB / 0.5054 GB, free: 14.69 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0144/0.3768, allocations: 9.264 MB / 0.5144 GB, free: 5.086 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003032/0.3798, allocations: 2.271 MB / 0.5166 GB, free: 2.789 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006671/0.3805, allocations: 69.7 kB / 0.5167 GB, free: 2.715 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001596/0.3821, allocations: 2.663 MB / 0.5193 GB, free: 40 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001202/0.3833, allocations: 1.044 MB / 0.5203 GB, free: 15 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002047/0.3854, allocations: 0.8997 MB / 0.5212 GB, free: 14.09 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.3855, allocations: 483.4 kB / 0.5217 GB, free: 13.62 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003911/0.3894, allocations: 1.261 MB / 0.5229 GB, free: 12.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004152/0.3935, allocations: 2.289 MB / 0.5251 GB, free: 9.676 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.01472/0.4083, allocations: 6.457 MB / 0.5314 GB, free: 2.898 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-05/0.4083, allocations: 6.688 kB / 0.5314 GB, free: 2.895 MB / 410.7 MB Notification: Performance of matching and sorting (n=411) (initialization): time 0.01605/0.4243, allocations: 5.251 MB / 0.5366 GB, free: 13.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/0.4244, allocations: 18.66 kB / 0.5366 GB, free: 13.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004507/0.4248, allocations: 227.9 kB / 0.5368 GB, free: 13.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01097/0.4358, allocations: 3.903 MB / 0.5406 GB, free: 9.641 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005781/0.4416, allocations: 1.648 MB / 0.5422 GB, free: 8.039 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01292/0.4545, allocations: 13.34 MB / 0.5553 GB, free: 10.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00299/0.4575, allocations: 348.9 kB / 0.5556 GB, free: 9.883 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006774/0.4581, allocations: 0.5571 MB / 0.5561 GB, free: 9.328 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.001881/0.46, allocations: 345.2 kB / 0.5565 GB, free: 9.023 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001234/0.4613, allocations: 404.8 kB / 0.5569 GB, free: 8.629 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01536/0.4766, allocations: 8.282 MB / 0.5649 GB, free: 336 kB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1529/0.6295, allocations: 4.282 MB / 0.5691 GB, free: 149.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.579e-05/0.6295, allocations: 9.203 kB / 0.5691 GB, free: 149.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.035e-05/0.6296, allocations: 14.3 kB / 0.5691 GB, free: 149.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01839/0.648, allocations: 12.95 MB / 0.5818 GB, free: 147.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.645e-05/0.648, allocations: 11.59 kB / 0.5818 GB, free: 147.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002583/0.6506, allocations: 0.725 MB / 0.5825 GB, free: 147.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01092/0.6615, allocations: 3.628 MB / 0.586 GB, free: 146.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002448/0.6617, allocations: 130.4 kB / 0.5862 GB, free: 146.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01031/0.672, allocations: 13.5 MB / 0.5994 GB, free: 135.7 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.002083/0.6741, allocations: 3.146 MB / 0.6024 GB, free: 132.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01036/0.6845, allocations: 5.608 MB / 0.6079 GB, free: 129 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005219/0.685, allocations: 341.5 kB / 0.6082 GB, free: 128.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000389/0.6854, allocations: 61.12 kB / 0.6083 GB, free: 128.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.6864, allocations: 131.9 kB / 0.6084 GB, free: 128.7 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005891/0.687, allocations: 303.9 kB / 0.6087 GB, free: 128.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002391/0.6872, allocations: 223.9 kB / 0.6089 GB, free: 128.1 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001672/0.6889, allocations: 1.826 MB / 0.6107 GB, free: 126.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 9e-08/0.6889, allocations: 0 / 0.6107 GB, free: 126.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003627/0.6925, allocations: 1.835 MB / 0.6125 GB, free: 124.5 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.000821/0.6934, allocations: 0.552 MB / 0.613 GB, free: 124.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006929/0.7003, allocations: 4.284 MB / 0.6172 GB, free: 119.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/0.7003, allocations: 0 / 0.6172 GB, free: 119.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003447/0.7037, allocations: 2.784 MB / 0.6199 GB, free: 116.9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002145/0.7059, allocations: 0.7774 MB / 0.6207 GB, free: 116.2 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4695:9-4695:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:856:5-856: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.475948111154139]