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.007941/0.007941, allocations: 97.42 kB / 15.73 MB, free: 5.602 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.002066/0.002066, allocations: 193.4 kB / 16.68 MB, free: 5.523 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08376/0.08376, allocations: 15.31 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001815/0.001815, allocations: 68.08 kB / 424.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0885/0.09033, allocations: 53.61 MB / 478.3 MB, free: 6.285 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.05017/0.1405, allocations: 25.98 MB / 0.4925 GB, free: 12.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.1988/0.3393, allocations: 16.66 MB / 0.5087 GB, free: 18.15 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006524/0.34, allocations: 15.75 kB / 0.5088 GB, free: 18.15 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008994/0.3409, allocations: 331.9 kB / 0.5091 GB, free: 18.15 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003848/0.3448, allocations: 1.482 MB / 0.5105 GB, free: 18.13 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004963/0.3498, allocations: 1.984 MB / 0.5125 GB, free: 17.51 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002172/0.352, allocations: 1.543 MB / 0.514 GB, free: 17.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001123/0.3531, allocations: 0.8465 MB / 0.5148 GB, free: 17.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001032/0.3542, allocations: 0.772 MB / 0.5155 GB, free: 17.06 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001332/0.3555, allocations: 0.8513 MB / 0.5164 GB, free: 16.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00031/0.3558, allocations: 133.1 kB / 0.5165 GB, free: 16.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006366/0.3622, allocations: 1.787 MB / 0.5182 GB, free: 16.74 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005818/0.3628, allocations: 326.5 kB / 0.5186 GB, free: 16.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001094/0.3639, allocations: 0.6829 MB / 0.5192 GB, free: 16.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00869/0.3726, allocations: 3.362 MB / 0.5225 GB, free: 14.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.3727, allocations: 0.9688 kB / 0.5225 GB, free: 14.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.3727, allocations: 2.484 kB / 0.5225 GB, free: 14.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.822e-05/0.3727, allocations: 3.375 kB / 0.5225 GB, free: 14.91 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.003805/0.3766, allocations: 1.842 MB / 0.5243 GB, free: 13.79 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.3766, allocations: 9.688 kB / 0.5243 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000164/0.3768, allocations: 169.5 kB / 0.5245 GB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001197/0.378, allocations: 278.1 kB / 0.5247 GB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009974/0.379, allocations: 0.6734 MB / 0.5254 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/0.3791, allocations: 110.7 kB / 0.5255 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001776/0.3793, allocations: 114 kB / 0.5256 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001997/0.3813, allocations: 1.34 MB / 0.5269 GB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.453e-05/0.3813, allocations: 0 / 0.5269 GB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001181/0.3815, allocations: 45.62 kB / 0.527 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.021e-05/0.3815, allocations: 25.91 kB / 0.527 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002296/0.3838, allocations: 1.695 MB / 0.5287 GB, free: 11.96 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.005778/0.3896, allocations: 4.299 MB / 0.5328 GB, free: 8.961 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002827/0.3924, allocations: 2.274 MB / 0.5351 GB, free: 7.773 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007032/0.3931, allocations: 0.591 MB / 0.5356 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005544/0.3987, allocations: 5.4 MB / 0.5409 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.727e-05/0.3987, allocations: 39.22 kB / 0.541 GB, free: 2.512 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 2.164e-06/0.3988, allocations: 0 / 0.541 GB, free: 2.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=95): time 0.01373/0.4125, allocations: 3.585 MB / 0.5445 GB, free: 14.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.147e-05/0.4126, allocations: 60.41 kB / 0.5445 GB, free: 14.82 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007896/0.4134, allocations: 0.5927 MB / 0.5451 GB, free: 14.22 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001304/0.4135, allocations: 41.7 kB / 0.5451 GB, free: 14.17 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004176/0.4139, allocations: 0.5456 MB / 0.5457 GB, free: 13.62 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003349/0.4143, allocations: 346.6 kB / 0.546 GB, free: 13.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003502/0.4146, allocations: 234.8 kB / 0.5462 GB, free: 13.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002085/0.4149, allocations: 389.4 kB / 0.5466 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006518/0.4155, allocations: 359.3 kB / 0.5469 GB, free: 12.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009755/0.4165, allocations: 0.7505 MB / 0.5477 GB, free: 11.4 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001892/0.4184, allocations: 1.204 MB / 0.5488 GB, free: 10.05 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.4184, allocations: 4 kB / 0.5488 GB, free: 10.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.004143/0.4226, allocations: 1.477 MB / 0.5503 GB, free: 8.578 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.783e-05/0.4226, allocations: 8 kB / 0.5503 GB, free: 8.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.706e-05/0.4227, allocations: 18.69 kB / 0.5503 GB, free: 8.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00188/0.4245, allocations: 245.5 kB / 0.5506 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001544/0.4261, allocations: 331.3 kB / 0.5509 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005848/0.432, allocations: 3.859 MB / 0.5546 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009773/0.433, allocations: 40 kB / 0.5547 GB, free: 3.848 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001473/0.4331, allocations: 71.98 kB / 0.5547 GB, free: 3.777 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.0005269/0.4337, allocations: 280.8 kB / 0.555 GB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002202/0.4339, allocations: 94.06 kB / 0.5551 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00413/0.438, allocations: 1.327 MB / 0.5564 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.56e-05/0.4381, allocations: 18.5 kB / 0.5564 GB, free: 2.082 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.4381, allocations: 2.688 kB / 0.5564 GB, free: 2.082 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.827e-05/0.4381, allocations: 3.984 kB / 0.5564 GB, free: 2.078 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001795/0.4399, allocations: 1.073 MB / 0.5575 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.862e-06/0.4399, allocations: 0 / 0.5575 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001242/0.4412, allocations: 215.8 kB / 0.5577 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001875/0.4431, allocations: 229.5 kB / 0.5579 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.542e-05/0.4432, allocations: 35.92 kB / 0.5579 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005461/0.4487, allocations: 3.768 MB / 0.5616 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.4487, allocations: 7.969 kB / 0.5616 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004651/0.4533, allocations: 1.747 MB / 0.5633 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003191/0.4537, allocations: 152.6 kB / 0.5635 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001808/0.4539, allocations: 19.98 kB / 0.5635 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000551/0.4544, allocations: 24 kB / 0.5635 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001982/0.4547, allocations: 83.48 kB / 0.5636 GB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.489e-05/0.4548, allocations: 47.02 kB / 0.5636 GB, free: 10.36 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005256/0.4553, allocations: 391.1 kB / 0.564 GB, free: 9.988 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4553, allocations: 0 / 0.564 GB, free: 9.988 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002218/0.4575, allocations: 0.6779 MB / 0.5647 GB, free: 9.309 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.006713/0.4642, allocations: 2.999 MB / 0.5676 GB, free: 6.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002455/0.4667, allocations: 1.255 MB / 0.5688 GB, free: 5.137 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.4668, allocations: 4 kB / 0.5688 GB, free: 5.133 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00126/0.468, allocations: 0.7472 MB / 0.5696 GB, free: 4.363 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00123/0.4693, allocations: 208.7 kB / 0.5698 GB, free: 4.191 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01752/0.4868, allocations: 8.455 MB / 0.578 GB, free: 11.35 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007827/0.4876, allocations: 1.041 MB / 0.579 GB, free: 10.29 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008543/0.4885, allocations: 223.7 kB / 0.5792 GB, free: 10.14 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007403/0.4893, allocations: 475.6 kB / 0.5797 GB, free: 9.688 MB / 430.1 MB Notification: Performance of SimCode: time 5.52e-07/0.4893, allocations: 0 / 0.5797 GB, free: 9.688 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0738/0.5631, allocations: 32.15 MB / 0.6111 GB, free: 10.29 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.99/15.56, allocations: 8 kB / 0.6111 GB, free: 10.28 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 & /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)