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.0007464/0.0007464, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0007732/0.0007732, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.8507/0.8507, allocations: 177.2 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.08582/0.08582, allocations: 17.45 MB / 276.6 MB, free: 11.76 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 411.6 MB, free: 12.99 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.794e-05/1.963e-05, allocations: 2.281 kB / 411.6 MB, free: 12.99 MB / 330.7 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.02345/0.02347, allocations: 29.53 MB / 441.1 MB, free: 11.07 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01621/0.03968, allocations: 19.47 MB / 460.6 MB, free: 9.059 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001275/0.04095, allocations: 27.81 kB / 460.6 MB, free: 9.031 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00109/0.04204, allocations: 0.5309 MB / 461.2 MB, free: 8.496 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002809/0.04485, allocations: 1.369 MB / 462.5 MB, free: 7.117 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006526/0.05138, allocations: 3.439 MB / 466 MB, free: 3.656 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002579/0.05396, allocations: 2.479 MB / 468.4 MB, free: 1.168 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001329/0.05529, allocations: 1.247 MB / 469.7 MB, free: 15.87 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001461/0.05675, allocations: 1.536 MB / 471.2 MB, free: 14.33 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001041/0.05779, allocations: 0.9507 MB / 472.2 MB, free: 13.38 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003428/0.05813, allocations: 236 kB / 472.4 MB, free: 13.15 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004062/0.06219, allocations: 2.242 MB / 474.6 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003599/0.06255, allocations: 0.5412 MB / 475.2 MB, free: 10.36 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008165/0.06337, allocations: 0.8301 MB / 476 MB, free: 9.527 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008263/0.07163, allocations: 5.262 MB / 481.3 MB, free: 4.246 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.07164, allocations: 4 kB / 481.3 MB, free: 4.242 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.07164, allocations: 0 / 481.3 MB, free: 4.242 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.076e-05/0.07167, allocations: 0 / 481.3 MB, free: 4.242 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.002886/0.07456, allocations: 2.636 MB / 483.9 MB, free: 1.562 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.0746, allocations: 20.02 kB / 483.9 MB, free: 1.543 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002118/0.07481, allocations: 262.5 kB / 484.2 MB, free: 1.277 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001079/0.07589, allocations: 0.5028 MB / 484.7 MB, free: 0.7734 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001455/0.07734, allocations: 1.136 MB / 485.8 MB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001451/0.07749, allocations: 251.2 kB / 486.1 MB, free: 15.34 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001999/0.07769, allocations: 192.4 kB / 486.3 MB, free: 15.15 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002625/0.08031, allocations: 2.719 MB / 489 MB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.78e-05/0.08034, allocations: 4 kB / 489 MB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001213/0.08046, allocations: 76 kB / 489.1 MB, free: 12.29 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.392e-05/0.08049, allocations: 48 kB / 489.1 MB, free: 12.24 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00301/0.0835, allocations: 3.314 MB / 492.4 MB, free: 8.918 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.007586/0.09108, allocations: 7.508 MB / 499.9 MB, free: 1.238 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00123/0.09231, allocations: 1.124 MB / 0.4893 GB, free: 92 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006224/0.09293, allocations: 0.5911 MB / 0.4899 GB, free: 15.49 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004158/0.09709, allocations: 3.395 MB / 0.4932 GB, free: 12.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.09712, allocations: 51.14 kB / 0.4933 GB, free: 12.01 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004224/0.09754, allocations: 194.8 kB / 0.4934 GB, free: 11.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=81): time 2.424e-06/0.09754, allocations: 4 kB / 0.4934 GB, free: 11.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=115): time 0.01361/0.1112, allocations: 6.917 MB / 0.5002 GB, free: 4.844 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.065e-05/0.1112, allocations: 119.8 kB / 0.5003 GB, free: 4.699 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001473/0.1127, allocations: 1.943 MB / 0.5022 GB, free: 2.738 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.921e-05/0.1127, allocations: 49.7 kB / 0.5023 GB, free: 2.684 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004443/0.1132, allocations: 1.037 MB / 0.5033 GB, free: 1.633 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002289/0.1134, allocations: 424.4 kB / 0.5037 GB, free: 1.215 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003734/0.1138, allocations: 419.4 kB / 0.5041 GB, free: 0.7969 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.48e-05/0.1139, allocations: 301.1 kB / 0.5044 GB, free: 0.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008474/0.1147, allocations: 0.8708 MB / 0.5052 GB, free: 15.62 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001199/0.1159, allocations: 1.608 MB / 0.5068 GB, free: 13.67 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001947/0.1178, allocations: 2.348 MB / 0.5091 GB, free: 10.98 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.141e-05/0.1179, allocations: 8 kB / 0.5091 GB, free: 10.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.004432/0.1223, allocations: 3.339 MB / 0.5123 GB, free: 7.617 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.1223, allocations: 23.06 kB / 0.5124 GB, free: 7.598 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.127e-05/0.1223, allocations: 24.47 kB / 0.5124 GB, free: 7.574 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002302/0.1246, allocations: 1.03 MB / 0.5134 GB, free: 6.527 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007342/0.1254, allocations: 435.3 kB / 0.5138 GB, free: 6.102 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005633/0.131, allocations: 7.111 MB / 0.5208 GB, free: 14.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008805/0.1319, allocations: 91.91 kB / 0.5208 GB, free: 14.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001364/0.132, allocations: 128 kB / 0.521 GB, free: 14.4 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.0006265/0.1327, allocations: 401.1 kB / 0.5214 GB, free: 14 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002684/0.1329, allocations: 155 kB / 0.5215 GB, free: 13.84 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003607/0.1365, allocations: 2.18 MB / 0.5236 GB, free: 11.64 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.1365, allocations: 16.03 kB / 0.5236 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.1365, allocations: 4 kB / 0.5236 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/0.1366, allocations: 7.922 kB / 0.5237 GB, free: 11.61 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005569/0.1421, allocations: 3.703 MB / 0.5273 GB, free: 7.824 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.862e-06/0.1421, allocations: 8 kB / 0.5273 GB, free: 7.816 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003736/0.1425, allocations: 167.8 kB / 0.5274 GB, free: 7.652 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002057/0.1446, allocations: 0.9248 MB / 0.5283 GB, free: 6.711 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.91e-05/0.1446, allocations: 39.97 kB / 0.5284 GB, free: 6.672 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004555/0.1492, allocations: 6.405 MB / 0.5346 GB, free: 15.9 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.1492, allocations: 0 / 0.5346 GB, free: 15.9 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003968/0.1532, allocations: 2.903 MB / 0.5375 GB, free: 12.95 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003585/0.1535, allocations: 147.1 kB / 0.5376 GB, free: 12.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000138/0.1537, allocations: 23.94 kB / 0.5376 GB, free: 12.78 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000457/0.1541, allocations: 35.98 kB / 0.5377 GB, free: 12.75 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002185/0.1543, allocations: 116.7 kB / 0.5378 GB, free: 12.63 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.501e-05/0.1544, allocations: 56.09 kB / 0.5378 GB, free: 12.57 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001055/0.1555, allocations: 1.322 MB / 0.5391 GB, free: 11.25 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1555, allocations: 0 / 0.5391 GB, free: 11.25 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00206/0.1575, allocations: 0.9742 MB / 0.5401 GB, free: 10.27 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.005382/0.1629, allocations: 4.401 MB / 0.5444 GB, free: 5.809 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002862/0.1658, allocations: 2.355 MB / 0.5467 GB, free: 3.418 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.1658, allocations: 0 / 0.5467 GB, free: 3.418 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001156/0.1669, allocations: 1.099 MB / 0.5477 GB, free: 2.281 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008859/0.1678, allocations: 235.5 kB / 0.548 GB, free: 2.059 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02081/0.1886, allocations: 16.46 MB / 0.564 GB, free: 0.668 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005526/0.1892, allocations: 0.7296 MB / 0.5648 GB, free: 15.9 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0007362/0.1899, allocations: 331.7 kB / 0.5651 GB, free: 15.58 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006578/0.1906, allocations: 0.758 MB / 0.5658 GB, free: 14.82 MB / 490.7 MB Notification: Performance of SimCode: time 1.302e-06/0.1906, allocations: 7.875 kB / 0.5658 GB, free: 14.81 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2075/0.398, allocations: 52.52 MB / 0.6171 GB, free: 131 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.05/9.448, allocations: 0 / 0.6171 GB, free: 131 MB / 490.7 MB " [Timeout remaining time 650] (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 & python3 -m fmpy simulate --output-file Chemical_master_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_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: 11.395823997445405] Failed to read output from testmodel.py, exit status != 0: 9.699089396744967 9.567933605 9.494842986 Calling exit ...