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.0006498/0.0006498, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008806/0.00153, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0006782/0.0006782, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008765/0.001555, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.9499/0.9499, allocations: 177.2 MB / 189.7 MB, free: 5.234 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09359/1.043, allocations: 53.67 MB / 243.4 MB, free: 15.49 MB / 250.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.08656/0.08656, allocations: 17.37 MB / 261.5 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01107/0.09763, allocations: 6.929 MB / 268.4 MB, free: 6.406 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.192e-06/1.192e-06, allocations: 0 / 269.7 MB, free: 5.113 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.989e-06/1.118e-05, allocations: 2.312 kB / 269.7 MB, free: 5.109 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.157/0.157, allocations: 16.98 MB / 286.7 MB, free: 12.32 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02076/0.1778, allocations: 16.33 MB / 303 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002184/0.18, allocations: 54.31 kB / 303.1 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002983/0.1829, allocations: 1.457 MB / 304.6 MB, free: 15.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003345/0.1863, allocations: 1.612 MB / 306.2 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005543/0.1918, allocations: 4.512 MB / 310.7 MB, free: 9.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005205/0.197, allocations: 5.124 MB / 315.8 MB, free: 4.383 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001322/0.1984, allocations: 1.288 MB / 317.1 MB, free: 3.004 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003413/0.2018, allocations: 3.253 MB / 320.3 MB, free: 15.69 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002003/0.2038, allocations: 1.94 MB / 322.3 MB, free: 13.75 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007286/0.2045, allocations: 0.5312 MB / 322.8 MB, free: 13.21 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00338/0.2079, allocations: 1.818 MB / 324.6 MB, free: 11.39 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008535/0.2087, allocations: 1.301 MB / 325.9 MB, free: 10.09 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001732/0.2105, allocations: 1.489 MB / 327.4 MB, free: 8.598 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006862/0.2173, allocations: 5.605 MB / 333 MB, free: 2.973 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.806e-06/0.2173, allocations: 3.938 kB / 333 MB, free: 2.969 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2173, allocations: 0 / 333 MB, free: 2.969 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001338/0.2175, allocations: 0 / 333 MB, free: 2.969 MB / 314.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.008319/0.2258, allocations: 6.897 MB / 339.9 MB, free: 11.99 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.2258, allocations: 8.031 kB / 339.9 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002771/0.2286, allocations: 1.753 MB / 341.7 MB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002608/0.2312, allocations: 1.72 MB / 343.4 MB, free: 8.445 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005597/0.2318, allocations: 0.7884 MB / 344.2 MB, free: 7.594 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005227/0.2323, allocations: 488.3 kB / 344.7 MB, free: 7.117 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006498/0.2388, allocations: 5.416 MB / 350.1 MB, free: 1.645 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.848e-05/0.2389, allocations: 192 / 350.1 MB, free: 1.645 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003099/0.2392, allocations: 204.1 kB / 350.3 MB, free: 1.445 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005915/0.2398, allocations: 0.6162 MB / 350.9 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006514/0.2463, allocations: 5.295 MB / 356.2 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02732/0.2736, allocations: 17.98 MB / 374.2 MB, free: 9.363 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002194/0.2758, allocations: 1.054 MB / 375.2 MB, free: 8.293 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001427/0.2772, allocations: 0.5225 MB / 375.8 MB, free: 7.773 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009306/0.2865, allocations: 5.665 MB / 381.4 MB, free: 2.082 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.994e-05/0.2866, allocations: 60.5 kB / 381.5 MB, free: 2.016 MB / 362.7 MB Notification: Performance of pre-optimization done (n=222): time 3.857e-06/0.2866, allocations: 0 / 381.5 MB, free: 2.016 MB / 362.7 MB Notification: Performance of matching and sorting (n=277): time 0.05564/0.3422, allocations: 14.65 MB / 396.1 MB, free: 3.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00907/0.3513, allocations: 6.761 MB / 402.9 MB, free: 12.23 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001544/0.3528, allocations: 1.995 MB / 404.9 MB, free: 10.21 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000411/0.3532, allocations: 69.69 kB / 405 MB, free: 10.14 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008187/0.354, allocations: 2.117 MB / 407.1 MB, free: 7.992 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007543/0.3548, allocations: 0.9837 MB / 408.1 MB, free: 7 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001161/0.356, allocations: 0.6739 MB / 408.7 MB, free: 6.316 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.346e-05/0.356, allocations: 309.1 kB / 409 MB, free: 6.012 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001758/0.3578, allocations: 0.795 MB / 409.8 MB, free: 5.211 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002009/0.3598, allocations: 1.51 MB / 411.3 MB, free: 3.398 MB / 394.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.007088/0.3669, allocations: 4.508 MB / 415.9 MB, free: 14.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.3669, allocations: 4 kB / 415.9 MB, free: 14.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.007728/0.3746, allocations: 3.407 MB / 419.3 MB, free: 11.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.3746, allocations: 16 kB / 419.3 MB, free: 11.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003181/0.375, allocations: 143.9 kB / 419.4 MB, free: 10.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008909/0.3839, allocations: 3.369 MB / 422.8 MB, free: 7.496 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006018/0.3899, allocations: 1.673 MB / 424.5 MB, free: 5.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1492/0.539, allocations: 9.492 MB / 434 MB, free: 98.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002423/0.5415, allocations: 134.3 kB / 434.1 MB, free: 98.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008026/0.5423, allocations: 465.9 kB / 434.5 MB, free: 98.9 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 (302): * Single equations (assignments): 293 * 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 {(3,4,77.8%), (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.00175/0.544, allocations: 289.1 kB / 434.8 MB, free: 98.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001048/0.5451, allocations: 267.1 kB / 435.1 MB, free: 98.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01162/0.5567, allocations: 6.185 MB / 441.3 MB, free: 98.31 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00755/0.5642, allocations: 2.656 MB / 443.9 MB, free: 98.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.5642, allocations: 3.781 kB / 443.9 MB, free: 98.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.443e-05/0.5643, allocations: 12.33 kB / 443.9 MB, free: 98.04 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01596/0.5802, allocations: 8.585 MB / 452.5 MB, free: 96.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.972e-05/0.5802, allocations: 10.12 kB / 452.5 MB, free: 96.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003812/0.5841, allocations: 0.8788 MB / 453.4 MB, free: 96.97 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003961/0.5844, allocations: 302 kB / 453.7 MB, free: 96.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03659/0.621, allocations: 3.326 MB / 457 MB, free: 96.82 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003375/0.6244, allocations: 97.3 kB / 457.1 MB, free: 96.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01891/0.6433, allocations: 9.743 MB / 466.9 MB, free: 89.85 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.004649/0.648, allocations: 2.344 MB / 469.2 MB, free: 87.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007963/0.6559, allocations: 4.142 MB / 473.4 MB, free: 83.28 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005093/0.6564, allocations: 63.59 kB / 473.4 MB, free: 83.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009232/0.6574, allocations: 67.36 kB / 473.5 MB, free: 83.16 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006037/0.658, allocations: 256.8 kB / 473.7 MB, free: 82.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002368/0.6582, allocations: 171.9 kB / 473.9 MB, free: 82.74 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00101/0.6592, allocations: 1.203 MB / 475.1 MB, free: 81.63 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6592, allocations: 3.094 kB / 475.1 MB, free: 81.63 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003916/0.6631, allocations: 1.754 MB / 476.9 MB, free: 79.91 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (180): * Single equations (assignments): 171 * 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%), (3,4,77.8%)} * 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.0008678/0.664, allocations: 0.5547 MB / 477.4 MB, free: 79.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005375/0.6694, allocations: 3.084 MB / 480.5 MB, free: 76.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.364e-05/0.6694, allocations: 47.41 kB / 480.5 MB, free: 76.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002675/0.6721, allocations: 2.373 MB / 482.9 MB, free: 74.12 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002313/0.6744, allocations: 4.714 MB / 487.6 MB, free: 68.65 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4633:9-4633:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:793:5-793: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.1377483820542693]