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.0007987/0.0007987, allocations: 76.45 kB / 19.93 MB, free: 4.629 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.0007889/0.0007889, allocations: 177.9 kB / 23.22 MB, free: 1.34 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.8486/0.8486, allocations: 177.1 MB / 203.5 MB, free: 5.727 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.08193/0.08193, allocations: 17.37 MB / 277.3 MB, free: 11.83 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.443e-06/1.443e-06, allocations: 0 / 412.7 MB, free: 15.93 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.113e-05/2.257e-05, allocations: 8.891 kB / 412.7 MB, free: 15.92 MB / 394.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.2919/0.2919, allocations: 35.96 MB / 448.7 MB, free: 42.97 MB / 410.8 MB Notification: Performance of NFInst.instExpressions: time 0.01143/0.3033, allocations: 14.48 MB / 463.1 MB, free: 38.42 MB / 410.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001329/0.3047, allocations: 54.03 kB / 463.2 MB, free: 38.41 MB / 410.8 MB Notification: Performance of NFTyping.typeComponents: time 0.002119/0.3068, allocations: 1.393 MB / 464.6 MB, free: 37.76 MB / 410.8 MB Notification: Performance of NFTyping.typeBindings: time 0.00204/0.3088, allocations: 1.625 MB / 466.2 MB, free: 36.64 MB / 410.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.003992/0.3128, allocations: 4.225 MB / 470.4 MB, free: 34.06 MB / 410.8 MB Notification: Performance of NFFlatten.flatten: time 0.003219/0.316, allocations: 5.109 MB / 475.5 MB, free: 31.46 MB / 410.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001101/0.3171, allocations: 1.238 MB / 476.8 MB, free: 30.85 MB / 410.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002188/0.3193, allocations: 2.984 MB / 479.8 MB, free: 29.46 MB / 410.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001234/0.3206, allocations: 1.914 MB / 481.7 MB, free: 28.75 MB / 410.8 MB Notification: Performance of NFPackage.collectConstants: time 0.0003681/0.3209, allocations: 0.5334 MB / 482.2 MB, free: 28.75 MB / 410.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002392/0.3233, allocations: 1.774 MB / 484 MB, free: 28.46 MB / 410.8 MB Notification: Performance of NFScalarize.scalarize: time 0.000562/0.3239, allocations: 1.595 MB / 485.6 MB, free: 27.49 MB / 410.8 MB Notification: Performance of NFVerifyModel.verify: time 0.001034/0.3249, allocations: 1.799 MB / 487.4 MB, free: 26.59 MB / 410.8 MB Notification: Performance of NFConvertDAE.convert: time 0.00624/0.3312, allocations: 8.4 MB / 495.8 MB, free: 22.84 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.3312, allocations: 1.531 kB / 495.8 MB, free: 22.84 MB / 410.8 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3312, allocations: 0 / 495.8 MB, free: 22.84 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0001014/0.3313, allocations: 0 / 495.8 MB, free: 22.84 MB / 410.8 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.008846/0.3401, allocations: 5.933 MB / 0.49 GB, free: 19.46 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.3402, allocations: 14.38 kB / 0.49 GB, free: 19.45 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002051/0.3422, allocations: 1.047 MB / 0.491 GB, free: 18.99 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003054/0.3453, allocations: 2.483 MB / 0.4934 GB, free: 17.47 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005242/0.3458, allocations: 0.7946 MB / 0.4942 GB, free: 16.93 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004837/0.3463, allocations: 496.6 kB / 0.4947 GB, free: 16.76 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01299/0.3593, allocations: 16.14 MB / 0.5104 GB, free: 9.598 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.242e-05/0.3593, allocations: 192 / 0.5104 GB, free: 9.598 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002643/0.3596, allocations: 203.6 kB / 0.5106 GB, free: 9.438 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003377/0.3599, allocations: 0.6374 MB / 0.5112 GB, free: 9.23 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01464/0.3746, allocations: 24.8 MB / 0.5355 GB, free: 7.418 MB / 426.8 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0383/0.4129, allocations: 37.44 MB / 0.572 GB, free: 1.816 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007217/0.4201, allocations: 7.888 MB / 0.5797 GB, free: 9.918 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005101/0.4252, allocations: 6.44 MB / 0.586 GB, free: 3.473 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01274/0.4379, allocations: 11.72 MB / 0.5975 GB, free: 7.719 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.197e-05/0.438, allocations: 52.56 kB / 0.5975 GB, free: 7.66 MB / 490.8 MB Notification: Performance of pre-optimization done (n=222): time 4.147e-06/0.438, allocations: 0 / 0.5975 GB, free: 7.66 MB / 490.8 MB Notification: Performance of matching and sorting (n=297): time 0.2408/0.6787, allocations: 54.15 MB / 0.6504 GB, free: 148 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01658/0.6953, allocations: 18.38 MB / 0.6683 GB, free: 138.8 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002079/0.6974, allocations: 2.559 MB / 0.6708 GB, free: 137.8 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0007437/0.6981, allocations: 71.92 kB / 0.6709 GB, free: 137.7 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007093/0.6989, allocations: 2.494 MB / 0.6733 GB, free: 135.6 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007493/0.6996, allocations: 1.031 MB / 0.6743 GB, free: 134.7 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001464/0.7011, allocations: 1.001 MB / 0.6753 GB, free: 133.9 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 2.002e-05/0.7011, allocations: 301.1 kB / 0.6756 GB, free: 133.6 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006427/0.7075, allocations: 9.542 MB / 0.6849 GB, free: 124 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006575/0.7141, allocations: 10.28 MB / 0.695 GB, free: 113.5 MB / 0.4949 GB 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.1311/0.8451, allocations: 68.99 MB / 0.7623 GB, free: 44.7 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.132e-05/0.8452, allocations: 8 kB / 0.7623 GB, free: 44.69 MB / 0.4949 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.01916/0.8643, allocations: 21.87 MB / 0.7837 GB, free: 22.8 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 2.804e-05/0.8644, allocations: 19.94 kB / 0.7837 GB, free: 22.78 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002662/0.8646, allocations: 232.7 kB / 0.7839 GB, free: 22.55 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009445/0.8741, allocations: 6.26 MB / 0.7901 GB, free: 16.31 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00553/0.8796, allocations: 1.668 MB / 0.7917 GB, free: 14.65 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1787/1.058, allocations: 23.92 MB / 0.815 GB, free: 147.1 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003215/1.062, allocations: 361 kB / 0.8154 GB, free: 147 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005815/1.062, allocations: 0.5501 MB / 0.8159 GB, free: 147 MB / 0.4949 GB 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.002717/1.065, allocations: 1.425 MB / 0.8173 GB, free: 146.3 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008776/1.066, allocations: 350.3 kB / 0.8177 GB, free: 146.3 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01729/1.083, allocations: 16.55 MB / 0.8338 GB, free: 140.8 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01457/1.098, allocations: 12.29 MB / 0.8458 GB, free: 136.6 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-05/1.098, allocations: 5.5 kB / 0.8458 GB, free: 136.6 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.81e-05/1.098, allocations: 19.92 kB / 0.8458 GB, free: 136.6 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02111/1.119, allocations: 22.21 MB / 0.8675 GB, free: 122.1 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.556e-05/1.119, allocations: 12 kB / 0.8676 GB, free: 122.1 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002738/1.121, allocations: 0.7512 MB / 0.8683 GB, free: 121.3 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009047/1.13, allocations: 4.376 MB / 0.8726 GB, free: 117 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000222/1.131, allocations: 131.9 kB / 0.8727 GB, free: 116.9 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01182/1.143, allocations: 16.21 MB / 0.8885 GB, free: 100.2 MB / 0.4949 GB 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.002033/1.145, allocations: 2.6 MB / 0.8911 GB, free: 97.49 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01527/1.16, allocations: 16.29 MB / 0.907 GB, free: 81.02 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006902/1.161, allocations: 348.9 kB / 0.9073 GB, free: 80.68 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003694/1.161, allocations: 59.66 kB / 0.9074 GB, free: 80.63 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/1.162, allocations: 143.6 kB / 0.9075 GB, free: 80.49 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005291/1.162, allocations: 323.9 kB / 0.9078 GB, free: 80.18 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002365/1.163, allocations: 223.9 kB / 0.908 GB, free: 79.96 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.002237/1.165, allocations: 3.31 MB / 0.9112 GB, free: 76.64 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.7e-07/1.165, allocations: 0 / 0.9112 GB, free: 76.64 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.003404/1.168, allocations: 1.815 MB / 0.913 GB, free: 74.84 MB / 0.4949 GB 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.0007495/1.169, allocations: 0.5243 MB / 0.9135 GB, free: 74.41 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01129/1.18, allocations: 14.65 MB / 0.9278 GB, free: 59.71 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/1.18, allocations: 0 / 0.9278 GB, free: 59.71 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.004162/1.185, allocations: 5.133 MB / 0.9329 GB, free: 54.53 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001795/1.186, allocations: 0.6232 MB / 0.9335 GB, free: 53.96 MB / 0.4949 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4676:9-4676:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:836:5-836: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.7723677624017] Failed to read output from testmodel.py, exit status != 0: 1.1913933865725994 1.19664015 0.864192748 Calling exit ...