Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001336/0.001336, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001557/0.001557, allocations: 221.4 kB / 23.03 MB, free: 4.945 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.492/1.492, allocations: 230.6 MB / 256.8 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1389/0.1389, allocations: 23.91 MB / 337.1 MB, free: 10.95 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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: "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_master_Chemical_Examples_WaterElectrolysis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_master_Chemical_Examples_WaterElectrolysis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002046/0.002046, allocations: 63.91 kB / 471.9 MB, free: 7.5 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.3015, allocations: 59.88 MB / 0.5193 GB, free: 9.488 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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 master/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 master/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 master/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.08205/0.3835, allocations: 35.31 MB / 0.5538 GB, free: 4.938 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0267/0.4102, allocations: 14.46 MB / 0.5679 GB, free: 7.863 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004357/0.4146, allocations: 59.69 kB / 0.568 GB, free: 7.805 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004899/0.4195, allocations: 1.407 MB / 0.5694 GB, free: 6.629 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006256/0.4257, allocations: 1.582 MB / 0.5709 GB, free: 5.035 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00927/0.435, allocations: 4.229 MB / 0.575 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008583/0.4436, allocations: 4.962 MB / 0.5799 GB, free: 11.8 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002173/0.4458, allocations: 1.248 MB / 0.5811 GB, free: 10.49 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002905/0.4487, allocations: 1.978 MB / 0.583 GB, free: 8.508 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003615/0.4523, allocations: 2.506 MB / 0.5855 GB, free: 5.992 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009703/0.4533, allocations: 0.5352 MB / 0.586 GB, free: 5.457 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004404/0.4577, allocations: 1.803 MB / 0.5878 GB, free: 3.652 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001587/0.4592, allocations: 1.577 MB / 0.5893 GB, free: 2.07 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003066/0.4623, allocations: 2.211 MB / 0.5915 GB, free: 15.84 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01216/0.4745, allocations: 8.364 MB / 0.5996 GB, free: 7.453 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.4745, allocations: 0 / 0.5996 GB, free: 7.453 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4745, allocations: 0 / 0.5996 GB, free: 7.453 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002017/0.4747, allocations: 0 / 0.5996 GB, free: 7.453 MB / 446.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.01253/0.4872, allocations: 6.003 MB / 0.6055 GB, free: 1.383 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.4873, allocations: 12.03 kB / 0.6055 GB, free: 1.371 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001525/0.4874, allocations: 134 kB / 0.6056 GB, free: 1.238 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001083/0.4885, allocations: 0.7388 MB / 0.6064 GB, free: 500 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003389/0.4919, allocations: 1.051 MB / 0.6074 GB, free: 15.43 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004596/0.4965, allocations: 2.482 MB / 0.6098 GB, free: 12.89 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008937/0.4974, allocations: 0.7924 MB / 0.6106 GB, free: 12.04 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009409/0.4983, allocations: 0.4922 MB / 0.6111 GB, free: 11.54 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02279/0.5211, allocations: 16.13 MB / 0.6268 GB, free: 11.36 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-05/0.5212, allocations: 0 / 0.6268 GB, free: 11.36 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004828/0.5217, allocations: 200 kB / 0.627 GB, free: 11.16 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007729/0.5224, allocations: 0.6357 MB / 0.6276 GB, free: 10.53 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03199/0.5544, allocations: 24.84 MB / 0.6519 GB, free: 1.676 MB / 494.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.06874/0.6232, allocations: 39.55 MB / 0.6905 GB, free: 9.926 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01176/0.6349, allocations: 7.892 MB / 0.6982 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009057/0.644, allocations: 6.428 MB / 0.7045 GB, free: 11.59 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0235/0.6675, allocations: 12.31 MB / 0.7165 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.173e-05/0.6675, allocations: 56.55 kB / 0.7166 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=222): time 5.911e-06/0.6675, allocations: 0 / 0.7166 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of matching and sorting (n=297): time 0.355/1.023, allocations: 54.33 MB / 0.7696 GB, free: 164.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02548/1.048, allocations: 18.45 MB / 0.7876 GB, free: 146.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006757/1.055, allocations: 6.309 MB / 0.7938 GB, free: 140 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001018/1.056, allocations: 72.36 kB / 0.7939 GB, free: 139.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001436/1.057, allocations: 2.472 MB / 0.7963 GB, free: 137.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001404/1.059, allocations: 1.041 MB / 0.7973 GB, free: 136.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002316/1.061, allocations: 0.9918 MB / 0.7983 GB, free: 135.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.644e-05/1.061, allocations: 301.1 kB / 0.7985 GB, free: 135.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009193/1.07, allocations: 9.538 MB / 0.8079 GB, free: 125.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009955/1.08, allocations: 10.28 MB / 0.8179 GB, free: 115.3 MB / 0.5606 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.2552/1.335, allocations: 68.77 MB / 0.8851 GB, free: 46.71 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-05/1.335, allocations: 8 kB / 0.8851 GB, free: 46.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.03227/1.368, allocations: 22.08 MB / 0.9066 GB, free: 24.59 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.303e-05/1.368, allocations: 16 kB / 0.9066 GB, free: 24.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000535/1.368, allocations: 234.5 kB / 0.9069 GB, free: 24.35 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01861/1.387, allocations: 6.229 MB / 0.913 GB, free: 18.13 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01137/1.398, allocations: 1.671 MB / 0.9146 GB, free: 16.47 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02798/1.426, allocations: 24.04 MB / 0.9381 GB, free: 7.977 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006392/1.433, allocations: 362 kB / 0.9384 GB, free: 7.625 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001707/1.434, allocations: 0.5466 MB / 0.9389 GB, free: 7.078 MB / 0.5762 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.004312/1.439, allocations: 1.439 MB / 0.9403 GB, free: 5.648 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002156/1.441, allocations: 0.5585 MB / 0.9409 GB, free: 5.09 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03743/1.478, allocations: 16.75 MB / 0.9572 GB, free: 4.328 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2498/1.728, allocations: 12.29 MB / 0.9692 GB, free: 200.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.428e-05/1.728, allocations: 4.094 kB / 0.9693 GB, free: 200.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.229e-05/1.728, allocations: 14.66 kB / 0.9693 GB, free: 200.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03964/1.768, allocations: 21.24 MB / 0.99 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-05/1.768, allocations: 10.81 kB / 0.99 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005908/1.774, allocations: 0.7428 MB / 0.9907 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0197/1.793, allocations: 4.343 MB / 0.995 GB, free: 191.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006905/1.794, allocations: 130.8 kB / 0.9951 GB, free: 191.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02096/1.815, allocations: 16.36 MB / 1.011 GB, free: 179.1 MB / 0.5919 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.004338/1.819, allocations: 2.619 MB / 1.014 GB, free: 176.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.026/1.845, allocations: 16.55 MB / 1.03 GB, free: 160.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001956/1.847, allocations: 0.7694 MB / 1.031 GB, free: 160.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001587/1.849, allocations: 66.19 kB / 1.031 GB, free: 160.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003003/1.852, allocations: 142.5 kB / 1.031 GB, free: 160 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008639/1.853, allocations: 321.3 kB / 1.031 GB, free: 159.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003932/1.853, allocations: 227.8 kB / 1.031 GB, free: 159.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006472/1.86, allocations: 5.995 MB / 1.037 GB, free: 153.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.21e-07/1.86, allocations: 0 / 1.037 GB, free: 153.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.005257/1.865, allocations: 1.861 MB / 1.039 GB, free: 151.7 MB / 0.5919 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.02722/1.892, allocations: 17.33 MB / 1.056 GB, free: 134.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01832/1.91, allocations: 14.67 MB / 1.07 GB, free: 119.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.27e-05/1.91, allocations: 4 kB / 1.07 GB, free: 119.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.007986/1.918, allocations: 5.137 MB / 1.075 GB, free: 114.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005689/1.924, allocations: 1.131 MB / 1.076 GB, free: 113.4 MB / 0.5919 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4733:9-4733:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:822:5-822: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.390808183001354] Failed to read output from testmodel.py, exit status != 0: 1.9328008360462263 1.951336619 1.473381766 Calling exit ...