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.001338/0.001338, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 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.001455/0.001455, allocations: 212.8 kB / 22.99 MB, free: 4.945 MB / 14.72 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.445/1.445, allocations: 230.6 MB / 256.8 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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.1435/0.1435, allocations: 23.88 MB / 337.1 MB, free: 10.97 MB / 270.1 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: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002326/0.002326, allocations: 67.89 kB / 472.4 MB, free: 7.031 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3739/0.3762, allocations: 59.86 MB / 0.5197 GB, free: 9.77 MB / 382.1 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.0873/0.4635, allocations: 35.7 MB / 0.5546 GB, free: 4.645 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02911/0.4926, allocations: 14.48 MB / 0.5687 GB, free: 7.551 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005247/0.4979, allocations: 55.75 kB / 0.5688 GB, free: 7.496 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005704/0.5036, allocations: 1.386 MB / 0.5701 GB, free: 6.27 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007146/0.5107, allocations: 1.555 MB / 0.5717 GB, free: 4.703 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0114/0.5221, allocations: 4.194 MB / 0.5758 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01051/0.5326, allocations: 4.958 MB / 0.5806 GB, free: 11.51 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003212/0.5358, allocations: 1.221 MB / 0.5818 GB, free: 10.23 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00403/0.5399, allocations: 1.978 MB / 0.5837 GB, free: 8.242 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004478/0.5444, allocations: 2.213 MB / 0.5859 GB, free: 6.02 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001813/0.5462, allocations: 0.5352 MB / 0.5864 GB, free: 5.484 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006408/0.5526, allocations: 1.764 MB / 0.5881 GB, free: 3.719 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002706/0.5553, allocations: 1.577 MB / 0.5897 GB, free: 2.137 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004914/0.5602, allocations: 2.211 MB / 0.5918 GB, free: 15.91 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01521/0.5754, allocations: 8.36 MB / 0.6 GB, free: 7.523 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.01e-05/0.5754, allocations: 4 kB / 0.6 GB, free: 7.52 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.5754, allocations: 0 / 0.6 GB, free: 7.52 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003597/0.5758, allocations: 4 kB / 0.6 GB, free: 7.516 MB / 446.1 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.01605/0.5918, allocations: 5.999 MB / 0.6059 GB, free: 1.449 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.5919, allocations: 8.031 kB / 0.6059 GB, free: 1.441 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003929/0.5958, allocations: 1.043 MB / 0.6069 GB, free: 404 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005769/0.6016, allocations: 2.486 MB / 0.6093 GB, free: 13.85 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001054/0.6026, allocations: 0.7924 MB / 0.6101 GB, free: 12.99 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001405/0.604, allocations: 496.2 kB / 0.6106 GB, free: 12.51 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0265/0.6305, allocations: 16.13 MB / 0.6263 GB, free: 12.32 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001519/0.6307, allocations: 0 / 0.6263 GB, free: 12.32 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00105/0.6317, allocations: 204 kB / 0.6265 GB, free: 12.12 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008401/0.6326, allocations: 0.6357 MB / 0.6271 GB, free: 11.48 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03448/0.667, allocations: 24.79 MB / 0.6513 GB, free: 2.68 MB / 494.1 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.07108/0.7381, allocations: 37.44 MB / 0.6879 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01229/0.7504, allocations: 7.895 MB / 0.6956 GB, free: 5.145 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01047/0.7609, allocations: 6.431 MB / 0.7019 GB, free: 14.71 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02528/0.7862, allocations: 11.73 MB / 0.7133 GB, free: 2.953 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.747e-05/0.7862, allocations: 56.56 kB / 0.7134 GB, free: 2.891 MB / 0.545 GB Notification: Performance of pre-optimization done (n=222): time 5.911e-06/0.7862, allocations: 0 / 0.7134 GB, free: 2.891 MB / 0.545 GB Notification: Performance of matching and sorting (n=297): time 0.4235/1.21, allocations: 54.11 MB / 0.7662 GB, free: 166.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02499/1.235, allocations: 18.39 MB / 0.7842 GB, free: 150.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003602/1.238, allocations: 2.556 MB / 0.7867 GB, free: 147.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001175/1.239, allocations: 68.33 kB / 0.7868 GB, free: 147.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001416/1.241, allocations: 2.499 MB / 0.7892 GB, free: 145.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002029/1.243, allocations: 1.043 MB / 0.7902 GB, free: 144.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003362/1.246, allocations: 1.01 MB / 0.7912 GB, free: 143.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.166e-05/1.246, allocations: 301.1 kB / 0.7915 GB, free: 143.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009651/1.256, allocations: 9.536 MB / 0.8008 GB, free: 133.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01008/1.266, allocations: 10.29 MB / 0.8109 GB, free: 123.2 MB / 0.5606 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.2523/1.518, allocations: 68.76 MB / 0.878 GB, free: 54.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.616e-05/1.518, allocations: 10.69 kB / 0.878 GB, free: 54.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.03071/1.549, allocations: 21.86 MB / 0.8994 GB, free: 32.81 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.216e-05/1.549, allocations: 19.94 kB / 0.8994 GB, free: 32.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005353/1.55, allocations: 227.9 kB / 0.8996 GB, free: 32.57 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01835/1.568, allocations: 6.235 MB / 0.9057 GB, free: 26.34 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01132/1.579, allocations: 1.668 MB / 0.9073 GB, free: 24.68 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02488/1.604, allocations: 23.93 MB / 0.9307 GB, free: 340 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005526/1.61, allocations: 364.4 kB / 0.931 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001649/1.611, allocations: 0.5544 MB / 0.9316 GB, free: 15.43 MB / 0.5762 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.004708/1.616, allocations: 1.425 MB / 0.933 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002133/1.618, allocations: 345.9 kB / 0.9333 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03917/1.657, allocations: 16.55 MB / 0.9495 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02964/1.687, allocations: 12.29 MB / 0.9615 GB, free: 0.75 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.808e-05/1.687, allocations: 7.938 kB / 0.9615 GB, free: 0.7422 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.97e-05/1.687, allocations: 13.48 kB / 0.9615 GB, free: 0.7305 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3371/2.024, allocations: 22.21 MB / 0.9832 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-05/2.024, allocations: 16.5 kB / 0.9832 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006454/2.031, allocations: 0.7455 MB / 0.9839 GB, free: 195.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01984/2.051, allocations: 4.336 MB / 0.9882 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008333/2.051, allocations: 133.2 kB / 0.9883 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02225/2.074, allocations: 16.23 MB / 1.004 GB, free: 184.4 MB / 0.5919 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.004344/2.078, allocations: 2.606 MB / 1.007 GB, free: 182.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02725/2.105, allocations: 16.3 MB / 1.023 GB, free: 168.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001299/2.107, allocations: 348.3 kB / 1.023 GB, free: 168.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001352/2.108, allocations: 65.11 kB / 1.023 GB, free: 168.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002764/2.111, allocations: 142.5 kB / 1.023 GB, free: 168.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009704/2.112, allocations: 324.3 kB / 1.023 GB, free: 168.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005343/2.112, allocations: 226.6 kB / 1.024 GB, free: 168 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.003896/2.116, allocations: 3.313 MB / 1.027 GB, free: 164.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/2.116, allocations: 0 / 1.027 GB, free: 164.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.005744/2.122, allocations: 1.815 MB / 1.029 GB, free: 162.9 MB / 0.5919 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.001415/2.123, allocations: 0.5121 MB / 1.029 GB, free: 162.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01901/2.142, allocations: 14.65 MB / 1.043 GB, free: 147.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.867e-05/2.142, allocations: 4 kB / 1.043 GB, free: 147.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.008059/2.15, allocations: 5.142 MB / 1.048 GB, free: 142.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004425/2.155, allocations: 0.6143 MB / 1.049 GB, free: 142.2 MB / 0.5919 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4734:9-4734:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:823:5-823:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 658] [Calling sys.exit(0), Time elapsed: 4.650751959998161] Failed to read output from testmodel.py, exit status != 0: 2.1650593178346753 2.173932172 1.596067929 Calling exit ...