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.001383/0.001383, allocations: 81.06 kB / 19.18 MB, free: 2.527 MB / 14.72 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.001859/0.001859, allocations: 168.7 kB / 22.46 MB, free: 5.359 MB / 14.72 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.489/1.489, allocations: 177.1 MB / 202.8 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] 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.1322/0.1322, allocations: 17.36 MB / 276.6 MB, free: 15.3 MB / 270.1 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.633e-06/1.633e-06, allocations: 0 / 411.9 MB, free: 4.461 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.839e-05/3.003e-05, allocations: 6.281 kB / 411.9 MB, free: 4.453 MB / 334.1 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.04997/0.05, allocations: 36 MB / 447.9 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2266/0.2766, allocations: 14.48 MB / 462.4 MB, free: 27.97 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003683/0.2802, allocations: 54.09 kB / 462.5 MB, free: 27.95 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005936/0.2862, allocations: 1.394 MB / 463.9 MB, free: 27.31 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008565/0.2947, allocations: 1.619 MB / 465.5 MB, free: 26.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009616/0.3044, allocations: 4.231 MB / 469.7 MB, free: 23.67 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009892/0.3142, allocations: 5.117 MB / 474.8 MB, free: 20.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003/0.3172, allocations: 1.224 MB / 476.1 MB, free: 20.2 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006981/0.3242, allocations: 2.985 MB / 479.1 MB, free: 18.26 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003532/0.3278, allocations: 1.918 MB / 481 MB, free: 17.1 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008563/0.3286, allocations: 0.5351 MB / 481.5 MB, free: 17.1 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006598/0.3352, allocations: 1.77 MB / 483.3 MB, free: 16.61 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00134/0.3366, allocations: 1.594 MB / 484.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003838/0.3404, allocations: 1.807 MB / 486.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0117/0.3521, allocations: 8.388 MB / 495.1 MB, free: 5.324 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.3521, allocations: 0 / 495.1 MB, free: 5.324 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3521, allocations: 0 / 495.1 MB, free: 5.324 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002323/0.3523, allocations: 0 / 495.1 MB, free: 5.324 MB / 366.1 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.01186/0.3642, allocations: 5.938 MB / 0.4893 GB, free: 15.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.22e-05/0.3642, allocations: 14.72 kB / 0.4893 GB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003519/0.3678, allocations: 1.046 MB / 0.4903 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00486/0.3726, allocations: 2.483 MB / 0.4927 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009752/0.3736, allocations: 0.8001 MB / 0.4935 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009673/0.3746, allocations: 495 kB / 0.494 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02343/0.398, allocations: 16.12 MB / 0.5097 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.168e-05/0.3981, allocations: 1.594 kB / 0.5097 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004341/0.3985, allocations: 204.3 kB / 0.5099 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007671/0.3993, allocations: 0.646 MB / 0.5105 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03158/0.4309, allocations: 24.8 MB / 0.5348 GB, free: 0.5742 MB / 414.1 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.07405/0.5049, allocations: 37.43 MB / 0.5713 GB, free: 11.02 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01241/0.5173, allocations: 7.889 MB / 0.579 GB, free: 3.125 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009648/0.527, allocations: 6.432 MB / 0.5853 GB, free: 12.68 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02661/0.5536, allocations: 11.73 MB / 0.5968 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.619e-05/0.5536, allocations: 56.56 kB / 0.5968 GB, free: 0.8711 MB / 478.1 MB Notification: Performance of pre-optimization done (n=222): time 5.771e-06/0.5536, allocations: 0 / 0.5968 GB, free: 0.8711 MB / 478.1 MB Notification: Performance of matching and sorting (n=297): time 0.4051/0.9588, allocations: 54.15 MB / 0.6497 GB, free: 164.9 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02666/0.9854, allocations: 18.39 MB / 0.6676 GB, free: 152.1 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00328/0.9887, allocations: 2.552 MB / 0.6701 GB, free: 149.6 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001141/0.9899, allocations: 69.7 kB / 0.6702 GB, free: 149.5 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001259/0.9911, allocations: 2.498 MB / 0.6726 GB, free: 147.3 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001586/0.9927, allocations: 1.027 MB / 0.6736 GB, free: 146.4 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00301/0.9957, allocations: 1.005 MB / 0.6746 GB, free: 145.4 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 3.29e-05/0.9957, allocations: 301.1 kB / 0.6749 GB, free: 145.1 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009696/1.005, allocations: 9.547 MB / 0.6842 GB, free: 135.6 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01001/1.015, allocations: 10.29 MB / 0.6943 GB, free: 125 MB / 0.4981 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.2722/1.288, allocations: 69 MB / 0.7617 GB, free: 56.37 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-05/1.288, allocations: 8 kB / 0.7617 GB, free: 56.36 MB / 0.4981 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.03393/1.322, allocations: 21.88 MB / 0.783 GB, free: 34.46 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.375e-05/1.322, allocations: 15.94 kB / 0.783 GB, free: 34.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005821/1.322, allocations: 227.9 kB / 0.7833 GB, free: 34.22 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01964/1.342, allocations: 6.255 MB / 0.7894 GB, free: 27.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01255/1.354, allocations: 1.667 MB / 0.791 GB, free: 26.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02723/1.382, allocations: 23.92 MB / 0.8144 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006484/1.388, allocations: 358 kB / 0.8147 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001889/1.39, allocations: 0.5583 MB / 0.8152 GB, free: 1.09 MB / 0.4981 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.2587/1.649, allocations: 1.416 MB / 0.8166 GB, free: 164.4 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002291/1.651, allocations: 340.8 kB / 0.8169 GB, free: 164.4 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04096/1.692, allocations: 16.56 MB / 0.8331 GB, free: 160.9 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02484/1.717, allocations: 12.29 MB / 0.8451 GB, free: 156.6 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.581e-05/1.717, allocations: 10.59 kB / 0.8451 GB, free: 156.6 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001114/1.717, allocations: 12.61 kB / 0.8451 GB, free: 156.6 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04386/1.761, allocations: 22.22 MB / 0.8668 GB, free: 135.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-05/1.761, allocations: 12 kB / 0.8669 GB, free: 135.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006607/1.767, allocations: 0.7477 MB / 0.8676 GB, free: 135.1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02006/1.788, allocations: 4.374 MB / 0.8719 GB, free: 130.8 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009526/1.788, allocations: 127.9 kB / 0.872 GB, free: 130.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02244/1.811, allocations: 16.23 MB / 0.8878 GB, free: 114.1 MB / 0.4981 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.004754/1.816, allocations: 2.611 MB / 0.8904 GB, free: 111.3 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02899/1.845, allocations: 16.28 MB / 0.9063 GB, free: 94.86 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001024/1.846, allocations: 349.9 kB / 0.9066 GB, free: 94.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001496/1.847, allocations: 60.59 kB / 0.9067 GB, free: 94.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003228/1.85, allocations: 139.8 kB / 0.9068 GB, free: 94.34 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001339/1.852, allocations: 325.2 kB / 0.9071 GB, free: 94.02 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007416/1.852, allocations: 223.9 kB / 0.9073 GB, free: 93.8 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004133/1.857, allocations: 3.309 MB / 0.9106 GB, free: 90.48 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/1.857, allocations: 0 / 0.9106 GB, free: 90.48 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00665/1.863, allocations: 1.819 MB / 0.9123 GB, free: 88.7 MB / 0.4981 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.001981/1.865, allocations: 0.5241 MB / 0.9128 GB, free: 88.3 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.02044/1.886, allocations: 14.65 MB / 0.9272 GB, free: 73.6 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.658e-05/1.886, allocations: 4 kB / 0.9272 GB, free: 73.59 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.009366/1.895, allocations: 5.127 MB / 0.9322 GB, free: 68.42 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005384/1.9, allocations: 0.6227 MB / 0.9328 GB, free: 67.86 MB / 0.4981 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 658] [Calling sys.exit(0), Time elapsed: 4.387713517993689] Failed to read output from testmodel.py, exit status != 0: 1.9104538224637508 1.920267195 1.5656946649999999 Calling exit ...