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.0007804/0.0007804, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 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.000794/0.000794, allocations: 165.9 kB / 22.46 MB, free: 2.105 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 0.8844/0.8844, allocations: 177.1 MB / 202.8 MB, free: 5.734 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.09245/0.09245, allocations: 17.37 MB / 276.6 MB, free: 11.85 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: "" <> 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: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 411.4 MB, free: 13.19 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.869e-05/2.017e-05, allocations: 2.281 kB / 411.4 MB, free: 13.18 MB / 330.7 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.02558/0.0256, allocations: 29.53 MB / 441 MB, free: 11.37 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01669/0.0423, allocations: 19.46 MB / 460.4 MB, free: 9.391 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001354/0.04365, allocations: 31.75 kB / 460.5 MB, free: 9.359 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001027/0.04468, allocations: 0.5425 MB / 461 MB, free: 8.812 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002734/0.04741, allocations: 1.369 MB / 462.4 MB, free: 7.434 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006658/0.05407, allocations: 3.431 MB / 465.8 MB, free: 3.98 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001958/0.05603, allocations: 2.483 MB / 468.3 MB, free: 1.488 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001118/0.05714, allocations: 1.251 MB / 469.5 MB, free: 192 kB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009763/0.05812, allocations: 1.532 MB / 471.1 MB, free: 14.65 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007821/0.0589, allocations: 0.939 MB / 472 MB, free: 13.71 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001828/0.05909, allocations: 236 kB / 472.2 MB, free: 13.48 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003834/0.06292, allocations: 2.246 MB / 474.5 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002961/0.06322, allocations: 0.5529 MB / 475 MB, free: 10.68 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004935/0.06371, allocations: 0.8108 MB / 475.8 MB, free: 9.863 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00519/0.0689, allocations: 5.278 MB / 481.1 MB, free: 4.566 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.0689, allocations: 0 / 481.1 MB, free: 4.566 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.0689, allocations: 0 / 481.1 MB, free: 4.566 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.922e-05/0.06892, allocations: 0 / 481.1 MB, free: 4.566 MB / 378.7 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.002885/0.07181, allocations: 2.628 MB / 483.7 MB, free: 1.895 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.07185, allocations: 15.97 kB / 483.8 MB, free: 1.879 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002186/0.07207, allocations: 270.4 kB / 484 MB, free: 1.605 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001026/0.0731, allocations: 0.5064 MB / 484.5 MB, free: 1.098 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001246/0.07434, allocations: 1.132 MB / 485.7 MB, free: 15.94 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001445/0.07449, allocations: 255.2 kB / 485.9 MB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001966/0.07468, allocations: 196.2 kB / 486.1 MB, free: 15.47 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002837/0.07752, allocations: 2.719 MB / 488.8 MB, free: 12.68 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.625e-05/0.07755, allocations: 0 / 488.8 MB, free: 12.68 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001197/0.07767, allocations: 76 kB / 488.9 MB, free: 12.61 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.363e-05/0.07769, allocations: 52 kB / 489 MB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002991/0.08068, allocations: 3.314 MB / 492.3 MB, free: 9.238 MB / 394.7 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.007391/0.08807, allocations: 7.512 MB / 499.8 MB, free: 1.555 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001197/0.08927, allocations: 1.121 MB / 0.4892 GB, free: 420 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008418/0.09011, allocations: 0.5913 MB / 0.4897 GB, free: 15.8 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004031/0.09414, allocations: 3.391 MB / 0.493 GB, free: 12.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/0.09417, allocations: 43.22 kB / 0.4931 GB, free: 12.34 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003823/0.09455, allocations: 202.8 kB / 0.4933 GB, free: 12.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=81): time 1.814e-06/0.09455, allocations: 0 / 0.4933 GB, free: 12.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=115): time 0.01352/0.1081, allocations: 6.928 MB / 0.5 GB, free: 5.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.993e-05/0.1081, allocations: 119.9 kB / 0.5002 GB, free: 5.016 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001413/0.1095, allocations: 1.939 MB / 0.5021 GB, free: 3.059 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.353e-05/0.1096, allocations: 45.7 kB / 0.5021 GB, free: 3.008 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004299/0.11, allocations: 1.033 MB / 0.5031 GB, free: 1.961 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004642/0.1105, allocations: 428.4 kB / 0.5035 GB, free: 1.539 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003667/0.1109, allocations: 419.3 kB / 0.5039 GB, free: 1.121 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.44e-05/0.1109, allocations: 301.1 kB / 0.5042 GB, free: 0.8242 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008557/0.1118, allocations: 0.8747 MB / 0.5051 GB, free: 15.94 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001178/0.113, allocations: 1.608 MB / 0.5066 GB, free: 13.99 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001973/0.1149, allocations: 2.352 MB / 0.5089 GB, free: 11.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/0.1149, allocations: 8 kB / 0.5089 GB, free: 11.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.00473/0.1197, allocations: 3.331 MB / 0.5122 GB, free: 7.941 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.668e-05/0.1197, allocations: 18.66 kB / 0.5122 GB, free: 7.926 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.177e-05/0.1197, allocations: 24 kB / 0.5122 GB, free: 7.902 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002333/0.122, allocations: 1.038 MB / 0.5132 GB, free: 6.848 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007333/0.1228, allocations: 431.3 kB / 0.5137 GB, free: 6.426 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005938/0.1287, allocations: 7.115 MB / 0.5206 GB, free: 14.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008295/0.1296, allocations: 91.95 kB / 0.5207 GB, free: 14.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001265/0.1297, allocations: 120 kB / 0.5208 GB, free: 14.73 MB / 442.7 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.0005475/0.1302, allocations: 409 kB / 0.5212 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001956/0.1304, allocations: 162.9 kB / 0.5213 GB, free: 14.16 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003422/0.1338, allocations: 2.168 MB / 0.5235 GB, free: 11.96 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.323e-06/0.1338, allocations: 19.97 kB / 0.5235 GB, free: 11.95 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.1339, allocations: 4 kB / 0.5235 GB, free: 11.94 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.1339, allocations: 15.91 kB / 0.5235 GB, free: 11.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005351/0.1392, allocations: 3.691 MB / 0.5271 GB, free: 8.148 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.1392, allocations: 4 kB / 0.5271 GB, free: 8.145 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003652/0.1396, allocations: 179.9 kB / 0.5273 GB, free: 7.969 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002045/0.1416, allocations: 0.924 MB / 0.5282 GB, free: 7.031 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.552e-05/0.1417, allocations: 47.95 kB / 0.5282 GB, free: 6.984 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004714/0.1464, allocations: 6.393 MB / 0.5345 GB, free: 224 kB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.1464, allocations: 7.938 kB / 0.5345 GB, free: 216 kB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003781/0.1502, allocations: 2.892 MB / 0.5373 GB, free: 13.27 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001861/0.1504, allocations: 147.1 kB / 0.5374 GB, free: 13.13 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001183/0.1505, allocations: 24 kB / 0.5375 GB, free: 13.11 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004283/0.1509, allocations: 35.98 kB / 0.5375 GB, free: 13.07 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001802/0.1511, allocations: 120.7 kB / 0.5376 GB, free: 12.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-05/0.1512, allocations: 51.97 kB / 0.5377 GB, free: 12.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001217/0.1524, allocations: 1.326 MB / 0.539 GB, free: 11.57 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1524, allocations: 0 / 0.539 GB, free: 11.57 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002044/0.1544, allocations: 0.9742 MB / 0.5399 GB, free: 10.59 MB / 458.7 MB 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.005355/0.1598, allocations: 4.383 MB / 0.5442 GB, free: 6.145 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002937/0.1627, allocations: 2.359 MB / 0.5465 GB, free: 3.75 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.1627, allocations: 0 / 0.5465 GB, free: 3.75 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001137/0.1639, allocations: 1.107 MB / 0.5476 GB, free: 2.605 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008952/0.1648, allocations: 235 kB / 0.5478 GB, free: 2.383 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01775/0.1825, allocations: 16.47 MB / 0.5639 GB, free: 0.9844 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005436/0.1831, allocations: 0.7296 MB / 0.5646 GB, free: 224 kB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0007453/0.1838, allocations: 327.9 kB / 0.5649 GB, free: 15.89 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006958/0.1845, allocations: 0.7619 MB / 0.5657 GB, free: 15.13 MB / 490.7 MB Notification: Performance of SimCode: time 1.112e-06/0.1845, allocations: 0 / 0.5657 GB, free: 15.13 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1988/0.3833, allocations: 52.52 MB / 0.6169 GB, free: 130.8 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.603/9.987, allocations: 64 / 0.6169 GB, free: 130.8 MB / 490.7 MB " [Timeout remaining time 650] (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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis.fmu > Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.077436966821551] Failed to read output from testmodel.py, exit status != 0: 10.258081917650998 10.114559215 10.043855124 Calling exit ...