Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001686/0.001686, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002144/0.002144, allocations: 199.3 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.556/2.556, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.4324/0.4324, allocations: 15.33 MB / 305.7 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002649/0.002649, allocations: 59.91 kB / 370.4 MB, free: 3.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1912/0.1939, allocations: 53.6 MB / 424 MB, free: 14.18 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.ClimateChange.MethanElectrosynthesis): time 0.7426/0.9365, allocations: 28.96 MB / 453 MB, free: 39.19 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03438/0.971, allocations: 22.03 MB / 475 MB, free: 28.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002731/0.9738, allocations: 24.41 kB / 475.1 MB, free: 28.56 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003267/0.9771, allocations: 0.572 MB / 475.6 MB, free: 28.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008006/0.9851, allocations: 1.344 MB / 477 MB, free: 27.39 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01789/1.003, allocations: 3.28 MB / 480.3 MB, free: 25.45 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007784/1.011, allocations: 2.384 MB / 482.6 MB, free: 24.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004132/1.015, allocations: 1.574 MB / 484.2 MB, free: 23.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003597/1.019, allocations: 1.03 MB / 485.2 MB, free: 23.08 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004624/1.023, allocations: 1.205 MB / 486.4 MB, free: 22.53 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001322/1.025, allocations: 232.8 kB / 486.7 MB, free: 22.53 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01903/1.044, allocations: 2.341 MB / 489 MB, free: 21.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001748/1.046, allocations: 0.5303 MB / 489.5 MB, free: 21.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003554/1.049, allocations: 1.138 MB / 490.7 MB, free: 20.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02427/1.074, allocations: 4.807 MB / 495.5 MB, free: 18.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.036e-05/1.074, allocations: 0 / 495.5 MB, free: 18.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.357e-06/1.074, allocations: 0 / 495.5 MB, free: 18.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.854e-05/1.074, allocations: 4 kB / 495.5 MB, free: 18.8 MB / 366.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.01164/1.086, allocations: 2.678 MB / 498.2 MB, free: 17.22 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.096e-05/1.086, allocations: 10.94 kB / 498.2 MB, free: 17.22 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005315/1.086, allocations: 268.5 kB / 498.4 MB, free: 17.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004114/1.09, allocations: 0.496 MB / 498.9 MB, free: 16.89 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004634/1.095, allocations: 1.155 MB / 0.4884 GB, free: 16.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003103/1.095, allocations: 203.7 kB / 0.4886 GB, free: 16.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008032/1.096, allocations: 189.2 kB / 0.4888 GB, free: 16.01 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009155/1.105, allocations: 2.65 MB / 0.4913 GB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-05/1.105, allocations: 7.938 kB / 0.4913 GB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003528/1.106, allocations: 79.62 kB / 0.4914 GB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.386e-05/1.106, allocations: 52.44 kB / 0.4915 GB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009535/1.115, allocations: 3.266 MB / 0.4947 GB, free: 12.12 MB / 366.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.02583/1.141, allocations: 8.492 MB / 0.503 GB, free: 4.453 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003268/1.145, allocations: 1.325 MB / 0.5042 GB, free: 3.059 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001567/1.146, allocations: 0.6339 MB / 0.5049 GB, free: 2.414 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01405/1.16, allocations: 5.542 MB / 0.5103 GB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.414e-05/1.161, allocations: 43.16 kB / 0.5103 GB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001471/1.162, allocations: 186.3 kB / 0.5105 GB, free: 12.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 6.803e-06/1.162, allocations: 0 / 0.5105 GB, free: 12.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=115): time 0.04357/1.206, allocations: 7.172 MB / 0.5175 GB, free: 4.805 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/1.206, allocations: 111.8 kB / 0.5176 GB, free: 4.672 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004582/1.21, allocations: 1.857 MB / 0.5194 GB, free: 2.797 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004598/1.211, allocations: 45.7 kB / 0.5195 GB, free: 2.746 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001401/1.212, allocations: 1.002 MB / 0.5204 GB, free: 1.727 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009933/1.213, allocations: 426.1 kB / 0.5209 GB, free: 1.305 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00118/1.215, allocations: 415.1 kB / 0.5212 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/1.215, allocations: 301.1 kB / 0.5215 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002704/1.217, allocations: 0.8512 MB / 0.5224 GB, free: 15.74 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003902/1.221, allocations: 1.589 MB / 0.5239 GB, free: 13.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007014/1.228, allocations: 2.333 MB / 0.5262 GB, free: 11.13 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.319e-05/1.229, allocations: 4 kB / 0.5262 GB, free: 11.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.01685/1.245, allocations: 3.303 MB / 0.5294 GB, free: 7.801 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.607e-05/1.246, allocations: 18.03 kB / 0.5294 GB, free: 7.785 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.981e-05/1.246, allocations: 24.47 kB / 0.5295 GB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009677/1.255, allocations: 1.046 MB / 0.5305 GB, free: 6.699 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0031/1.259, allocations: 431.3 kB / 0.5309 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01944/1.278, allocations: 7.471 MB / 0.5382 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003917/1.282, allocations: 95.77 kB / 0.5383 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006005/1.283, allocations: 124 kB / 0.5384 GB, free: 14.16 MB / 414.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.00165/1.284, allocations: 401 kB / 0.5388 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008594/1.285, allocations: 142.2 kB / 0.5389 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01245/1.298, allocations: 2.195 MB / 0.5411 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.18e-05/1.298, allocations: 15.94 kB / 0.5411 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.575e-05/1.298, allocations: 4 kB / 0.5411 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.871e-05/1.298, allocations: 7.969 kB / 0.5411 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01713/1.315, allocations: 3.931 MB / 0.5449 GB, free: 7.332 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.006e-05/1.315, allocations: 4 kB / 0.5449 GB, free: 7.328 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/1.316, allocations: 179.7 kB / 0.5451 GB, free: 7.152 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006376/1.323, allocations: 0.9249 MB / 0.546 GB, free: 6.211 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002993/1.323, allocations: 47.91 kB / 0.5461 GB, free: 6.164 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01298/1.336, allocations: 6.775 MB / 0.5527 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/1.336, allocations: 4 kB / 0.5527 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01375/1.35, allocations: 2.901 MB / 0.5555 GB, free: 11.99 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00126/1.351, allocations: 215.2 kB / 0.5557 GB, free: 11.76 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005359/1.352, allocations: 24 kB / 0.5557 GB, free: 11.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001753/1.354, allocations: 31.98 kB / 0.5558 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005674/1.354, allocations: 116.7 kB / 0.5559 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003717/1.355, allocations: 51.97 kB / 0.5559 GB, free: 11.54 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003053/1.358, allocations: 1.294 MB / 0.5572 GB, free: 10.24 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.11e-07/1.358, allocations: 4 kB / 0.5572 GB, free: 10.24 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006847/1.364, allocations: 0.9642 MB / 0.5581 GB, free: 9.273 MB / 430.1 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.01904/1.384, allocations: 4.34 MB / 0.5624 GB, free: 4.871 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01122/1.395, allocations: 2.641 MB / 0.565 GB, free: 2.176 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.315e-05/1.395, allocations: 0 / 0.565 GB, free: 2.176 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004411/1.399, allocations: 1.229 MB / 0.5662 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003287/1.403, allocations: 250.3 kB / 0.5664 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06148/1.464, allocations: 17.35 MB / 0.5833 GB, free: 14.02 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001573/1.466, allocations: 1.314 MB / 0.5846 GB, free: 12.67 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002293/1.468, allocations: 339.6 kB / 0.5849 GB, free: 12.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001589/1.47, allocations: 0.7531 MB / 0.5857 GB, free: 11.58 MB / 462.1 MB Notification: Performance of SimCode: time 1.453e-06/1.47, allocations: 3.938 kB / 0.5857 GB, free: 11.58 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7907/2.26, allocations: 49.69 MB / 0.6342 GB, free: 124.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 29.87/32.13, allocations: 10.31 kB / 0.6342 GB, free: 124.1 MB / 462.1 MB (rm -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.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_Examples_ClimateChange_MethanElectrosynthesis.fmu > Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1)