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.00112/0.00112, allocations: 108.6 kB / 15.73 MB, free: 72 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.001137/0.001137, allocations: 183.1 kB / 16.66 MB, free: 6.602 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.319/1.319, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.184/0.184, allocations: 15.31 MB / 305.8 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 67.89 kB / 424.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2395, allocations: 53.61 MB / 478.3 MB, free: 25.49 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.0292/0.2687, allocations: 25.48 MB / 0.492 GB, free: 9.25 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01566/0.2844, allocations: 16.66 MB / 0.5083 GB, free: 8.531 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007816/0.2852, allocations: 19.94 kB / 0.5083 GB, free: 8.512 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008396/0.2861, allocations: 329.5 kB / 0.5086 GB, free: 8.188 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003426/0.2895, allocations: 1.498 MB / 0.5101 GB, free: 6.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004362/0.2939, allocations: 1.992 MB / 0.512 GB, free: 4.672 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001637/0.2955, allocations: 1.549 MB / 0.5135 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008925/0.2964, allocations: 0.8552 MB / 0.5143 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007537/0.2972, allocations: 0.7676 MB / 0.5151 GB, free: 1.469 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009468/0.2982, allocations: 0.8527 MB / 0.5159 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001749/0.2984, allocations: 132 kB / 0.5161 GB, free: 496 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004416/0.3028, allocations: 1.779 MB / 0.5178 GB, free: 14.7 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000294/0.3031, allocations: 335 kB / 0.5181 GB, free: 14.38 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006207/0.3037, allocations: 0.6806 MB / 0.5188 GB, free: 13.69 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005001/0.3087, allocations: 3.358 MB / 0.5221 GB, free: 10.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3088, allocations: 8 kB / 0.5221 GB, free: 10.31 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3088, allocations: 0 / 0.5221 GB, free: 10.31 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.573e-05/0.3088, allocations: 0 / 0.5221 GB, free: 10.31 MB / 398.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.003132/0.3119, allocations: 1.844 MB / 0.5239 GB, free: 8.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.312, allocations: 8.031 kB / 0.5239 GB, free: 8.402 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001846/0.3122, allocations: 161.1 kB / 0.524 GB, free: 8.234 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001205/0.3134, allocations: 279.5 kB / 0.5243 GB, free: 7.961 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009943/0.3144, allocations: 0.6691 MB / 0.5249 GB, free: 7.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.3145, allocations: 112.4 kB / 0.5251 GB, free: 7.133 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001996/0.3147, allocations: 124.3 kB / 0.5252 GB, free: 7.012 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002059/0.3168, allocations: 1.333 MB / 0.5265 GB, free: 5.633 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.402e-05/0.3168, allocations: 0 / 0.5265 GB, free: 5.633 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001174/0.3169, allocations: 44 kB / 0.5265 GB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.189e-05/0.317, allocations: 28 kB / 0.5265 GB, free: 5.562 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00257/0.3195, allocations: 1.695 MB / 0.5282 GB, free: 3.859 MB / 398.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.006338/0.3259, allocations: 4.299 MB / 0.5324 GB, free: 15.35 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003516/0.3294, allocations: 2.27 MB / 0.5346 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008325/0.3303, allocations: 0.5966 MB / 0.5352 GB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006631/0.3369, allocations: 5.396 MB / 0.5405 GB, free: 6.379 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.3369, allocations: 39.22 kB / 0.5405 GB, free: 6.332 MB / 414.1 MB Notification: Performance of pre-optimization done (n=78): time 2.124e-06/0.3369, allocations: 0 / 0.5405 GB, free: 6.332 MB / 414.1 MB Notification: Performance of matching and sorting (n=95): time 0.01496/0.3519, allocations: 3.58 MB / 0.544 GB, free: 2.684 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.352, allocations: 64.41 kB / 0.5441 GB, free: 2.605 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006176/0.3526, allocations: 0.5823 MB / 0.5446 GB, free: 2.012 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.345e-05/0.3527, allocations: 45.7 kB / 0.5447 GB, free: 1.961 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003185/0.353, allocations: 0.539 MB / 0.5452 GB, free: 1.414 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002532/0.3533, allocations: 361 kB / 0.5455 GB, free: 1.059 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000304/0.3536, allocations: 234.8 kB / 0.5458 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001865/0.3538, allocations: 398.7 kB / 0.5461 GB, free: 436 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006234/0.3544, allocations: 354.5 kB / 0.5465 GB, free: 80 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009059/0.3553, allocations: 0.7519 MB / 0.5472 GB, free: 15.14 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00168/0.357, allocations: 1.204 MB / 0.5484 GB, free: 13.77 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.357, allocations: 4 kB / 0.5484 GB, free: 13.76 MB / 430.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.004009/0.361, allocations: 1.479 MB / 0.5498 GB, free: 12.27 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.3611, allocations: 12 kB / 0.5499 GB, free: 12.26 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/0.3611, allocations: 12 kB / 0.5499 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00199/0.3631, allocations: 249.8 kB / 0.5501 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001493/0.3646, allocations: 327.4 kB / 0.5504 GB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005334/0.3699, allocations: 3.857 MB / 0.5542 GB, free: 7.551 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007399/0.3707, allocations: 43.98 kB / 0.5542 GB, free: 7.508 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.3708, allocations: 67.98 kB / 0.5543 GB, free: 7.441 MB / 430.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.0003862/0.3712, allocations: 273.5 kB / 0.5545 GB, free: 7.164 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/0.3714, allocations: 91.38 kB / 0.5546 GB, free: 7.074 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004025/0.3754, allocations: 1.332 MB / 0.5559 GB, free: 5.719 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.3754, allocations: 8 kB / 0.5559 GB, free: 5.711 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3754, allocations: 144 / 0.5559 GB, free: 5.711 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.3755, allocations: 15.95 kB / 0.556 GB, free: 5.695 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001275/0.3767, allocations: 1.081 MB / 0.557 GB, free: 4.547 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.3768, allocations: 3.984 kB / 0.557 GB, free: 4.543 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001252/0.378, allocations: 211.8 kB / 0.5572 GB, free: 4.336 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001924/0.3799, allocations: 233.6 kB / 0.5574 GB, free: 4.102 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-05/0.38, allocations: 39.86 kB / 0.5575 GB, free: 4.062 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004812/0.3849, allocations: 3.768 MB / 0.5612 GB, free: 16 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3849, allocations: 0 / 0.5612 GB, free: 16 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004238/0.3891, allocations: 1.744 MB / 0.5629 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001754/0.3893, allocations: 156.6 kB / 0.563 GB, free: 14.06 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/0.3894, allocations: 16 kB / 0.563 GB, free: 14.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000529/0.39, allocations: 20 kB / 0.563 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001662/0.3902, allocations: 92.77 kB / 0.5631 GB, free: 13.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.926e-05/0.3902, allocations: 39.98 kB / 0.5632 GB, free: 13.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004115/0.3906, allocations: 391.1 kB / 0.5635 GB, free: 13.52 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3907, allocations: 0 / 0.5635 GB, free: 13.52 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001818/0.3925, allocations: 0.6818 MB / 0.5642 GB, free: 12.84 MB / 446.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.005768/0.3983, allocations: 2.998 MB / 0.5671 GB, free: 9.793 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001988/0.4003, allocations: 1.259 MB / 0.5684 GB, free: 8.512 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.4003, allocations: 0 / 0.5684 GB, free: 8.512 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001084/0.4014, allocations: 0.7527 MB / 0.5691 GB, free: 7.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009747/0.4024, allocations: 214 kB / 0.5693 GB, free: 7.523 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01466/0.417, allocations: 8.436 MB / 0.5775 GB, free: 14.58 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005992/0.4177, allocations: 1.041 MB / 0.5786 GB, free: 13.51 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007768/0.4184, allocations: 227.2 kB / 0.5788 GB, free: 13.28 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006398/0.4191, allocations: 477.7 kB / 0.5792 GB, free: 12.82 MB / 462.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4191, allocations: 0 / 0.5792 GB, free: 12.82 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2404/0.6595, allocations: 32.13 MB / 0.6106 GB, free: 118.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.72/14.38, allocations: 14.44 kB / 0.6106 GB, free: 118.8 MB / 478.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)