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.007196/0.007196, allocations: 101 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001918/0.001918, allocations: 192.3 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08429/0.08429, allocations: 15.31 MB / 305.8 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001874, allocations: 63.89 kB / 424.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09161/0.0935, allocations: 53.61 MB / 478.3 MB, free: 6.297 MB / 350.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.03771/0.1312, allocations: 25.62 MB / 0.4921 GB, free: 12.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.201/0.3322, allocations: 16.65 MB / 0.5084 GB, free: 17.86 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005669/0.3328, allocations: 17.88 kB / 0.5084 GB, free: 17.86 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008614/0.3337, allocations: 335.7 kB / 0.5087 GB, free: 17.86 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003469/0.3372, allocations: 1.478 MB / 0.5101 GB, free: 17.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004778/0.342, allocations: 1.99 MB / 0.5121 GB, free: 17.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001951/0.3439, allocations: 1.541 MB / 0.5136 GB, free: 16.97 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009412/0.3449, allocations: 0.8511 MB / 0.5144 GB, free: 16.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009179/0.3458, allocations: 0.7703 MB / 0.5152 GB, free: 16.83 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00117/0.347, allocations: 0.8508 MB / 0.516 GB, free: 16.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000224/0.3472, allocations: 137.2 kB / 0.5161 GB, free: 16.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005563/0.3528, allocations: 1.781 MB / 0.5179 GB, free: 16.56 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003809/0.3532, allocations: 328.6 kB / 0.5182 GB, free: 16.45 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007905/0.354, allocations: 0.6806 MB / 0.5189 GB, free: 16.06 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006682/0.3607, allocations: 3.359 MB / 0.5221 GB, free: 14.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3607, allocations: 0 / 0.5221 GB, free: 14.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3607, allocations: 0 / 0.5221 GB, free: 14.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.543e-05/0.3608, allocations: 3.781 kB / 0.5221 GB, free: 14.82 MB / 382.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.003269/0.364, allocations: 1.843 MB / 0.5239 GB, free: 13.69 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.3641, allocations: 10.25 kB / 0.5239 GB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001763/0.3643, allocations: 168.3 kB / 0.5241 GB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001169/0.3655, allocations: 276 kB / 0.5244 GB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009186/0.3664, allocations: 0.6726 MB / 0.525 GB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.842e-05/0.3665, allocations: 112.4 kB / 0.5251 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001784/0.3667, allocations: 119.1 kB / 0.5252 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002075/0.3688, allocations: 1.336 MB / 0.5266 GB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.678e-05/0.3688, allocations: 3.844 kB / 0.5266 GB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001101/0.3689, allocations: 43.81 kB / 0.5266 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.066e-05/0.3689, allocations: 26.38 kB / 0.5266 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002387/0.3713, allocations: 1.694 MB / 0.5283 GB, free: 11.87 MB / 382.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.005973/0.3773, allocations: 4.302 MB / 0.5325 GB, free: 8.926 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003081/0.3804, allocations: 2.27 MB / 0.5347 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007852/0.3812, allocations: 0.5981 MB / 0.5353 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005886/0.3871, allocations: 5.391 MB / 0.5405 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.101e-05/0.3872, allocations: 47.3 kB / 0.5406 GB, free: 2.574 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 2.154e-06/0.3872, allocations: 2.656 kB / 0.5406 GB, free: 2.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=95): time 0.01388/0.4011, allocations: 3.585 MB / 0.5441 GB, free: 14.99 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.659e-05/0.4012, allocations: 64.41 kB / 0.5442 GB, free: 14.91 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007773/0.4019, allocations: 0.5823 MB / 0.5447 GB, free: 14.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.114e-05/0.402, allocations: 45.7 kB / 0.5448 GB, free: 14.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004001/0.4024, allocations: 0.538 MB / 0.5453 GB, free: 13.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003211/0.4028, allocations: 358.3 kB / 0.5456 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003508/0.4031, allocations: 238.8 kB / 0.5459 GB, free: 13.14 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002026/0.4033, allocations: 390.7 kB / 0.5462 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006753/0.404, allocations: 358.5 kB / 0.5466 GB, free: 12.4 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009959/0.405, allocations: 0.7518 MB / 0.5473 GB, free: 11.49 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001846/0.4069, allocations: 1.207 MB / 0.5485 GB, free: 10.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.824e-06/0.4069, allocations: 6.656 kB / 0.5485 GB, free: 10.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.00416/0.4111, allocations: 1.477 MB / 0.5499 GB, free: 8.664 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.4111, allocations: 8 kB / 0.5499 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.4111, allocations: 16 kB / 0.55 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001893/0.413, allocations: 245.5 kB / 0.5502 GB, free: 8.402 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00151/0.4146, allocations: 322.2 kB / 0.5505 GB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005783/0.4204, allocations: 3.86 MB / 0.5543 GB, free: 3.977 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009364/0.4213, allocations: 44.86 kB / 0.5543 GB, free: 3.934 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001297/0.4215, allocations: 70.8 kB / 0.5544 GB, free: 3.867 MB / 398.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.0004888/0.422, allocations: 270.3 kB / 0.5546 GB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001988/0.4222, allocations: 97.98 kB / 0.5547 GB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004174/0.4263, allocations: 1.335 MB / 0.556 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.259e-05/0.4264, allocations: 11.94 kB / 0.556 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.4264, allocations: 0.75 kB / 0.556 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.561e-05/0.4264, allocations: 10.62 kB / 0.5561 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001606/0.428, allocations: 1.063 MB / 0.5571 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.369e-06/0.428, allocations: 0 / 0.5571 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001252/0.4293, allocations: 221.1 kB / 0.5573 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001859/0.4312, allocations: 232.5 kB / 0.5575 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.696e-05/0.4313, allocations: 31.98 kB / 0.5576 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005363/0.4366, allocations: 3.762 MB / 0.5612 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.4367, allocations: 2.625 kB / 0.5612 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00452/0.4412, allocations: 1.748 MB / 0.5629 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002646/0.4415, allocations: 156.6 kB / 0.5631 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001267/0.4416, allocations: 22.62 kB / 0.5631 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005272/0.4421, allocations: 20 kB / 0.5631 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001955/0.4423, allocations: 84.83 kB / 0.5632 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.701e-05/0.4424, allocations: 43.92 kB / 0.5633 GB, free: 10.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005046/0.4429, allocations: 389.7 kB / 0.5636 GB, free: 10.09 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.443, allocations: 0 / 0.5636 GB, free: 10.09 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002122/0.4451, allocations: 0.6818 MB / 0.5643 GB, free: 9.41 MB / 414.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.00671/0.4518, allocations: 3.004 MB / 0.5672 GB, free: 6.508 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002439/0.4543, allocations: 1.263 MB / 0.5685 GB, free: 5.227 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.4543, allocations: 0 / 0.5685 GB, free: 5.227 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001245/0.4555, allocations: 0.7427 MB / 0.5692 GB, free: 4.461 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.4568, allocations: 212.5 kB / 0.5694 GB, free: 4.285 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01678/0.4736, allocations: 8.446 MB / 0.5776 GB, free: 11.45 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008151/0.4744, allocations: 1.039 MB / 0.5787 GB, free: 10.39 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008737/0.4753, allocations: 237.3 kB / 0.5789 GB, free: 10.24 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007724/0.4761, allocations: 476.5 kB / 0.5793 GB, free: 9.777 MB / 430.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4761, allocations: 0 / 0.5793 GB, free: 9.777 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07598/0.5521, allocations: 32.15 MB / 0.6107 GB, free: 10.36 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.62/15.17, allocations: 11.92 kB / 0.6107 GB, free: 10.34 MB / 462.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)