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.001936/0.001936, allocations: 84.44 kB / 19.18 MB, free: 0.7383 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.002649/0.002649, allocations: 173.9 kB / 22.46 MB, free: 2.102 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.9643/0.9643, allocations: 177.1 MB / 202.8 MB, free: 5.754 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.08733/0.08733, allocations: 17.37 MB / 276.6 MB, free: 11.86 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: Performance of FrontEnd - loaded program: time 1.953e-06/1.953e-06, allocations: 0 / 413 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.737e-05/1.933e-05, allocations: 2.281 kB / 413 MB, free: 12.47 MB / 330.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.03998/0.04, allocations: 44.94 MB / 457.9 MB, free: 11.35 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01858/0.05858, allocations: 14.47 MB / 472.4 MB, free: 13.57 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003189/0.06177, allocations: 59.69 kB / 472.5 MB, free: 13.51 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003427/0.0652, allocations: 1.389 MB / 473.9 MB, free: 12.11 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004549/0.06974, allocations: 1.616 MB / 475.5 MB, free: 10.48 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005938/0.07568, allocations: 4.236 MB / 479.7 MB, free: 6.23 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006658/0.08234, allocations: 5.104 MB / 484.8 MB, free: 1.102 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001696/0.08404, allocations: 1.241 MB / 486 MB, free: 15.8 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003326/0.08736, allocations: 2.978 MB / 489 MB, free: 12.82 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002579/0.08994, allocations: 1.921 MB / 490.9 MB, free: 10.89 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009507/0.09089, allocations: 0.5352 MB / 491.5 MB, free: 10.36 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003481/0.09437, allocations: 1.767 MB / 493.3 MB, free: 8.586 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001066/0.09544, allocations: 1.592 MB / 494.8 MB, free: 6.988 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00242/0.09786, allocations: 1.808 MB / 496.7 MB, free: 5.176 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01052/0.1084, allocations: 8.393 MB / 0.4932 GB, free: 12.76 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.1084, allocations: 4 kB / 0.4932 GB, free: 12.75 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1084, allocations: 0 / 0.4932 GB, free: 12.75 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002433/0.1086, allocations: 0 / 0.4932 GB, free: 12.75 MB / 410.7 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.01006/0.1187, allocations: 5.929 MB / 0.499 GB, free: 6.758 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.1187, allocations: 12.03 kB / 0.499 GB, free: 6.746 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001502/0.1202, allocations: 0.7427 MB / 0.4997 GB, free: 5.992 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002294/0.1225, allocations: 1.047 MB / 0.5008 GB, free: 4.941 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003705/0.1262, allocations: 2.481 MB / 0.5032 GB, free: 2.398 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000589/0.1268, allocations: 0.8001 MB / 0.504 GB, free: 1.535 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005735/0.1274, allocations: 496.3 kB / 0.5044 GB, free: 1.051 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01675/0.1441, allocations: 16.12 MB / 0.5202 GB, free: 0.8711 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.957e-05/0.1442, allocations: 4.172 kB / 0.5202 GB, free: 0.8672 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007124/0.1449, allocations: 207.9 kB / 0.5204 GB, free: 0.6641 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000446/0.1454, allocations: 0.6396 MB / 0.521 GB, free: 24 kB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03014/0.1755, allocations: 24.78 MB / 0.5452 GB, free: 7.227 MB / 458.7 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.2265/0.402, allocations: 39.54 MB / 0.5838 GB, free: 144.8 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009174/0.4112, allocations: 7.886 MB / 0.5915 GB, free: 143.7 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006565/0.4177, allocations: 6.43 MB / 0.5978 GB, free: 141.4 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01583/0.4336, allocations: 12.3 MB / 0.6098 GB, free: 136.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/0.4336, allocations: 56 kB / 0.6099 GB, free: 136.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=222): time 5.25e-06/0.4336, allocations: 0 / 0.6099 GB, free: 136.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=297): time 0.07893/0.5125, allocations: 54.37 MB / 0.663 GB, free: 89.15 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01547/0.528, allocations: 18.45 MB / 0.681 GB, free: 70.38 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005652/0.5337, allocations: 6.338 MB / 0.6872 GB, free: 64.09 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009757/0.5346, allocations: 69.7 kB / 0.6872 GB, free: 64.01 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001074/0.5357, allocations: 2.469 MB / 0.6897 GB, free: 61.69 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001161/0.5369, allocations: 1.029 MB / 0.6907 GB, free: 60.77 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001712/0.5386, allocations: 0.9897 MB / 0.6916 GB, free: 59.78 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 2.444e-05/0.5386, allocations: 305.1 kB / 0.6919 GB, free: 59.48 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006939/0.5455, allocations: 9.548 MB / 0.7012 GB, free: 49.93 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007423/0.553, allocations: 10.27 MB / 0.7113 GB, free: 39.36 MB / 490.7 MB 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.1479/0.7009, allocations: 69 MB / 0.7787 GB, free: 2.672 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.481e-05/0.7009, allocations: 8 kB / 0.7787 GB, free: 2.664 MB / 0.5105 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.1843/0.8852, allocations: 22.08 MB / 0.8002 GB, free: 168.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.795e-05/0.8852, allocations: 14.91 kB / 0.8002 GB, free: 168.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004027/0.8856, allocations: 229.8 kB / 0.8005 GB, free: 168.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01121/0.8969, allocations: 6.268 MB / 0.8066 GB, free: 167.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006304/0.9032, allocations: 1.679 MB / 0.8082 GB, free: 166.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01646/0.9196, allocations: 24.01 MB / 0.8317 GB, free: 147.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004201/0.9238, allocations: 358.6 kB / 0.832 GB, free: 147.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009344/0.9248, allocations: 0.5544 MB / 0.8325 GB, free: 146.9 MB / 0.5105 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.00302/0.9278, allocations: 1.424 MB / 0.8339 GB, free: 145.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001293/0.9291, allocations: 0.5571 MB / 0.8345 GB, free: 145 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0185/0.9476, allocations: 16.76 MB / 0.8509 GB, free: 128.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01366/0.9612, allocations: 12.29 MB / 0.8629 GB, free: 116 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/0.9612, allocations: 13.62 kB / 0.8629 GB, free: 116 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.626e-05/0.9613, allocations: 11.95 kB / 0.8629 GB, free: 116 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02322/0.9845, allocations: 21.23 MB / 0.8836 GB, free: 94.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.25e-05/0.9845, allocations: 15.98 kB / 0.8836 GB, free: 94.69 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00306/0.9876, allocations: 0.7543 MB / 0.8844 GB, free: 93.95 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01022/0.9978, allocations: 4.37 MB / 0.8886 GB, free: 89.61 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005417/0.9983, allocations: 127.9 kB / 0.8888 GB, free: 89.49 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01347/1.012, allocations: 16.34 MB / 0.9047 GB, free: 72.61 MB / 0.5105 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.00235/1.014, allocations: 2.629 MB / 0.9073 GB, free: 69.85 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01725/1.031, allocations: 16.52 MB / 0.9234 GB, free: 53.15 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001458/1.033, allocations: 0.7745 MB / 0.9242 GB, free: 52.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001144/1.034, allocations: 69.23 kB / 0.9242 GB, free: 52.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001677/1.036, allocations: 142 kB / 0.9244 GB, free: 52.18 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006554/1.036, allocations: 327.8 kB / 0.9247 GB, free: 51.87 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003335/1.037, allocations: 223.9 kB / 0.9249 GB, free: 51.65 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006861/1.044, allocations: 5.995 MB / 0.9308 GB, free: 45.68 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.51e-07/1.044, allocations: 0 / 0.9308 GB, free: 45.68 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006807/1.05, allocations: 1.861 MB / 0.9326 GB, free: 43.85 MB / 0.5105 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.0194/1.07, allocations: 17.32 MB / 0.9495 GB, free: 26.47 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01414/1.084, allocations: 14.66 MB / 0.9638 GB, free: 11.77 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.007e-05/1.084, allocations: 4 kB / 0.9638 GB, free: 11.76 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005304/1.089, allocations: 5.136 MB / 0.9688 GB, free: 6.574 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004137/1.093, allocations: 1.126 MB / 0.9699 GB, free: 5.629 MB / 0.5105 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4683:9-4683:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:843:5-843: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.2815529564395547]