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.0006823/0.0006823, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008418/0.001524, allocations: 435.8 kB / 10.33 MB, free: 368 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.0006782/0.0006782, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008734/0.001552, allocations: 463.6 kB / 11.68 MB, free: 2.484 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.9645/0.9645, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08486/1.049, 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.08847/0.08847, allocations: 17.38 MB / 261.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0106/0.09907, allocations: 6.929 MB / 268.3 MB, free: 6.52 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: translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 269.5 MB, free: 5.246 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.078e-05/2.248e-05, allocations: 2.312 kB / 269.5 MB, free: 5.242 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.1679/0.1679, allocations: 16.97 MB / 286.5 MB, free: 12.41 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02913/0.197, allocations: 16.32 MB / 302.8 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003493/0.2005, allocations: 52.66 kB / 302.9 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003775/0.2043, allocations: 1.459 MB / 304.3 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004797/0.2091, allocations: 1.612 MB / 306 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006812/0.2159, allocations: 4.516 MB / 310.5 MB, free: 9.703 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006276/0.2222, allocations: 5.122 MB / 315.6 MB, free: 4.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001581/0.2238, allocations: 1.295 MB / 316.9 MB, free: 3.184 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003848/0.2276, allocations: 3.249 MB / 320.1 MB, free: 15.88 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002762/0.2304, allocations: 1.94 MB / 322.1 MB, free: 13.93 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001303/0.2317, allocations: 0.5312 MB / 322.6 MB, free: 13.4 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004866/0.2365, allocations: 1.814 MB / 324.4 MB, free: 11.58 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001079/0.2376, allocations: 1.305 MB / 325.7 MB, free: 10.27 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00208/0.2397, allocations: 1.489 MB / 327.2 MB, free: 8.781 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008842/0.2485, allocations: 5.629 MB / 332.8 MB, free: 3.133 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.51e-05/0.2486, allocations: 0 / 332.8 MB, free: 3.133 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2486, allocations: 0 / 332.8 MB, free: 3.133 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002217/0.2488, allocations: 0 / 332.8 MB, free: 3.133 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.008397/0.2572, allocations: 6.897 MB / 339.7 MB, free: 12.15 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.2572, allocations: 12.03 kB / 339.8 MB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002575/0.2598, allocations: 1.753 MB / 341.5 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003623/0.2634, allocations: 1.716 MB / 343.2 MB, free: 8.609 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006446/0.2641, allocations: 0.7884 MB / 344 MB, free: 7.758 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004659/0.2645, allocations: 496.3 kB / 344.5 MB, free: 7.273 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005781/0.2703, allocations: 5.413 MB / 349.9 MB, free: 1.805 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.341e-05/0.2704, allocations: 192 / 349.9 MB, free: 1.805 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002325/0.2706, allocations: 204.1 kB / 350.1 MB, free: 1.605 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004446/0.2711, allocations: 0.6396 MB / 350.7 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004727/0.2758, allocations: 5.301 MB / 356 MB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02531/0.3011, allocations: 17.98 MB / 374 MB, free: 9.496 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002026/0.3031, allocations: 1.054 MB / 375.1 MB, free: 8.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001134/0.3043, allocations: 0.5258 MB / 375.6 MB, free: 7.906 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008501/0.3128, allocations: 5.665 MB / 381.3 MB, free: 2.215 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.815e-05/0.3128, allocations: 60.5 kB / 381.3 MB, free: 2.148 MB / 362.7 MB Notification: Performance of pre-optimization done (n=222): time 4.479e-06/0.3128, allocations: 0 / 381.3 MB, free: 2.148 MB / 362.7 MB Notification: Performance of matching and sorting (n=297): time 0.05274/0.3655, allocations: 15.06 MB / 396.4 MB, free: 3.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01082/0.3764, allocations: 6.755 MB / 403.1 MB, free: 11.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002337/0.3787, allocations: 2.002 MB / 405.1 MB, free: 9.887 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009455/0.3797, allocations: 69.7 kB / 405.2 MB, free: 9.812 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009604/0.3806, allocations: 2.121 MB / 407.3 MB, free: 7.664 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001343/0.382, allocations: 1.034 MB / 408.4 MB, free: 6.621 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001478/0.3834, allocations: 0.7213 MB / 409.1 MB, free: 5.891 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.533e-05/0.3835, allocations: 305.1 kB / 409.4 MB, free: 5.59 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002212/0.3857, allocations: 1.01 MB / 410.4 MB, free: 4.574 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002766/0.3885, allocations: 1.739 MB / 412.1 MB, free: 2.539 MB / 394.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.009119/0.3976, allocations: 5.327 MB / 417.5 MB, free: 12.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.671e-05/0.3976, allocations: 8 kB / 417.5 MB, free: 12.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=411) (initialization): time 0.009597/0.4072, allocations: 3.87 MB / 421.3 MB, free: 8.898 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.602e-05/0.4073, allocations: 16.31 kB / 421.4 MB, free: 8.883 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003351/0.4076, allocations: 147.9 kB / 421.5 MB, free: 8.738 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009515/0.4171, allocations: 3.264 MB / 424.8 MB, free: 5.449 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00815/0.4253, allocations: 1.831 MB / 426.6 MB, free: 3.621 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1662/0.5915, allocations: 9.446 MB / 436 MB, free: 95.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002758/0.5942, allocations: 139.7 kB / 436.2 MB, free: 95.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009009/0.5951, allocations: 481.6 kB / 436.6 MB, free: 95.88 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.002094/0.5972, allocations: 301.7 kB / 436.9 MB, free: 95.76 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001194/0.5984, allocations: 278.3 kB / 437.2 MB, free: 95.76 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01218/0.6106, allocations: 6.759 MB / 444 MB, free: 95.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006508/0.6171, allocations: 3.004 MB / 447 MB, free: 95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.566e-05/0.6171, allocations: 5.375 kB / 447 MB, free: 95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.197e-05/0.6171, allocations: 15.23 kB / 447 MB, free: 95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01498/0.6321, allocations: 8.826 MB / 455.8 MB, free: 93.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.999e-05/0.6321, allocations: 12.06 kB / 455.8 MB, free: 93.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003237/0.6354, allocations: 0.9499 MB / 456.8 MB, free: 93.88 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007719/0.6361, allocations: 317.4 kB / 457.1 MB, free: 93.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00956/0.6457, allocations: 3.126 MB / 460.2 MB, free: 93.74 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005341/0.6462, allocations: 93.81 kB / 460.3 MB, free: 93.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00782/0.6541, allocations: 9.725 MB / 470 MB, free: 85.55 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.001759/0.6558, allocations: 2.325 MB / 472.4 MB, free: 83.14 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007909/0.6637, allocations: 4.285 MB / 476.6 MB, free: 78.74 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006438/0.6644, allocations: 63.84 kB / 476.7 MB, free: 78.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001062/0.6654, allocations: 67.98 kB / 476.8 MB, free: 78.62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005357/0.666, allocations: 275.6 kB / 477 MB, free: 78.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002467/0.6662, allocations: 179.9 kB / 477.2 MB, free: 78.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009614/0.6672, allocations: 1.17 MB / 478.4 MB, free: 77.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.6672, allocations: 0 / 478.4 MB, free: 77.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004036/0.6712, allocations: 1.834 MB / 480.2 MB, free: 75.3 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.0009604/0.6722, allocations: 0.5699 MB / 480.8 MB, free: 74.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008055/0.6802, allocations: 3.332 MB / 484.1 MB, free: 71.62 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001466/0.6804, allocations: 44.44 kB / 484.2 MB, free: 71.58 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003863/0.6842, allocations: 2.125 MB / 486.3 MB, free: 69.51 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003516/0.6877, allocations: 1.028 MB / 487.3 MB, free: 68.54 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4143:9-4143:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:784:5-784: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.2053003748878837]