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.0007306/0.0007306, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 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.0008856/0.0008856, allocations: 169 kB / 23.02 MB, free: 1.547 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 1.021/1.021, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.09955/0.09955, allocations: 17.38 MB / 277.3 MB, free: 11.64 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.303e-06/1.303e-06, allocations: 0 / 353.4 MB, free: 9.977 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.438e-05/2.568e-05, allocations: 9.266 kB / 353.4 MB, free: 9.969 MB / 282.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.04637/0.0464, allocations: 40.74 MB / 394.2 MB, free: 1.305 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02101/0.06741, allocations: 15.97 MB / 410.1 MB, free: 1.266 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001953/0.06936, allocations: 55.75 kB / 410.2 MB, free: 1.211 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1472/0.2166, allocations: 1.388 MB / 411.6 MB, free: 34.48 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004352/0.2209, allocations: 1.625 MB / 413.2 MB, free: 34.33 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005775/0.2267, allocations: 4.524 MB / 417.7 MB, free: 34.11 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005245/0.2319, allocations: 5.121 MB / 422.9 MB, free: 32.78 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001432/0.2334, allocations: 1.239 MB / 424.1 MB, free: 32.53 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00316/0.2365, allocations: 2.996 MB / 427.1 MB, free: 31.62 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001877/0.2384, allocations: 1.958 MB / 429.1 MB, free: 31 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005867/0.239, allocations: 0.5323 MB / 429.6 MB, free: 31 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002793/0.2418, allocations: 1.771 MB / 431.4 MB, free: 30.8 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006119/0.2424, allocations: 1.6 MB / 433 MB, free: 29.92 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001102/0.2435, allocations: 1.806 MB / 434.8 MB, free: 29.09 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003875/0.2474, allocations: 6.1 MB / 440.9 MB, free: 25.5 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2474, allocations: 0 / 440.9 MB, free: 25.5 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2474, allocations: 0 / 440.9 MB, free: 25.5 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.933e-05/0.2474, allocations: 2.656 kB / 440.9 MB, free: 25.5 MB / 330.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.004892/0.2523, allocations: 6.424 MB / 447.3 MB, free: 19.86 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.2524, allocations: 8.031 kB / 447.3 MB, free: 19.85 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001791/0.2542, allocations: 1.993 MB / 449.3 MB, free: 17.88 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001765/0.2559, allocations: 2.2 MB / 451.5 MB, free: 15.81 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003105/0.2562, allocations: 0.7884 MB / 452.3 MB, free: 14.97 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003368/0.2566, allocations: 491 kB / 452.8 MB, free: 14.5 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005055/0.2616, allocations: 6.212 MB / 459 MB, free: 8.254 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.802e-05/0.2617, allocations: 192 / 459 MB, free: 8.254 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002163/0.2619, allocations: 205 kB / 459.2 MB, free: 8.062 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003176/0.2622, allocations: 0.6395 MB / 459.8 MB, free: 7.422 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00576/0.268, allocations: 6.69 MB / 466.5 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02332/0.2913, allocations: 22.74 MB / 489.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002431/0.2937, allocations: 1.3 MB / 490.5 MB, free: 9.074 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001584/0.2953, allocations: 0.7656 MB / 491.3 MB, free: 8.309 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01013/0.3054, allocations: 6.97 MB / 498.3 MB, free: 1.348 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.352e-05/0.3055, allocations: 61.36 kB / 498.3 MB, free: 1.281 MB / 362.7 MB Notification: Performance of pre-optimization done (n=222): time 4.738e-06/0.3055, allocations: 0 / 498.3 MB, free: 1.281 MB / 362.7 MB Notification: Performance of matching and sorting (n=297): time 0.06707/0.3726, allocations: 19.44 MB / 0.5056 GB, free: 14.2 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01201/0.3846, allocations: 9.269 MB / 0.5147 GB, free: 4.59 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002094/0.3867, allocations: 2.26 MB / 0.5169 GB, free: 2.305 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005443/0.3872, allocations: 65.7 kB / 0.517 GB, free: 2.234 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002083/0.3893, allocations: 2.667 MB / 0.5196 GB, free: 15.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001309/0.3906, allocations: 1.053 MB / 0.5206 GB, free: 14.52 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002405/0.393, allocations: 0.8928 MB / 0.5215 GB, free: 13.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.3931, allocations: 480.8 kB / 0.5219 GB, free: 13.14 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003723/0.3969, allocations: 1.267 MB / 0.5232 GB, free: 11.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003351/0.4002, allocations: 2.291 MB / 0.5254 GB, free: 9.184 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.01087/0.4111, allocations: 6.454 MB / 0.5317 GB, free: 2.406 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-05/0.4111, allocations: 4 kB / 0.5317 GB, free: 2.402 MB / 410.7 MB Notification: Performance of matching and sorting (n=411) (initialization): time 0.01148/0.4226, allocations: 5.258 MB / 0.5368 GB, free: 13.28 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.4226, allocations: 18.97 kB / 0.5369 GB, free: 13.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003105/0.4229, allocations: 228.3 kB / 0.5371 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009763/0.4327, allocations: 3.898 MB / 0.5409 GB, free: 9.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005485/0.4382, allocations: 1.647 MB / 0.5425 GB, free: 7.562 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01178/0.4499, allocations: 13.33 MB / 0.5555 GB, free: 9.746 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002739/0.4527, allocations: 350 kB / 0.5558 GB, free: 9.406 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000675/0.4533, allocations: 0.5544 MB / 0.5564 GB, free: 8.852 MB / 442.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.001859/0.4552, allocations: 348.1 kB / 0.5567 GB, free: 8.543 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001148/0.4563, allocations: 409.2 kB / 0.5571 GB, free: 8.145 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1951/0.6514, allocations: 8.273 MB / 0.5652 GB, free: 123.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0103/0.6617, allocations: 4.284 MB / 0.5694 GB, free: 123.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.905e-05/0.6617, allocations: 4.969 kB / 0.5694 GB, free: 123.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.548e-05/0.6618, allocations: 12.66 kB / 0.5694 GB, free: 123.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01931/0.6811, allocations: 12.95 MB / 0.582 GB, free: 122.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.976e-05/0.6811, allocations: 14.3 kB / 0.5821 GB, free: 122.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002678/0.6838, allocations: 0.7219 MB / 0.5828 GB, free: 122.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01116/0.6949, allocations: 3.637 MB / 0.5863 GB, free: 122.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000246/0.6952, allocations: 125.9 kB / 0.5864 GB, free: 122.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01005/0.7052, allocations: 13.49 MB / 0.5996 GB, free: 111.8 MB / 442.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.002063/0.7073, allocations: 3.158 MB / 0.6027 GB, free: 109 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01003/0.7173, allocations: 5.601 MB / 0.6082 GB, free: 107.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000555/0.7179, allocations: 336.7 kB / 0.6085 GB, free: 107.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003679/0.7182, allocations: 57.72 kB / 0.6085 GB, free: 107.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009632/0.7192, allocations: 130.4 kB / 0.6087 GB, free: 107.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005338/0.7197, allocations: 307.1 kB / 0.609 GB, free: 107.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002476/0.72, allocations: 222.8 kB / 0.6092 GB, free: 107.1 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001668/0.7217, allocations: 1.819 MB / 0.6109 GB, free: 106.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.7217, allocations: 0 / 0.6109 GB, free: 106.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0034/0.7251, allocations: 1.833 MB / 0.6127 GB, free: 104.6 MB / 442.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.000887/0.7259, allocations: 0.5599 MB / 0.6133 GB, free: 104.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006484/0.7324, allocations: 4.28 MB / 0.6175 GB, free: 100.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.7324, allocations: 4 kB / 0.6175 GB, free: 100.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002933/0.7354, allocations: 2.783 MB / 0.6202 GB, free: 97.54 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001674/0.737, allocations: 0.7799 MB / 0.6209 GB, free: 96.86 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4759:9-4759:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:856:5-856: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.5295107467100024]