Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.HydrogenotrophicMethanogenesis.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.HydrogenotrophicMethanogenesis,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_HydrogenotrophicMethanogenesis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ClimateChange.HydrogenotrophicMethanogenesis,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_HydrogenotrophicMethanogenesis",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.001994/0.001995, allocations: 108 kB / 15.61 MB, free: 128 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.002772/0.002772, allocations: 198 kB / 16.53 MB, free: 6.668 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.595/2.595, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.4164/0.4164, allocations: 15.32 MB / 305.7 MB, free: 15.29 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002658/0.002658, allocations: 63.91 kB / 370.4 MB, free: 3.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.177/0.1797, allocations: 53.62 MB / 424.1 MB, free: 14.19 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.HydrogenotrophicMethanogenesis): time 0.6348/0.8145, allocations: 25.39 MB / 449.5 MB, free: 39.79 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0343/0.8489, allocations: 16.66 MB / 466.1 MB, free: 31.21 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001491/0.8504, allocations: 13.16 kB / 466.1 MB, free: 31.21 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00223/0.8527, allocations: 339 kB / 466.5 MB, free: 31.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008521/0.8613, allocations: 1.474 MB / 467.9 MB, free: 30.21 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01043/0.8717, allocations: 1.99 MB / 469.9 MB, free: 29.28 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003439/0.8752, allocations: 1.529 MB / 471.4 MB, free: 28.54 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001931/0.8772, allocations: 0.8577 MB / 472.3 MB, free: 28.15 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001932/0.8792, allocations: 0.7683 MB / 473.1 MB, free: 27.87 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002582/0.8818, allocations: 0.8512 MB / 473.9 MB, free: 27.53 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007735/0.8826, allocations: 135 kB / 474.1 MB, free: 27.53 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01155/0.8942, allocations: 1.775 MB / 475.8 MB, free: 27.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008077/0.895, allocations: 335.5 kB / 476.2 MB, free: 26.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001517/0.8966, allocations: 0.6767 MB / 476.8 MB, free: 26.49 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01359/0.9102, allocations: 3.326 MB / 480.2 MB, free: 25.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.167e-05/0.9103, allocations: 1.219 kB / 480.2 MB, free: 25.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.9103, allocations: 0 / 480.2 MB, free: 25.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.637e-05/0.9104, allocations: 0 / 480.2 MB, free: 25.04 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: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.006435/0.9168, allocations: 1.807 MB / 482 MB, free: 23.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.809e-05/0.9169, allocations: 9.344 kB / 482 MB, free: 23.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003542/0.9173, allocations: 161.2 kB / 482.1 MB, free: 23.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002318/0.9196, allocations: 273 kB / 482.4 MB, free: 23.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001754/0.9214, allocations: 0.6509 MB / 483.1 MB, free: 23.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001776/0.9216, allocations: 110.7 kB / 483.2 MB, free: 23.22 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003305/0.9219, allocations: 117.4 kB / 483.3 MB, free: 23.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00409/0.926, allocations: 1.332 MB / 484.6 MB, free: 22.63 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.092e-05/0.9261, allocations: 0 / 484.6 MB, free: 22.63 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001981/0.9263, allocations: 45.72 kB / 484.7 MB, free: 22.6 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.923e-05/0.9264, allocations: 26.5 kB / 484.7 MB, free: 22.6 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004664/0.9311, allocations: 1.695 MB / 486.4 MB, free: 22.1 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.01034/0.9415, allocations: 4.314 MB / 490.7 MB, free: 19.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005037/0.9465, allocations: 2.271 MB / 493 MB, free: 18.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.9478, allocations: 0.5957 MB / 493.6 MB, free: 18.24 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01051/0.9583, allocations: 5.399 MB / 499 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.9584, allocations: 44.25 kB / 499 MB, free: 13.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=78): time 4.078e-06/0.9584, allocations: 7.469 kB / 499 MB, free: 13.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=95): time 0.02158/0.98, allocations: 3.554 MB / 0.4908 GB, free: 12.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.9801, allocations: 67.86 kB / 0.4908 GB, free: 12.35 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001133/0.9812, allocations: 0.5865 MB / 0.4914 GB, free: 12.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001538/0.9814, allocations: 45.33 kB / 0.4915 GB, free: 12.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003949/0.9818, allocations: 0.5318 MB / 0.492 GB, free: 11.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003948/0.9822, allocations: 333.6 kB / 0.4923 GB, free: 11.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005004/0.9828, allocations: 231.6 kB / 0.4925 GB, free: 11.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.983, allocations: 400.1 kB / 0.4929 GB, free: 10.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.984, allocations: 354.5 kB / 0.4932 GB, free: 10.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001434/0.9855, allocations: 0.7511 MB / 0.494 GB, free: 10.1 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002762/0.9882, allocations: 1.206 MB / 0.4952 GB, free: 9.188 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.189e-05/0.9883, allocations: 3.562 kB / 0.4952 GB, free: 9.188 MB / 366.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.007001/0.9953, allocations: 1.466 MB / 0.4966 GB, free: 8.602 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.024e-05/0.9954, allocations: 11.53 kB / 0.4966 GB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.26e-05/0.9954, allocations: 10.97 kB / 0.4966 GB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003564/0.999, allocations: 255.5 kB / 0.4969 GB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002985/1.002, allocations: 335.8 kB / 0.4972 GB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0122/1.014, allocations: 3.851 MB / 0.5009 GB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001821/1.016, allocations: 41.97 kB / 0.501 GB, free: 4.969 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003014/1.016, allocations: 68.22 kB / 0.501 GB, free: 4.906 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (152): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000897/1.017, allocations: 277.3 kB / 0.5013 GB, free: 4.629 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004557/1.018, allocations: 84.47 kB / 0.5014 GB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00671/1.025, allocations: 1.337 MB / 0.5027 GB, free: 3.406 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-05/1.025, allocations: 12 kB / 0.5027 GB, free: 3.395 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/1.025, allocations: 4 kB / 0.5027 GB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-05/1.025, allocations: 3 kB / 0.5027 GB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002545/1.027, allocations: 1.074 MB / 0.5038 GB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/1.027, allocations: 0 / 0.5038 GB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002132/1.029, allocations: 215.8 kB / 0.504 GB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002971/1.032, allocations: 233.5 kB / 0.5042 GB, free: 1.969 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002189/1.033, allocations: 31.92 kB / 0.5042 GB, free: 1.938 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0127/1.045, allocations: 3.772 MB / 0.5079 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/1.045, allocations: 0 / 0.5079 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008495/1.054, allocations: 1.748 MB / 0.5096 GB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005348/1.055, allocations: 148.3 kB / 0.5097 GB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000389/1.055, allocations: 23.98 kB / 0.5098 GB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009865/1.056, allocations: 24.12 kB / 0.5098 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003115/1.056, allocations: 88.81 kB / 0.5099 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001367/1.056, allocations: 39.98 kB / 0.5099 GB, free: 11.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007781/1.057, allocations: 391.1 kB / 0.5103 GB, free: 11.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/1.057, allocations: 0 / 0.5103 GB, free: 11.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003869/1.061, allocations: 0.6675 MB / 0.5109 GB, free: 10.72 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (solution.temperature,CH4.logn,CO2.logn,H2O.logn,H2.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 (98): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01147/1.073, allocations: 2.981 MB / 0.5138 GB, free: 7.691 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005887/1.079, allocations: 1.316 MB / 0.5151 GB, free: 6.352 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.654e-06/1.079, allocations: 3.938 kB / 0.5151 GB, free: 6.348 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002257/1.081, allocations: 0.7535 MB / 0.5159 GB, free: 5.566 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0024/1.083, allocations: 206 kB / 0.5161 GB, free: 5.371 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02866/1.112, allocations: 8.72 MB / 0.5246 GB, free: 12.08 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001296/1.113, allocations: 1.041 MB / 0.5256 GB, free: 11.01 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001944/1.115, allocations: 227.2 kB / 0.5258 GB, free: 10.79 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00118/1.117, allocations: 476.7 kB / 0.5263 GB, free: 10.32 MB / 398.1 MB Notification: Performance of SimCode: time 1.502e-06/1.117, allocations: 8 kB / 0.5263 GB, free: 10.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3083/1.425, allocations: 31.82 MB / 0.5574 GB, free: 10.65 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 28.38/29.81, allocations: 11.94 kB / 0.5574 GB, free: 10.64 MB / 430.1 MB (rm -f Chemical_Chemical.Examples.ClimateChange.HydrogenotrophicMethanogenesis.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.HydrogenotrophicMethanogenesis.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.HydrogenotrophicMethanogenesis.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.HydrogenotrophicMethanogenesis.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.ClimateChange.HydrogenotrophicMethanogenesis_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_Chemical_Examples_ClimateChange_HydrogenotrophicMethanogenesis.fmu > Chemical_Chemical.Examples.ClimateChange.HydrogenotrophicMethanogenesis.pipe 2>&1)