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.00107/0.00107, allocations: 93.06 kB / 19.65 MB, free: 276 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.001091/0.001091, allocations: 165 kB / 23.01 MB, free: 1.551 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.045/1.045, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.1037/0.1037, allocations: 17.38 MB / 277.3 MB, free: 11.64 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.824e-06/1.824e-06, allocations: 0 / 353.4 MB, free: 11.03 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.958e-05/3.14e-05, allocations: 2.312 kB / 353.4 MB, free: 11.03 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.03703/0.03706, allocations: 40.76 MB / 394.2 MB, free: 2.309 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0173/0.05436, allocations: 15.97 MB / 410.2 MB, free: 2.277 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002217/0.05658, allocations: 55.75 kB / 410.2 MB, free: 2.223 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002685/0.05926, allocations: 1.393 MB / 411.6 MB, free: 0.8203 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00386/0.06312, allocations: 1.62 MB / 413.2 MB, free: 15.19 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005925/0.06905, allocations: 4.516 MB / 417.7 MB, free: 10.65 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.004425/0.07347, allocations: 5.128 MB / 422.9 MB, free: 5.504 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001208/0.07468, allocations: 1.233 MB / 424.1 MB, free: 4.203 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002299/0.07698, allocations: 2.99 MB / 427.1 MB, free: 1.207 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001651/0.07863, allocations: 1.964 MB / 429.1 MB, free: 15.24 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005222/0.07916, allocations: 0.5352 MB / 429.6 MB, free: 14.7 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002969/0.08212, allocations: 1.775 MB / 431.4 MB, free: 12.93 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008308/0.08295, allocations: 1.608 MB / 433 MB, free: 11.31 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001471/0.08443, allocations: 1.8 MB / 434.8 MB, free: 9.508 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005504/0.08993, allocations: 6.112 MB / 440.9 MB, free: 3.375 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.08994, allocations: 0 / 440.9 MB, free: 3.375 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.08994, allocations: 3.938 kB / 440.9 MB, free: 3.371 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.315e-05/0.09003, allocations: 0 / 440.9 MB, free: 3.371 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.1671/0.2572, allocations: 6.427 MB / 447.3 MB, free: 87.67 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.2572, allocations: 9.062 kB / 447.3 MB, free: 87.67 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002299/0.2595, allocations: 1.978 MB / 449.3 MB, free: 87.32 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002651/0.2622, allocations: 2.205 MB / 451.5 MB, free: 86.94 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003823/0.2625, allocations: 0.7866 MB / 452.3 MB, free: 86.61 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003831/0.2629, allocations: 496.6 kB / 452.8 MB, free: 86.61 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005997/0.2689, allocations: 6.213 MB / 459 MB, free: 86.17 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.702e-05/0.269, allocations: 192 / 459 MB, free: 86.17 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002443/0.2692, allocations: 200.2 kB / 459.2 MB, free: 86.16 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003589/0.2696, allocations: 0.6421 MB / 459.8 MB, free: 86.04 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006952/0.2765, allocations: 6.698 MB / 466.5 MB, free: 85.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02423/0.3008, allocations: 22.73 MB / 489.3 MB, free: 74.8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002576/0.3033, allocations: 1.289 MB / 490.6 MB, free: 74.49 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001642/0.305, allocations: 0.7806 MB / 491.3 MB, free: 74.36 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008074/0.3131, allocations: 6.978 MB / 498.3 MB, free: 70 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.801e-05/0.3131, allocations: 58.67 kB / 498.4 MB, free: 69.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=222): time 2.905e-06/0.3131, allocations: 0 / 498.4 MB, free: 69.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=297): time 0.05351/0.3666, allocations: 19.44 MB / 0.5057 GB, free: 54.85 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01083/0.3774, allocations: 9.26 MB / 0.5147 GB, free: 45.29 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002014/0.3795, allocations: 2.267 MB / 0.5169 GB, free: 43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007009/0.3802, allocations: 69.7 kB / 0.517 GB, free: 42.92 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008632/0.381, allocations: 2.675 MB / 0.5196 GB, free: 40.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008213/0.3818, allocations: 1.051 MB / 0.5206 GB, free: 39.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001542/0.3834, allocations: 0.8928 MB / 0.5215 GB, free: 38.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.668e-05/0.3834, allocations: 480.8 kB / 0.522 GB, free: 37.82 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00266/0.3861, allocations: 1.267 MB / 0.5232 GB, free: 36.56 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002927/0.389, allocations: 2.293 MB / 0.5254 GB, free: 33.88 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.01029/0.3993, allocations: 6.447 MB / 0.5317 GB, free: 27.11 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.238e-05/0.3993, allocations: 4 kB / 0.5317 GB, free: 27.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=411) (initialization): time 0.01135/0.4107, allocations: 5.252 MB / 0.5369 GB, free: 21.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.765e-05/0.4107, allocations: 16 kB / 0.5369 GB, free: 21.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002992/0.411, allocations: 227.9 kB / 0.5371 GB, free: 21.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009675/0.4207, allocations: 3.897 MB / 0.5409 GB, free: 17.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005646/0.4263, allocations: 1.65 MB / 0.5425 GB, free: 16.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01025/0.4366, allocations: 13.34 MB / 0.5555 GB, free: 2.445 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002666/0.4392, allocations: 342.1 kB / 0.5559 GB, free: 2.113 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005986/0.4398, allocations: 0.5544 MB / 0.5564 GB, free: 1.559 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.001879/0.4417, allocations: 339.2 kB / 0.5567 GB, free: 1.258 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001141/0.4428, allocations: 415.8 kB / 0.5571 GB, free: 0.8555 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01437/0.4572, allocations: 8.273 MB / 0.5652 GB, free: 8.566 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009758/0.467, allocations: 4.29 MB / 0.5694 GB, free: 4.277 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.404e-05/0.467, allocations: 4 kB / 0.5694 GB, free: 4.273 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.98e-05/0.467, allocations: 18.61 kB / 0.5694 GB, free: 4.258 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02333/0.4903, allocations: 12.96 MB / 0.5821 GB, free: 7.168 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-05/0.4904, allocations: 15.47 kB / 0.5821 GB, free: 7.156 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003719/0.4941, allocations: 0.725 MB / 0.5828 GB, free: 6.461 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01533/0.5094, allocations: 3.639 MB / 0.5864 GB, free: 2.852 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003596/0.5098, allocations: 134.5 kB / 0.5865 GB, free: 2.723 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01508/0.5249, allocations: 13.49 MB / 0.5997 GB, free: 4.684 MB / 458.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.003134/0.528, allocations: 3.15 MB / 0.6027 GB, free: 1.387 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2051/0.7331, allocations: 5.595 MB / 0.6082 GB, free: 116.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004581/0.7336, allocations: 346.2 kB / 0.6085 GB, free: 116.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003459/0.7339, allocations: 71.89 kB / 0.6086 GB, free: 116.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009872/0.7349, allocations: 129.4 kB / 0.6087 GB, free: 116.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000521/0.7354, allocations: 306.5 kB / 0.609 GB, free: 116.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000241/0.7357, allocations: 218 kB / 0.6092 GB, free: 116.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001572/0.7373, allocations: 1.828 MB / 0.611 GB, free: 116.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7373, allocations: 2.688 kB / 0.611 GB, free: 116.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00396/0.7412, allocations: 1.829 MB / 0.6128 GB, free: 116.2 MB / 458.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.0008491/0.7421, allocations: 0.5439 MB / 0.6133 GB, free: 116.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008268/0.7503, allocations: 4.29 MB / 0.6175 GB, free: 115.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.7503, allocations: 0 / 0.6175 GB, free: 115.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003906/0.7542, allocations: 2.779 MB / 0.6202 GB, free: 114.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00226/0.7565, allocations: 0.7759 MB / 0.621 GB, free: 114.3 MB / 458.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.6651201280765235]