Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001406/0.001406, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.00148/0.00148, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.459/1.459, allocations: 230.6 MB / 256 MB, free: 7.738 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.1339/0.1339, allocations: 23.99 MB / 336.4 MB, free: 10.82 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/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.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_master_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.002139/0.002139, allocations: 71.89 kB / 471.3 MB, free: 7.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3542/0.3564, allocations: 59.89 MB / 0.5187 GB, free: 9.664 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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/Obsolete.mo:14335:7-14335: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.07754/0.4339, allocations: 29.28 MB / 0.5473 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02749/0.4614, allocations: 19.46 MB / 0.5663 GB, free: 8.887 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001856/0.4633, allocations: 31.75 kB / 0.5664 GB, free: 8.855 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002056/0.4653, allocations: 0.5371 MB / 0.5669 GB, free: 8.445 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005639/0.471, allocations: 1.313 MB / 0.5682 GB, free: 7.223 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01085/0.4818, allocations: 3.344 MB / 0.5714 GB, free: 3.859 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004068/0.4859, allocations: 2.402 MB / 0.5738 GB, free: 1.441 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002065/0.4879, allocations: 1.239 MB / 0.575 GB, free: 160 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001815/0.4898, allocations: 1.059 MB / 0.576 GB, free: 15.09 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001887/0.4916, allocations: 1.081 MB / 0.5771 GB, free: 14.01 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006726/0.4923, allocations: 232 kB / 0.5773 GB, free: 13.78 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006384/0.4987, allocations: 2.235 MB / 0.5795 GB, free: 11.54 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007819/0.4995, allocations: 0.5335 MB / 0.58 GB, free: 11.01 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00156/0.501, allocations: 0.957 MB / 0.5809 GB, free: 10.05 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01067/0.5117, allocations: 5.019 MB / 0.5858 GB, free: 5.008 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.5117, allocations: 0 / 0.5858 GB, free: 5.008 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5117, allocations: 0 / 0.5858 GB, free: 5.008 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001033/0.5118, allocations: 4 kB / 0.5858 GB, free: 5.004 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.006224/0.518, allocations: 2.651 MB / 0.5884 GB, free: 2.309 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.5181, allocations: 8.031 kB / 0.5884 GB, free: 2.301 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005005/0.5186, allocations: 270.5 kB / 0.5887 GB, free: 2.027 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002196/0.5208, allocations: 0.5103 MB / 0.5892 GB, free: 1.516 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002451/0.5232, allocations: 1.137 MB / 0.5903 GB, free: 352 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002496/0.5235, allocations: 254.7 kB / 0.5906 GB, free: 72 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004346/0.5239, allocations: 188 kB / 0.5907 GB, free: 15.88 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005324/0.5292, allocations: 2.719 MB / 0.5934 GB, free: 13.1 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.781e-05/0.5293, allocations: 4 kB / 0.5934 GB, free: 13.09 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002803/0.5296, allocations: 76 kB / 0.5935 GB, free: 13.02 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.194e-05/0.5296, allocations: 48 kB / 0.5935 GB, free: 12.97 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005991/0.5356, allocations: 3.314 MB / 0.5967 GB, free: 9.652 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.01516/0.5508, allocations: 7.523 MB / 0.6041 GB, free: 1.965 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002174/0.553, allocations: 1.097 MB / 0.6052 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001031/0.554, allocations: 0.5911 MB / 0.6057 GB, free: 248 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008576/0.5626, allocations: 3.397 MB / 0.6091 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.943e-05/0.5626, allocations: 55.09 kB / 0.6091 GB, free: 12.75 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009584/0.5636, allocations: 198.8 kB / 0.6093 GB, free: 12.56 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 4.178e-06/0.5636, allocations: 0 / 0.6093 GB, free: 12.56 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02931/0.5929, allocations: 6.917 MB / 0.6161 GB, free: 5.586 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.088e-05/0.593, allocations: 119.8 kB / 0.6162 GB, free: 5.445 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002652/0.5956, allocations: 1.939 MB / 0.6181 GB, free: 3.488 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002041/0.5958, allocations: 45.7 kB / 0.6181 GB, free: 3.438 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008262/0.5967, allocations: 1.041 MB / 0.6191 GB, free: 2.383 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000502/0.5972, allocations: 436.5 kB / 0.6195 GB, free: 1.953 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007389/0.5979, allocations: 419.3 kB / 0.6199 GB, free: 1.535 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.598, allocations: 305.1 kB / 0.6202 GB, free: 1.234 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001493/0.5995, allocations: 0.8707 MB / 0.6211 GB, free: 368 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002191/0.6017, allocations: 1.616 MB / 0.6227 GB, free: 14.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003646/0.6053, allocations: 2.352 MB / 0.625 GB, free: 11.71 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-05/0.6054, allocations: 8 kB / 0.625 GB, free: 11.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008739/0.6141, allocations: 3.327 MB / 0.6282 GB, free: 8.352 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.247e-05/0.6142, allocations: 16 kB / 0.6282 GB, free: 8.336 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.165e-05/0.6142, allocations: 24.47 kB / 0.6283 GB, free: 8.312 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004978/0.6192, allocations: 1.034 MB / 0.6293 GB, free: 7.262 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00165/0.6208, allocations: 431.3 kB / 0.6297 GB, free: 6.84 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/0.6316, allocations: 7.126 MB / 0.6366 GB, free: 15.34 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001839/0.6334, allocations: 96.02 kB / 0.6367 GB, free: 15.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003724/0.6338, allocations: 123.9 kB / 0.6368 GB, free: 15.12 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.0009407/0.6348, allocations: 409 kB / 0.6372 GB, free: 14.71 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004803/0.6352, allocations: 151 kB / 0.6374 GB, free: 14.57 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006808/0.642, allocations: 2.175 MB / 0.6395 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.765e-05/0.6421, allocations: 15.94 kB / 0.6395 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.6421, allocations: 0 / 0.6395 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.73e-05/0.6421, allocations: 11.97 kB / 0.6395 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0101/0.6522, allocations: 3.701 MB / 0.6431 GB, free: 8.547 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/0.6522, allocations: 0 / 0.6431 GB, free: 8.547 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007661/0.653, allocations: 179.7 kB / 0.6433 GB, free: 8.371 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004395/0.6574, allocations: 0.9248 MB / 0.6442 GB, free: 7.43 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001525/0.6575, allocations: 51.95 kB / 0.6443 GB, free: 7.379 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008645/0.6662, allocations: 6.401 MB / 0.6505 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.6662, allocations: 8.156 kB / 0.6505 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007723/0.6739, allocations: 2.899 MB / 0.6534 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004943/0.6744, allocations: 139.1 kB / 0.6535 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002506/0.6746, allocations: 24 kB / 0.6535 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009101/0.6755, allocations: 31.98 kB / 0.6535 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003108/0.6759, allocations: 116.7 kB / 0.6537 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001267/0.676, allocations: 55.97 kB / 0.6537 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001725/0.6777, allocations: 1.322 MB / 0.655 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6777, allocations: 4 kB / 0.655 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003394/0.6811, allocations: 0.9741 MB / 0.656 GB, free: 10.99 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.01041/0.6915, allocations: 4.36 MB / 0.6602 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005425/0.6969, allocations: 2.354 MB / 0.6625 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.6969, allocations: 3.938 kB / 0.6625 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002463/0.6994, allocations: 1.103 MB / 0.6636 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001586/0.701, allocations: 241.9 kB / 0.6638 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03341/0.7344, allocations: 16.57 MB / 0.68 GB, free: 1.312 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009028/0.7353, allocations: 0.7334 MB / 0.6807 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001236/0.7365, allocations: 335 kB / 0.681 GB, free: 224 kB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001112/0.7377, allocations: 0.753 MB / 0.6818 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of SimCode: time 9.92e-07/0.7377, allocations: 0 / 0.6818 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3289/1.067, allocations: 52.36 MB / 0.7329 GB, free: 177.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.35/16.41, allocations: 9.781 kB / 0.7329 GB, free: 177.7 MB / 0.5606 GB " [Timeout remaining time 643] (rm -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis.fmu > Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.11423646239564] Failed to read output from testmodel.py, exit status != 0: 16.56464661611244 16.583439224 16.067406068 Calling exit ...