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.001449/0.001449, allocations: 101.5 kB / 18.95 MB, free: 1.184 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.001976/0.001976, allocations: 213.3 kB / 22.25 MB, free: 3.578 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.9933/0.9933, allocations: 230.6 MB / 256 MB, free: 9.598 MB / 202.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.1064/0.1064, allocations: 23.88 MB / 336.3 MB, free: 9.953 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: setCommandLineOptions("--fmiFlags=s:cvode") Running command: "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Examples_WaterElectrolysis",fmuType="me_cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Examples_WaterElectrolysis",fmuType="me_cs",version="2.0",platforms={"static"}) [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.002504/0.002504, allocations: 75.89 kB / 472.7 MB, free: 16.35 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1133, allocations: 59.87 MB / 0.5201 GB, free: 4.363 MB / 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.4403/0.5536, allocations: 44.91 MB / 0.5639 GB, free: 2.918 MB / 410.8 MB Notification: Performance of NFInst.instExpressions: time 0.0173/0.5709, allocations: 14.48 MB / 0.5781 GB, free: 13.76 MB / 426.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00405/0.575, allocations: 55.31 kB / 0.5781 GB, free: 13.75 MB / 426.8 MB Notification: Performance of NFTyping.typeComponents: time 0.006766/0.5817, allocations: 1.383 MB / 0.5795 GB, free: 13.11 MB / 426.8 MB Notification: Performance of NFTyping.typeBindings: time 0.008608/0.5903, allocations: 1.561 MB / 0.581 GB, free: 12.06 MB / 426.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.01074/0.6011, allocations: 4.189 MB / 0.5851 GB, free: 9.508 MB / 426.8 MB Notification: Performance of NFFlatten.flatten: time 0.009536/0.6106, allocations: 4.951 MB / 0.5899 GB, free: 6.562 MB / 426.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001457/0.6121, allocations: 1.222 MB / 0.5911 GB, free: 5.809 MB / 426.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002803/0.6149, allocations: 1.986 MB / 0.593 GB, free: 4.633 MB / 426.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0031/0.618, allocations: 2.213 MB / 0.5952 GB, free: 3.172 MB / 426.8 MB Notification: Performance of NFPackage.collectConstants: time 0.0009218/0.6189, allocations: 0.5388 MB / 0.5957 GB, free: 3.168 MB / 426.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004691/0.6236, allocations: 1.758 MB / 0.5974 GB, free: 2.68 MB / 426.8 MB Notification: Performance of NFScalarize.scalarize: time 0.001289/0.6249, allocations: 1.575 MB / 0.599 GB, free: 1.5 MB / 426.8 MB Notification: Performance of NFVerifyModel.verify: time 0.002776/0.6277, allocations: 2.219 MB / 0.6012 GB, free: 8 kB / 426.8 MB Notification: Performance of NFConvertDAE.convert: time 0.01131/0.639, allocations: 8.352 MB / 0.6093 GB, free: 10.11 MB / 442.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.639, allocations: 0 / 0.6093 GB, free: 10.11 MB / 442.8 MB Notification: Performance of FrontEnd: time 2.184e-06/0.639, allocations: 0 / 0.6093 GB, free: 10.11 MB / 442.8 MB Notification: Performance of Transformations before backend: time 0.0002378/0.6392, allocations: 4 kB / 0.6093 GB, free: 10.1 MB / 442.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.01218/0.6514, allocations: 5.999 MB / 0.6152 GB, free: 5.938 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.6514, allocations: 14.67 kB / 0.6152 GB, free: 5.934 MB / 442.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008657/0.6523, allocations: 0.7456 MB / 0.6159 GB, free: 5.375 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002379/0.6547, allocations: 1.049 MB / 0.6169 GB, free: 4.793 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003773/0.6584, allocations: 2.48 MB / 0.6194 GB, free: 3.004 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006267/0.6591, allocations: 0.7939 MB / 0.6201 GB, free: 2.441 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005524/0.6596, allocations: 498.5 kB / 0.6206 GB, free: 2.27 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0177/0.6773, allocations: 16.13 MB / 0.6364 GB, free: 6.434 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-05/0.6774, allocations: 8 kB / 0.6364 GB, free: 6.426 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003416/0.6777, allocations: 200 kB / 0.6366 GB, free: 6.23 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005615/0.6783, allocations: 0.6357 MB / 0.6372 GB, free: 5.594 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02467/0.703, allocations: 24.79 MB / 0.6614 GB, free: 12.79 MB / 490.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.04922/0.7522, allocations: 39.55 MB / 0.7 GB, free: 5.031 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007333/0.7595, allocations: 7.884 MB / 0.7077 GB, free: 13.13 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005898/0.7654, allocations: 6.435 MB / 0.714 GB, free: 6.691 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0155/0.7809, allocations: 12.31 MB / 0.726 GB, free: 10.35 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.781, allocations: 52.56 kB / 0.7261 GB, free: 10.29 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=222): time 4.088e-06/0.781, allocations: 3.938 kB / 0.7261 GB, free: 10.29 MB / 0.5418 GB Notification: Performance of matching and sorting (n=297): time 0.0895/0.8705, allocations: 54.33 MB / 0.7791 GB, free: 3.859 MB / 0.5887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2777/1.148, allocations: 18.44 MB / 0.7971 GB, free: 203.3 MB / 0.5887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007823/1.156, allocations: 6.343 MB / 0.8033 GB, free: 201.1 MB / 0.5887 GB Notification: Performance of collectPreVariables (initialization): time 0.0012/1.157, allocations: 76.58 kB / 0.8034 GB, free: 201.1 MB / 0.5887 GB Notification: Performance of collectInitialEqns (initialization): time 0.001376/1.159, allocations: 2.471 MB / 0.8058 GB, free: 199.6 MB / 0.5887 GB Notification: Performance of collectInitialBindings (initialization): time 0.001416/1.16, allocations: 1.042 MB / 0.8068 GB, free: 198.9 MB / 0.5887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001449/1.161, allocations: 1 MB / 0.8078 GB, free: 198.7 MB / 0.5887 GB Notification: Performance of setup shared object (initialization): time 4.694e-05/1.161, allocations: 301.1 kB / 0.8081 GB, free: 198.4 MB / 0.5887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007066/1.169, allocations: 9.545 MB / 0.8174 GB, free: 194.4 MB / 0.5887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007291/1.176, allocations: 10.27 MB / 0.8274 GB, free: 183.8 MB / 0.5887 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.1331/1.309, allocations: 68.76 MB / 0.8946 GB, free: 115.4 MB / 0.5887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.56e-05/1.309, allocations: 8 kB / 0.8946 GB, free: 115.4 MB / 0.5887 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.02178/1.331, allocations: 22.1 MB / 0.9162 GB, free: 93.26 MB / 0.5887 GB Notification: Performance of prepare postOptimizeDAE: time 3.581e-05/1.331, allocations: 22.94 kB / 0.9162 GB, free: 93.24 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003689/1.331, allocations: 231.9 kB / 0.9164 GB, free: 93.02 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009967/1.341, allocations: 6.23 MB / 0.9225 GB, free: 86.82 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006365/1.347, allocations: 1.667 MB / 0.9241 GB, free: 85.16 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01622/1.364, allocations: 24.03 MB / 0.9476 GB, free: 60.68 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003865/1.368, allocations: 354.1 kB / 0.9479 GB, free: 60.34 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001027/1.369, allocations: 0.5544 MB / 0.9485 GB, free: 59.79 MB / 0.5887 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.002786/1.371, allocations: 1.431 MB / 0.9499 GB, free: 58.35 MB / 0.5887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001213/1.373, allocations: 0.5535 MB / 0.9504 GB, free: 57.79 MB / 0.5887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0178/1.39, allocations: 16.77 MB / 0.9668 GB, free: 41.05 MB / 0.5887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01373/1.404, allocations: 12.29 MB / 0.9788 GB, free: 28.73 MB / 0.5887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/1.404, allocations: 6.656 kB / 0.9788 GB, free: 28.72 MB / 0.5887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.159e-05/1.404, allocations: 15.95 kB / 0.9788 GB, free: 28.71 MB / 0.5887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02361/1.428, allocations: 21.23 MB / 0.9995 GB, free: 7.383 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.339e-05/1.428, allocations: 15.98 kB / 0.9996 GB, free: 7.367 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00318/1.431, allocations: 0.7477 MB / 1 GB, free: 6.629 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0099/1.441, allocations: 4.34 MB / 1.005 GB, free: 2.312 MB / 0.5887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007066/1.442, allocations: 131.9 kB / 1.005 GB, free: 2.184 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2458/1.687, allocations: 16.34 MB / 1.021 GB, free: 194.5 MB / 0.5887 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.002568/1.69, allocations: 2.631 MB / 1.023 GB, free: 192.4 MB / 0.5887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01771/1.708, allocations: 16.54 MB / 1.039 GB, free: 186.2 MB / 0.5887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0012/1.709, allocations: 0.7664 MB / 1.04 GB, free: 186 MB / 0.5887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004483/1.709, allocations: 71.92 kB / 1.04 GB, free: 185.9 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/1.711, allocations: 144.1 kB / 1.04 GB, free: 185.9 MB / 0.5887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007242/1.711, allocations: 319.8 kB / 1.041 GB, free: 185.9 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002663/1.712, allocations: 223.7 kB / 1.041 GB, free: 185.8 MB / 0.5887 GB Notification: Performance of sorting global known variables: time 0.006254/1.718, allocations: 5.993 MB / 1.047 GB, free: 183.5 MB / 0.5887 GB Notification: Performance of sort global known variables: time 2.3e-07/1.718, allocations: 0 / 1.047 GB, free: 183.5 MB / 0.5887 GB Notification: Performance of remove unused functions: time 0.003947/1.722, allocations: 1.861 MB / 1.048 GB, free: 181.7 MB / 0.5887 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.01973/1.742, allocations: 17.33 MB / 1.065 GB, free: 165.2 MB / 0.5887 GB Notification: Performance of simCode: created initialization part: time 0.015/1.757, allocations: 14.66 MB / 1.08 GB, free: 150.5 MB / 0.5887 GB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/1.757, allocations: 4 kB / 1.08 GB, free: 150.5 MB / 0.5887 GB Notification: Performance of simCode: created simulation system equations: time 0.006097/1.763, allocations: 5.132 MB / 1.085 GB, free: 145.3 MB / 0.5887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004409/1.767, allocations: 1.137 MB / 1.086 GB, free: 144.4 MB / 0.5887 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4734:9-4734:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/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: 3.7929940884932876]