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.006718/0.006718, allocations: 101.8 kB / 15.73 MB, free: 6.031 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.001403/0.001403, allocations: 186.6 kB / 16.67 MB, free: 5.965 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.393/1.393, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2006/0.2006, allocations: 15.33 MB / 305.9 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 63.89 kB / 424.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2641, allocations: 53.6 MB / 478.3 MB, free: 25.66 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.03484/0.299, allocations: 25.45 MB / 0.4919 GB, free: 9.32 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01828/0.3173, allocations: 16.66 MB / 0.5082 GB, free: 8.594 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001242/0.3186, allocations: 15.88 kB / 0.5082 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.3197, allocations: 325.5 kB / 0.5085 GB, free: 8.258 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004437/0.3241, allocations: 1.494 MB / 0.51 GB, free: 6.754 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005437/0.3296, allocations: 1.996 MB / 0.512 GB, free: 4.742 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002193/0.3318, allocations: 1.549 MB / 0.5135 GB, free: 3.188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001102/0.3329, allocations: 0.8512 MB / 0.5143 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000919/0.3338, allocations: 0.7676 MB / 0.515 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001027/0.3349, allocations: 0.845 MB / 0.5159 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001823/0.3351, allocations: 132 kB / 0.516 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005351/0.3404, allocations: 1.79 MB / 0.5177 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003848/0.3409, allocations: 331 kB / 0.5181 GB, free: 14.45 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007567/0.3416, allocations: 0.6806 MB / 0.5187 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008789/0.3504, allocations: 3.348 MB / 0.522 GB, free: 10.41 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.133e-05/0.3505, allocations: 4 kB / 0.522 GB, free: 10.4 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.3505, allocations: 3.938 kB / 0.522 GB, free: 10.4 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.537e-05/0.3506, allocations: 0 / 0.522 GB, free: 10.4 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.004144/0.3547, allocations: 1.797 MB / 0.5238 GB, free: 8.547 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.751e-05/0.3548, allocations: 15.95 kB / 0.5238 GB, free: 8.531 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002169/0.355, allocations: 165.1 kB / 0.5239 GB, free: 8.359 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001251/0.3563, allocations: 278.8 kB / 0.5242 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001085/0.3574, allocations: 0.6687 MB / 0.5249 GB, free: 7.375 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/0.3575, allocations: 108.4 kB / 0.525 GB, free: 7.262 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002001/0.3577, allocations: 116.3 kB / 0.5251 GB, free: 7.148 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002108/0.3599, allocations: 1.341 MB / 0.5264 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.564e-05/0.3599, allocations: 0 / 0.5264 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001084/0.36, allocations: 48 kB / 0.5264 GB, free: 5.715 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.286e-05/0.36, allocations: 24 kB / 0.5264 GB, free: 5.691 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002583/0.3626, allocations: 1.699 MB / 0.5281 GB, free: 3.984 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.006728/0.3694, allocations: 4.287 MB / 0.5323 GB, free: 15.49 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003463/0.3729, allocations: 2.266 MB / 0.5345 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008644/0.3738, allocations: 0.5889 MB / 0.5351 GB, free: 12.55 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006924/0.3807, allocations: 5.384 MB / 0.5403 GB, free: 6.539 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.695e-05/0.3808, allocations: 43.22 kB / 0.5404 GB, free: 6.488 MB / 414.1 MB Notification: Performance of pre-optimization done (n=78): time 4.078e-06/0.3808, allocations: 0 / 0.5404 GB, free: 6.488 MB / 414.1 MB Notification: Performance of matching and sorting (n=95): time 0.01538/0.3962, allocations: 3.575 MB / 0.5439 GB, free: 2.844 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.514e-05/0.3962, allocations: 60.41 kB / 0.5439 GB, free: 2.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007272/0.397, allocations: 0.5822 MB / 0.5445 GB, free: 2.176 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.769e-05/0.3971, allocations: 45.7 kB / 0.5445 GB, free: 2.125 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003577/0.3974, allocations: 0.5333 MB / 0.5451 GB, free: 1.582 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003157/0.3977, allocations: 335.2 kB / 0.5454 GB, free: 1.25 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003646/0.3981, allocations: 234.7 kB / 0.5456 GB, free: 1.016 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.3983, allocations: 394.7 kB / 0.546 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006603/0.399, allocations: 354.5 kB / 0.5463 GB, free: 280 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009713/0.3999, allocations: 0.7558 MB / 0.5471 GB, free: 15.34 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001798/0.4018, allocations: 1.196 MB / 0.5482 GB, free: 13.96 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.006e-05/0.4018, allocations: 4 kB / 0.5482 GB, free: 13.96 MB / 430.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.00416/0.4059, allocations: 1.47 MB / 0.5497 GB, free: 12.48 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.015e-05/0.406, allocations: 12 kB / 0.5497 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.058e-05/0.406, allocations: 12 kB / 0.5497 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001962/0.408, allocations: 250.2 kB / 0.5499 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001423/0.4094, allocations: 319.5 kB / 0.5502 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005561/0.415, allocations: 3.881 MB / 0.554 GB, free: 7.742 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008996/0.4159, allocations: 44.06 kB / 0.5541 GB, free: 7.699 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001584/0.4161, allocations: 67.98 kB / 0.5541 GB, free: 7.633 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.0005556/0.4167, allocations: 269.4 kB / 0.5544 GB, free: 7.359 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002408/0.4169, allocations: 82.97 kB / 0.5545 GB, free: 7.277 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004235/0.4212, allocations: 1.336 MB / 0.5558 GB, free: 5.918 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-05/0.4212, allocations: 12 kB / 0.5558 GB, free: 5.906 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.4212, allocations: 4 kB / 0.5558 GB, free: 5.902 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.4212, allocations: 3.984 kB / 0.5558 GB, free: 5.898 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001646/0.4229, allocations: 1.077 MB / 0.5568 GB, free: 4.754 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/0.4229, allocations: 4 kB / 0.5568 GB, free: 4.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001247/0.4242, allocations: 215.9 kB / 0.557 GB, free: 4.539 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002051/0.4262, allocations: 237.4 kB / 0.5573 GB, free: 4.301 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001618/0.4264, allocations: 35.92 kB / 0.5573 GB, free: 4.266 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005843/0.4323, allocations: 3.768 MB / 0.561 GB, free: 224 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.935e-06/0.4323, allocations: 3.938 kB / 0.561 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004885/0.4372, allocations: 1.74 MB / 0.5627 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002698/0.4375, allocations: 148.1 kB / 0.5628 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002133/0.4377, allocations: 23.98 kB / 0.5629 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006466/0.4384, allocations: 20 kB / 0.5629 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002577/0.4387, allocations: 88.95 kB / 0.563 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.4388, allocations: 39.98 kB / 0.563 GB, free: 14.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005893/0.4394, allocations: 391.1 kB / 0.5634 GB, free: 13.73 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4394, allocations: 0 / 0.5634 GB, free: 13.73 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002366/0.4418, allocations: 0.6675 MB / 0.564 GB, free: 13.06 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.006534/0.4483, allocations: 2.987 MB / 0.5669 GB, free: 10.03 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002298/0.4506, allocations: 1.254 MB / 0.5682 GB, free: 8.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.4507, allocations: 0 / 0.5682 GB, free: 8.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001157/0.4518, allocations: 0.7577 MB / 0.5689 GB, free: 7.965 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.453, allocations: 206.2 kB / 0.5691 GB, free: 7.766 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.016/0.469, allocations: 8.392 MB / 0.5773 GB, free: 14.87 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006938/0.4697, allocations: 1.038 MB / 0.5783 GB, free: 13.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008381/0.4706, allocations: 227.2 kB / 0.5785 GB, free: 13.58 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006765/0.4713, allocations: 484 kB / 0.579 GB, free: 13.11 MB / 462.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4713, allocations: 0 / 0.579 GB, free: 13.11 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2837/0.755, allocations: 32.14 MB / 0.6104 GB, free: 118.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.67/14.42, allocations: 5.703 kB / 0.6104 GB, free: 118.7 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_ClimateChange_HydrogenotrophicMethanogenesis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Chemical_Chemical_Examples_ClimateChange_HydrogenotrophicMethanogenesis.fmu > Chemical_Chemical.Examples.ClimateChange.HydrogenotrophicMethanogenesis.pipe 2>&1)