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.0007454/0.0007454, 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.0008579/0.0008579, allocations: 170.3 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.8807/0.8807, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.09065/0.09065, allocations: 17.37 MB / 276.6 MB, free: 11.84 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 2.054e-06/2.054e-06, allocations: 3.938 kB / 411.4 MB, free: 436 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.641e-05/1.847e-05, allocations: 2.281 kB / 411.4 MB, free: 432 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.3466/0.3466, allocations: 35.97 MB / 447.4 MB, free: 42.69 MB / 410.8 MB Notification: Performance of NFInst.instExpressions: time 0.01365/0.3602, allocations: 14.48 MB / 461.9 MB, free: 38.23 MB / 410.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00174/0.362, allocations: 57.06 kB / 461.9 MB, free: 38.21 MB / 410.8 MB Notification: Performance of NFTyping.typeComponents: time 0.002273/0.3642, allocations: 1.385 MB / 463.3 MB, free: 37.57 MB / 410.8 MB Notification: Performance of NFTyping.typeBindings: time 0.002551/0.3668, allocations: 1.63 MB / 465 MB, free: 36.45 MB / 410.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.004433/0.3712, allocations: 4.224 MB / 469.2 MB, free: 33.87 MB / 410.8 MB Notification: Performance of NFFlatten.flatten: time 0.003613/0.3748, allocations: 5.125 MB / 474.3 MB, free: 31.26 MB / 410.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00102/0.3759, allocations: 1.233 MB / 475.5 MB, free: 30.65 MB / 410.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001799/0.3777, allocations: 2.977 MB / 478.5 MB, free: 29.27 MB / 410.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001155/0.3788, allocations: 1.916 MB / 480.4 MB, free: 28.55 MB / 410.8 MB Notification: Performance of NFPackage.collectConstants: time 0.0003497/0.3792, allocations: 0.5349 MB / 481 MB, free: 28.55 MB / 410.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00259/0.3818, allocations: 1.776 MB / 482.7 MB, free: 28.26 MB / 410.8 MB Notification: Performance of NFScalarize.scalarize: time 0.0005784/0.3823, allocations: 1.592 MB / 484.3 MB, free: 27.29 MB / 410.8 MB Notification: Performance of NFVerifyModel.verify: time 0.001058/0.3834, allocations: 1.796 MB / 486.1 MB, free: 26.39 MB / 410.8 MB Notification: Performance of NFConvertDAE.convert: time 0.007526/0.3909, allocations: 8.395 MB / 494.5 MB, free: 22.65 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3909, allocations: 0 / 494.5 MB, free: 22.65 MB / 410.8 MB Notification: Performance of FrontEnd: time 2.245e-06/0.3909, allocations: 1.219 kB / 494.5 MB, free: 22.65 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0001755/0.3911, allocations: 0 / 494.5 MB, free: 22.65 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.009557/0.4007, allocations: 5.937 MB / 0.4887 GB, free: 19.27 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.169e-05/0.4007, allocations: 10.2 kB / 0.4887 GB, free: 19.27 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008855/0.4016, allocations: 0.7422 MB / 0.4895 GB, free: 18.85 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002494/0.4041, allocations: 1.051 MB / 0.4905 GB, free: 18.38 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003421/0.4075, allocations: 2.479 MB / 0.4929 GB, free: 16.87 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005428/0.4081, allocations: 0.7956 MB / 0.4937 GB, free: 16.33 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004988/0.4086, allocations: 0.4889 MB / 0.4942 GB, free: 16.16 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01162/0.4202, allocations: 16.13 MB / 0.5099 GB, free: 8.98 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.647e-05/0.4202, allocations: 192 / 0.5099 GB, free: 8.98 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002638/0.4205, allocations: 210.3 kB / 0.5101 GB, free: 8.816 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003245/0.4208, allocations: 0.6338 MB / 0.5107 GB, free: 8.609 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01444/0.4353, allocations: 24.8 MB / 0.535 GB, free: 6.902 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.0491/0.4844, allocations: 39.54 MB / 0.5736 GB, free: 15.18 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007402/0.4918, allocations: 7.888 MB / 0.5813 GB, free: 7.281 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005798/0.4976, allocations: 6.44 MB / 0.5876 GB, free: 0.8359 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0157/0.5133, allocations: 12.28 MB / 0.5996 GB, free: 4.516 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.202e-05/0.5133, allocations: 60.5 kB / 0.5996 GB, free: 4.449 MB / 490.8 MB Notification: Performance of pre-optimization done (n=222): time 3.637e-06/0.5133, allocations: 3.938 kB / 0.5996 GB, free: 4.445 MB / 490.8 MB Notification: Performance of matching and sorting (n=297): time 0.2628/0.7762, allocations: 54.36 MB / 0.6527 GB, free: 146.3 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01727/0.7934, allocations: 18.45 MB / 0.6707 GB, free: 136.9 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005957/0.7994, allocations: 6.339 MB / 0.6769 GB, free: 131.2 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0009777/0.8004, allocations: 72.33 kB / 0.677 GB, free: 131.2 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.001099/0.8015, allocations: 2.474 MB / 0.6794 GB, free: 128.7 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001094/0.8026, allocations: 1.024 MB / 0.6804 GB, free: 127.7 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001625/0.8042, allocations: 0.9833 MB / 0.6814 GB, free: 126.7 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 3.69e-05/0.8042, allocations: 313.1 kB / 0.6817 GB, free: 126.4 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007853/0.8121, allocations: 9.544 MB / 0.691 GB, free: 116.8 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007589/0.8197, allocations: 10.28 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.1372/0.9568, allocations: 69 MB / 0.7684 GB, free: 37.47 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.863e-05/0.9569, allocations: 4 kB / 0.7684 GB, free: 37.46 MB / 0.4949 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.02173/0.9786, allocations: 22.1 MB / 0.79 GB, free: 15.31 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 4.058e-05/0.9786, allocations: 19.81 kB / 0.79 GB, free: 15.3 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003742/0.979, allocations: 235.9 kB / 0.7902 GB, free: 15.07 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01062/0.9896, allocations: 6.246 MB / 0.7963 GB, free: 8.805 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006473/0.9961, allocations: 1.666 MB / 0.798 GB, free: 7.137 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2081/1.204, allocations: 24.01 MB / 0.8214 GB, free: 142.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00415/1.208, allocations: 358.8 kB / 0.8217 GB, free: 142.7 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008267/1.209, allocations: 0.5521 MB / 0.8223 GB, free: 142.6 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.002986/1.212, allocations: 1.435 MB / 0.8237 GB, free: 141.9 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001368/1.214, allocations: 0.5567 MB / 0.8242 GB, free: 141.9 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02057/1.234, allocations: 16.76 MB / 0.8406 GB, free: 136.4 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01559/1.25, allocations: 12.3 MB / 0.8526 GB, free: 132.1 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.685e-05/1.25, allocations: 3.844 kB / 0.8526 GB, free: 132.1 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.163e-05/1.25, allocations: 14.58 kB / 0.8526 GB, free: 132.1 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02293/1.273, allocations: 21.23 MB / 0.8734 GB, free: 115.3 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.093e-05/1.273, allocations: 12 kB / 0.8734 GB, free: 115.3 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00311/1.276, allocations: 0.7408 MB / 0.8741 GB, free: 114.6 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009921/1.286, allocations: 4.381 MB / 0.8784 GB, free: 110.2 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006026/1.286, allocations: 127.9 kB / 0.8785 GB, free: 110.1 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01254/1.299, allocations: 16.35 MB / 0.8945 GB, free: 93.37 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.002142/1.301, allocations: 2.628 MB / 0.897 GB, free: 90.61 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01573/1.317, allocations: 16.52 MB / 0.9132 GB, free: 73.91 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001464/1.318, allocations: 0.7677 MB / 0.9139 GB, free: 73.15 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005656/1.319, allocations: 72.48 kB / 0.914 GB, free: 73.08 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00131/1.32, allocations: 135.8 kB / 0.9141 GB, free: 72.95 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005775/1.321, allocations: 321.3 kB / 0.9144 GB, free: 72.64 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002449/1.321, allocations: 223.9 kB / 0.9146 GB, free: 72.42 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.004871/1.326, allocations: 5.997 MB / 0.9205 GB, free: 66.45 MB / 0.4949 GB Notification: Performance of sort global known variables: time 2.01e-07/1.326, allocations: 2.406 kB / 0.9205 GB, free: 66.45 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.004534/1.33, allocations: 1.862 MB / 0.9223 GB, free: 64.61 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.01692/1.347, allocations: 17.34 MB / 0.9392 GB, free: 47.18 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01347/1.361, allocations: 14.65 MB / 0.9535 GB, free: 32.48 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/1.361, allocations: 0 / 0.9535 GB, free: 32.48 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.005112/1.366, allocations: 5.131 MB / 0.9585 GB, free: 27.3 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004051/1.37, allocations: 1.142 MB / 0.9597 GB, free: 26.27 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.082762885838747] Failed to read output from testmodel.py, exit status != 0: 1.3753734789788723 1.381339269 0.989091144 Calling exit ...