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.0008459/0.0008459, allocations: 72.17 kB / 9.874 MB, free: 0.8125 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001055/0.001901, allocations: 443.8 kB / 10.31 MB, free: 388 kB / 10.45 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.0007685/0.0007685, allocations: 153.1 kB / 11.19 MB, free: 2.977 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001053/0.001822, allocations: 467.6 kB / 11.65 MB, free: 2.516 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 1.031/1.031, allocations: 177.2 MB / 189.5 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09529/1.127, allocations: 53.65 MB / 243.2 MB, free: 15.59 MB / 250.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.09543/0.09543, allocations: 17.37 MB / 261.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01325/0.1087, allocations: 6.937 MB / 268.2 MB, free: 6.516 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+3.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Examples_WaterElectrolysis",fmuType="me_cs",version="2.0+3.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 269.5 MB, free: 5.293 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.118e-05/2.28e-05, allocations: 2.312 kB / 269.5 MB, free: 5.289 MB / 266.7 MB [/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. [/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. Notification: Performance of NFInst.instantiate(Chemical.Examples.WaterElectrolysis): time 0.1767/0.1767, allocations: 16.83 MB / 286.3 MB, free: 12.48 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02282/0.1995, allocations: 16.18 MB / 302.5 MB, free: 1.062 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004251/0.2038, allocations: 59.06 kB / 302.5 MB, free: 1.043 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004923/0.2087, allocations: 1.452 MB / 304 MB, free: 20 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006414/0.2151, allocations: 1.617 MB / 305.6 MB, free: 14.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007609/0.2227, allocations: 4.485 MB / 310.1 MB, free: 10.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007882/0.2306, allocations: 5.121 MB / 315.2 MB, free: 4.895 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00218/0.2328, allocations: 1.28 MB / 316.5 MB, free: 3.523 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006086/0.2389, allocations: 3.262 MB / 319.8 MB, free: 208 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003965/0.2428, allocations: 1.94 MB / 321.7 MB, free: 14.26 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001796/0.2446, allocations: 0.5312 MB / 322.2 MB, free: 13.73 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00594/0.2506, allocations: 1.802 MB / 324 MB, free: 11.92 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001948/0.2525, allocations: 1.308 MB / 325.3 MB, free: 10.61 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004998/0.2575, allocations: 1.485 MB / 326.8 MB, free: 9.121 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01253/0.27, allocations: 5.637 MB / 332.5 MB, free: 3.465 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.399e-05/0.2701, allocations: 0 / 332.5 MB, free: 3.465 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.2701, allocations: 3.938 kB / 332.5 MB, free: 3.461 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002428/0.2703, allocations: 0 / 332.5 MB, free: 3.461 MB / 314.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.01154/0.2818, allocations: 6.889 MB / 339.3 MB, free: 12.49 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.2819, allocations: 12.03 kB / 339.4 MB, free: 12.48 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000992/0.2829, allocations: 0.7652 MB / 340.1 MB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003112/0.286, allocations: 1.75 MB / 341.9 MB, free: 9.953 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004214/0.2902, allocations: 1.724 MB / 343.6 MB, free: 8.168 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007376/0.291, allocations: 0.7845 MB / 344.4 MB, free: 7.32 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008962/0.2918, allocations: 0.4885 MB / 344.9 MB, free: 6.832 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01071/0.3026, allocations: 5.421 MB / 350.3 MB, free: 1.355 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.041e-05/0.3026, allocations: 384 / 350.3 MB, free: 1.355 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003676/0.303, allocations: 203.9 kB / 350.5 MB, free: 1.156 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006188/0.3036, allocations: 0.6395 MB / 351.1 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008858/0.3125, allocations: 5.296 MB / 356.4 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03808/0.3506, allocations: 19.54 MB / 376 MB, free: 7.469 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003071/0.3536, allocations: 1.062 MB / 377 MB, free: 6.395 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001868/0.3555, allocations: 0.5258 MB / 377.6 MB, free: 5.871 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0136/0.3691, allocations: 6.49 MB / 384 MB, free: 15.35 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.933e-05/0.3692, allocations: 52.56 kB / 384.1 MB, free: 15.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=222): time 4.939e-06/0.3692, allocations: 0 / 384.1 MB, free: 15.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=297): time 0.05531/0.4245, allocations: 15.17 MB / 399.3 MB, free: 44 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009382/0.4339, allocations: 6.83 MB / 406.1 MB, free: 8.824 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003986/0.4378, allocations: 4.28 MB / 410.4 MB, free: 4.566 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000731/0.4386, allocations: 69.64 kB / 410.5 MB, free: 4.492 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007133/0.4393, allocations: 1.475 MB / 411.9 MB, free: 3 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009329/0.4402, allocations: 1.046 MB / 413 MB, free: 1.945 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001439/0.4417, allocations: 0.7018 MB / 413.7 MB, free: 1.234 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.853e-05/0.4417, allocations: 301.1 kB / 414 MB, free: 0.9375 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002351/0.4441, allocations: 1.014 MB / 415 MB, free: 15.92 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00236/0.4464, allocations: 1.739 MB / 416.7 MB, free: 13.88 MB / 410.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.008877/0.4553, allocations: 5.32 MB / 422 MB, free: 8.195 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.69e-05/0.4553, allocations: 8 kB / 422 MB, free: 8.188 MB / 410.7 MB Notification: Performance of matching and sorting (n=411) (initialization): time 0.008938/0.4643, allocations: 3.976 MB / 426 MB, free: 4.145 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.4643, allocations: 16 kB / 426 MB, free: 4.129 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002853/0.4646, allocations: 143.9 kB / 426.2 MB, free: 3.988 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008517/0.4731, allocations: 3.264 MB / 429.4 MB, free: 0.7031 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.15/0.6231, allocations: 1.82 MB / 431.3 MB, free: 103.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01147/0.6346, allocations: 9.551 MB / 440.8 MB, free: 97.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002999/0.6376, allocations: 139.1 kB / 441 MB, free: 97.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000787/0.6384, allocations: 482.7 kB / 441.4 MB, free: 97.22 MB / 410.7 MB 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.001565/0.64, allocations: 297.1 kB / 441.7 MB, free: 97.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001121/0.6411, allocations: 392.9 kB / 442.1 MB, free: 97.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01126/0.6523, allocations: 6.931 MB / 449 MB, free: 96.58 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007023/0.6594, allocations: 3.011 MB / 452 MB, free: 96.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.6594, allocations: 4.344 kB / 452 MB, free: 96.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/0.6594, allocations: 17.2 kB / 452.1 MB, free: 96.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01448/0.6739, allocations: 8.319 MB / 460.4 MB, free: 95.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.937e-05/0.6739, allocations: 11.53 kB / 460.4 MB, free: 95.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004098/0.678, allocations: 0.9571 MB / 461.3 MB, free: 95.29 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007964/0.6788, allocations: 0.584 MB / 461.9 MB, free: 95.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01244/0.6912, allocations: 3.389 MB / 465.3 MB, free: 93.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002972/0.6915, allocations: 95.92 kB / 465.4 MB, free: 93.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009464/0.701, allocations: 9.851 MB / 475.3 MB, free: 82.87 MB / 410.7 MB 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.002025/0.703, allocations: 2.357 MB / 477.6 MB, free: 80.41 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009088/0.7121, allocations: 4.407 MB / 482 MB, free: 75.89 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007146/0.7128, allocations: 66.75 kB / 482.1 MB, free: 75.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001373/0.7142, allocations: 67.98 kB / 482.2 MB, free: 75.76 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006135/0.7148, allocations: 278.7 kB / 482.4 MB, free: 75.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002928/0.7151, allocations: 175.9 kB / 482.6 MB, free: 75.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002173/0.7173, allocations: 2.219 MB / 484.8 MB, free: 73.35 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7173, allocations: 0 / 484.8 MB, free: 73.35 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003294/0.7206, allocations: 1.886 MB / 486.7 MB, free: 71.5 MB / 410.7 MB 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.008878/0.7294, allocations: 5.341 MB / 492.1 MB, free: 66.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008602/0.738, allocations: 3.333 MB / 495.4 MB, free: 62.89 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.737e-05/0.7381, allocations: 55.56 kB / 495.4 MB, free: 62.84 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003638/0.7418, allocations: 2.127 MB / 497.6 MB, free: 60.74 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00484/0.7466, allocations: 1.702 MB / 499.3 MB, free: 59.12 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4091:9-4091:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:743:5-743: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: 2.374217512086034]