Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.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.001399/0.001399, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.00153/0.00153, allocations: 215.2 kB / 22.25 MB, free: 5.117 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.447/1.447, allocations: 230.6 MB / 256 MB, free: 8.02 MB / 206.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.1433/0.1433, allocations: 23.85 MB / 336.3 MB, free: 11.23 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: "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",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.002086/0.002086, allocations: 59.91 kB / 471.2 MB, free: 7.727 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.3015, allocations: 59.86 MB / 0.5186 GB, free: 9.617 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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/Obsolete.mo:14337:7-14337: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.Obsolete.Examples.ClimateChange.MethanElectrosynthesis): time 0.04048/0.3419, allocations: 30.28 MB / 0.5481 GB, free: 9.789 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02867/0.3706, allocations: 22.21 MB / 0.5698 GB, free: 5.336 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001809/0.3724, allocations: 31.75 kB / 0.5699 GB, free: 5.305 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002535/0.3749, allocations: 0.5756 MB / 0.5704 GB, free: 4.855 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005823/0.3808, allocations: 1.365 MB / 0.5718 GB, free: 3.691 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01048/0.3913, allocations: 3.34 MB / 0.575 GB, free: 340 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004245/0.3955, allocations: 2.387 MB / 0.5773 GB, free: 13.93 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002255/0.3978, allocations: 1.278 MB / 0.5786 GB, free: 12.61 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001736/0.3995, allocations: 1.056 MB / 0.5796 GB, free: 11.55 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002367/0.4019, allocations: 1.23 MB / 0.5808 GB, free: 10.31 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006932/0.4025, allocations: 236 kB / 0.5811 GB, free: 10.08 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007171/0.4097, allocations: 2.367 MB / 0.5834 GB, free: 7.711 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00075/0.4105, allocations: 0.5374 MB / 0.5839 GB, free: 7.172 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001496/0.412, allocations: 1.139 MB / 0.585 GB, free: 6.027 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0105/0.4225, allocations: 5.019 MB / 0.5899 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.4225, allocations: 4 kB / 0.5899 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.4225, allocations: 0 / 0.5899 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.098e-05/0.4226, allocations: 0 / 0.5899 GB, free: 0.9844 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.006073/0.4286, allocations: 2.671 MB / 0.5925 GB, free: 14.27 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.4287, allocations: 8.031 kB / 0.5925 GB, free: 14.26 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003531/0.429, allocations: 266.5 kB / 0.5928 GB, free: 13.99 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002003/0.431, allocations: 0.5066 MB / 0.5933 GB, free: 13.48 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002221/0.4333, allocations: 1.137 MB / 0.5944 GB, free: 12.31 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002305/0.4335, allocations: 258.7 kB / 0.5946 GB, free: 12.03 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003018/0.4338, allocations: 188 kB / 0.5948 GB, free: 11.85 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004176/0.438, allocations: 2.687 MB / 0.5974 GB, free: 9.098 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.358e-05/0.438, allocations: 7.938 kB / 0.5974 GB, free: 9.09 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001853/0.4382, allocations: 76 kB / 0.5975 GB, free: 9.016 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.084e-05/0.4382, allocations: 51.94 kB / 0.5976 GB, free: 8.965 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005027/0.4433, allocations: 3.342 MB / 0.6008 GB, free: 5.617 MB / 446.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.01354/0.4568, allocations: 8.49 MB / 0.6091 GB, free: 12.84 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002042/0.4588, allocations: 1.116 MB / 0.6102 GB, free: 11.71 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009966/0.4598, allocations: 0.595 MB / 0.6108 GB, free: 11.1 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008509/0.4683, allocations: 3.584 MB / 0.6143 GB, free: 7.488 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.384e-05/0.4684, allocations: 51.16 kB / 0.6143 GB, free: 7.43 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009905/0.4694, allocations: 198.8 kB / 0.6145 GB, free: 7.234 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 3.877e-06/0.4694, allocations: 4 kB / 0.6145 GB, free: 7.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02904/0.4984, allocations: 6.917 MB / 0.6213 GB, free: 260 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.951e-05/0.4985, allocations: 123.8 kB / 0.6214 GB, free: 112 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002441/0.501, allocations: 1.892 MB / 0.6233 GB, free: 14.2 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001667/0.5011, allocations: 45.7 kB / 0.6233 GB, free: 14.14 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007652/0.5019, allocations: 1.037 MB / 0.6243 GB, free: 13.1 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004103/0.5023, allocations: 436.4 kB / 0.6247 GB, free: 12.67 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006194/0.5029, allocations: 419.3 kB / 0.6251 GB, free: 12.25 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.503, allocations: 301.1 kB / 0.6254 GB, free: 11.95 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001412/0.5045, allocations: 0.8746 MB / 0.6263 GB, free: 11.07 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002086/0.5065, allocations: 1.604 MB / 0.6278 GB, free: 9.125 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003375/0.5099, allocations: 2.348 MB / 0.6301 GB, free: 6.441 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-05/0.5099, allocations: 8 kB / 0.6301 GB, free: 6.434 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008562/0.5185, allocations: 3.327 MB / 0.6334 GB, free: 3.082 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.873e-05/0.5185, allocations: 19.98 kB / 0.6334 GB, free: 3.062 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.217e-05/0.5186, allocations: 24.47 kB / 0.6334 GB, free: 3.039 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005018/0.5236, allocations: 1.037 MB / 0.6344 GB, free: 1.988 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00161/0.5252, allocations: 435.3 kB / 0.6349 GB, free: 1.562 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01056/0.5357, allocations: 7.185 MB / 0.6419 GB, free: 10 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001755/0.5375, allocations: 95.84 kB / 0.642 GB, free: 9.906 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000253/0.5378, allocations: 123.9 kB / 0.6421 GB, free: 9.785 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (226): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,15), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007748/0.5385, allocations: 405.7 kB / 0.6425 GB, free: 9.379 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003794/0.5389, allocations: 151 kB / 0.6426 GB, free: 9.23 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007017/0.5459, allocations: 2.179 MB / 0.6447 GB, free: 7.027 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.818e-05/0.5459, allocations: 15.94 kB / 0.6448 GB, free: 7.012 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.248e-05/0.546, allocations: 4 kB / 0.6448 GB, free: 7.008 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.865e-05/0.546, allocations: 3.984 kB / 0.6448 GB, free: 7.004 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01013/0.5561, allocations: 3.904 MB / 0.6486 GB, free: 3.012 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/0.5561, allocations: 4 kB / 0.6486 GB, free: 3.008 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007997/0.5569, allocations: 175.9 kB / 0.6487 GB, free: 2.836 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004544/0.5615, allocations: 0.9273 MB / 0.6496 GB, free: 1.895 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001506/0.5616, allocations: 43.97 kB / 0.6497 GB, free: 1.852 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008777/0.5704, allocations: 6.458 MB / 0.656 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.5704, allocations: 8.094 kB / 0.656 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007672/0.5781, allocations: 2.9 MB / 0.6588 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003876/0.5784, allocations: 139 kB / 0.659 GB, free: 7.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002243/0.5787, allocations: 24 kB / 0.659 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009035/0.5796, allocations: 35.92 kB / 0.659 GB, free: 7.875 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000289/0.5799, allocations: 120.7 kB / 0.6591 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/0.58, allocations: 55.97 kB / 0.6592 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00163/0.5816, allocations: 1.322 MB / 0.6605 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9.1e-08/0.5816, allocations: 0 / 0.6605 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003016/0.5846, allocations: 0.978 MB / 0.6614 GB, free: 5.398 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,17), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00956/0.5942, allocations: 4.356 MB / 0.6657 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004787/0.599, allocations: 2.367 MB / 0.668 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.207e-06/0.599, allocations: 0 / 0.668 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002182/0.6012, allocations: 1.099 MB / 0.6691 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.6026, allocations: 243.8 kB / 0.6693 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03105/0.6336, allocations: 16.57 MB / 0.6855 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009849/0.6346, allocations: 1.306 MB / 0.6868 GB, free: 10.38 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001141/0.6358, allocations: 339.3 kB / 0.6871 GB, free: 10.05 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001019/0.6368, allocations: 0.7531 MB / 0.6878 GB, free: 9.293 MB / 0.5294 GB Notification: Performance of SimCode: time 1.032e-06/0.6368, allocations: 0 / 0.6878 GB, free: 9.293 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3265/0.9633, allocations: 52.74 MB / 0.7393 GB, free: 175.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.85/28.81, allocations: 6.016 kB / 0.7393 GB, free: 175.1 MB / 0.5606 GB " [Timeout remaining time 631] (rm -f Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis.fmu > Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 31.619383943034336] Failed to read output from testmodel.py, exit status != 0: 28.958269322058186 28.971368823 28.545734444 Calling exit ...