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.0009333/0.0009333, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 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.0008879/0.0008879, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.9468/0.9468, allocations: 177.1 MB / 202.8 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.09025/0.09025, allocations: 17.37 MB / 276.6 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: "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Examples_WaterElectrolysis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Examples_WaterElectrolysis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 411.4 MB, free: 412 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.57e-05/1.721e-05, allocations: 2.281 kB / 411.4 MB, free: 408 kB / 378.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.3478/0.3478, allocations: 35.96 MB / 447.4 MB, free: 42.75 MB / 410.8 MB Notification: Performance of NFInst.instExpressions: time 0.01471/0.3625, allocations: 14.48 MB / 461.9 MB, free: 38.29 MB / 410.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001359/0.3639, allocations: 55.34 kB / 461.9 MB, free: 38.28 MB / 410.8 MB Notification: Performance of NFTyping.typeComponents: time 0.002252/0.3661, allocations: 1.396 MB / 463.3 MB, free: 37.63 MB / 410.8 MB Notification: Performance of NFTyping.typeBindings: time 0.002577/0.3687, allocations: 1.621 MB / 465 MB, free: 36.52 MB / 410.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.004529/0.3732, allocations: 4.231 MB / 469.2 MB, free: 33.93 MB / 410.8 MB Notification: Performance of NFFlatten.flatten: time 0.003732/0.377, allocations: 5.125 MB / 474.3 MB, free: 31.32 MB / 410.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001221/0.3782, allocations: 1.231 MB / 475.5 MB, free: 30.71 MB / 410.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002553/0.3807, allocations: 2.983 MB / 478.5 MB, free: 29.32 MB / 410.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001333/0.3821, allocations: 1.912 MB / 480.4 MB, free: 28.61 MB / 410.8 MB Notification: Performance of NFPackage.collectConstants: time 0.0003976/0.3825, allocations: 0.5357 MB / 481 MB, free: 28.61 MB / 410.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002846/0.3853, allocations: 1.777 MB / 482.8 MB, free: 28.32 MB / 410.8 MB Notification: Performance of NFScalarize.scalarize: time 0.0006542/0.386, allocations: 1.585 MB / 484.3 MB, free: 27.36 MB / 410.8 MB Notification: Performance of NFVerifyModel.verify: time 0.001223/0.3872, allocations: 1.802 MB / 486.1 MB, free: 26.45 MB / 410.8 MB Notification: Performance of NFConvertDAE.convert: time 0.009038/0.3962, allocations: 8.392 MB / 494.5 MB, free: 22.71 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3962, allocations: 1.281 kB / 494.5 MB, free: 22.71 MB / 410.8 MB Notification: Performance of FrontEnd: time 3.337e-06/0.3962, allocations: 0.6562 kB / 494.5 MB, free: 22.71 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0002194/0.3965, allocations: 3.938 kB / 494.5 MB, free: 22.71 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.008896/0.4054, allocations: 5.934 MB / 0.4887 GB, free: 19.32 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/0.4054, allocations: 13.52 kB / 0.4888 GB, free: 19.32 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007316/0.4061, allocations: 0.7386 MB / 0.4895 GB, free: 18.91 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001979/0.4081, allocations: 1.051 MB / 0.4905 GB, free: 18.44 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003203/0.4113, allocations: 2.483 MB / 0.4929 GB, free: 16.92 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006354/0.412, allocations: 0.7946 MB / 0.4937 GB, free: 16.38 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005132/0.4125, allocations: 491.9 kB / 0.4942 GB, free: 16.22 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01239/0.4249, allocations: 16.13 MB / 0.5099 GB, free: 8.98 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.791e-05/0.4249, allocations: 4.125 kB / 0.5099 GB, free: 8.977 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002665/0.4252, allocations: 202.9 kB / 0.5101 GB, free: 8.816 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003399/0.4255, allocations: 0.6403 MB / 0.5107 GB, free: 8.605 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01545/0.441, allocations: 24.8 MB / 0.535 GB, free: 6.887 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.04288/0.4839, allocations: 39.54 MB / 0.5736 GB, free: 15.16 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007015/0.4909, allocations: 7.892 MB / 0.5813 GB, free: 7.258 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005474/0.4964, allocations: 6.44 MB / 0.5876 GB, free: 0.8125 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01392/0.5103, allocations: 12.28 MB / 0.5996 GB, free: 4.496 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/0.5103, allocations: 60.5 kB / 0.5996 GB, free: 4.43 MB / 490.8 MB Notification: Performance of pre-optimization done (n=222): time 3.426e-06/0.5103, allocations: 0 / 0.5996 GB, free: 4.43 MB / 490.8 MB Notification: Performance of matching and sorting (n=297): time 0.2569/0.7672, allocations: 54.36 MB / 0.6527 GB, free: 146.5 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01673/0.784, allocations: 18.45 MB / 0.6707 GB, free: 137 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005886/0.7898, allocations: 6.335 MB / 0.6769 GB, free: 131.3 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0009438/0.7908, allocations: 73.7 kB / 0.677 GB, free: 131.2 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.001086/0.7919, allocations: 2.471 MB / 0.6794 GB, free: 128.7 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008242/0.7927, allocations: 1.032 MB / 0.6804 GB, free: 127.7 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001444/0.7941, allocations: 0.9872 MB / 0.6814 GB, free: 126.7 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 2.578e-05/0.7942, allocations: 309 kB / 0.6817 GB, free: 126.4 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006916/0.8011, allocations: 9.543 MB / 0.691 GB, free: 116.9 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007391/0.8085, allocations: 10.27 MB / 0.701 GB, free: 106.3 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.1356/0.9441, allocations: 69.01 MB / 0.7684 GB, free: 37.51 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.543e-05/0.9441, allocations: 8 kB / 0.7684 GB, free: 37.5 MB / 0.4949 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.02207/0.9661, allocations: 22.09 MB / 0.79 GB, free: 15.36 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 3.87e-05/0.9662, allocations: 19.94 kB / 0.79 GB, free: 15.34 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003028/0.9665, allocations: 227.9 kB / 0.7902 GB, free: 15.12 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01034/0.9768, allocations: 6.251 MB / 0.7963 GB, free: 8.855 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006171/0.983, allocations: 1.67 MB / 0.798 GB, free: 7.184 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2172/1.2, allocations: 24.01 MB / 0.8214 GB, free: 142.9 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004059/1.204, allocations: 358.1 kB / 0.8217 GB, free: 142.9 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006359/1.205, allocations: 0.5507 MB / 0.8223 GB, free: 142.8 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.002609/1.207, allocations: 1.427 MB / 0.8237 GB, free: 142.1 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001046/1.209, allocations: 0.5595 MB / 0.8242 GB, free: 142.1 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01933/1.228, allocations: 16.76 MB / 0.8406 GB, free: 136.6 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01469/1.243, allocations: 12.29 MB / 0.8526 GB, free: 132.4 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/1.243, allocations: 3.344 kB / 0.8526 GB, free: 132.4 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.663e-05/1.243, allocations: 14.64 kB / 0.8526 GB, free: 132.4 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02051/1.263, allocations: 21.24 MB / 0.8734 GB, free: 115.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.632e-05/1.263, allocations: 12 kB / 0.8734 GB, free: 115.4 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002795/1.266, allocations: 0.7465 MB / 0.8741 GB, free: 114.7 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009185/1.275, allocations: 4.38 MB / 0.8784 GB, free: 110.4 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002394/1.275, allocations: 127.9 kB / 0.8785 GB, free: 110.2 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01225/1.288, allocations: 16.34 MB / 0.8945 GB, free: 93.51 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.002009/1.29, allocations: 2.63 MB / 0.897 GB, free: 90.75 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01514/1.305, allocations: 16.52 MB / 0.9132 GB, free: 74.05 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001209/1.306, allocations: 0.7728 MB / 0.9139 GB, free: 73.28 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004587/1.306, allocations: 60.78 kB / 0.914 GB, free: 73.22 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001235/1.308, allocations: 135.8 kB / 0.9141 GB, free: 73.09 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005233/1.308, allocations: 330.7 kB / 0.9144 GB, free: 72.77 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002239/1.308, allocations: 223.9 kB / 0.9146 GB, free: 72.55 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.004784/1.313, allocations: 5.998 MB / 0.9205 GB, free: 66.58 MB / 0.4949 GB Notification: Performance of sort global known variables: time 4e-08/1.313, allocations: 0 / 0.9205 GB, free: 66.58 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.003689/1.317, allocations: 1.863 MB / 0.9223 GB, free: 64.74 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.01511/1.332, allocations: 17.33 MB / 0.9392 GB, free: 47.31 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01189/1.344, allocations: 14.65 MB / 0.9535 GB, free: 32.61 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/1.344, allocations: 4 kB / 0.9535 GB, free: 32.61 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.004414/1.348, allocations: 5.136 MB / 0.9585 GB, free: 27.43 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003398/1.352, allocations: 1.136 MB / 0.9597 GB, free: 26.41 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: 3.132413811981678] Failed to read output from testmodel.py, exit status != 0: 1.3575291903689504 1.3632326590000001 0.965637992 Calling exit ...