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.0012/0.0012, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001252/0.001252, allocations: 193.2 kB / 16.13 MB, free: 6.656 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.251/1.251, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1874/0.1874, allocations: 15.31 MB / 305.3 MB, free: 15.33 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 63.91 kB / 369.8 MB, free: 4.352 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08916/0.09033, allocations: 53.62 MB / 423.4 MB, free: 14.68 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.2905/0.3808, allocations: 25.78 MB / 449.2 MB, free: 39.39 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0119/0.3928, allocations: 16.63 MB / 465.8 MB, free: 31.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000627/0.3934, allocations: 25.53 kB / 465.8 MB, free: 31.15 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006845/0.3941, allocations: 305.2 kB / 466.1 MB, free: 31 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002444/0.3966, allocations: 1.305 MB / 467.4 MB, free: 30.31 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003665/0.4002, allocations: 1.744 MB / 469.2 MB, free: 29.36 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001242/0.4015, allocations: 1.486 MB / 470.6 MB, free: 28.65 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006464/0.4021, allocations: 0.7297 MB / 471.4 MB, free: 28.34 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006963/0.4028, allocations: 0.7528 MB / 472.1 MB, free: 28.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007719/0.4036, allocations: 0.8385 MB / 473 MB, free: 27.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001634/0.4038, allocations: 87.69 kB / 473 MB, free: 27.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004222/0.408, allocations: 1.76 MB / 474.8 MB, free: 27.35 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002311/0.4083, allocations: 285.2 kB / 475.1 MB, free: 27.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005218/0.4088, allocations: 0.6453 MB / 475.7 MB, free: 26.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004294/0.4131, allocations: 3.138 MB / 478.9 MB, free: 25.53 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.4131, allocations: 6.25 kB / 478.9 MB, free: 25.53 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.4131, allocations: 0 / 478.9 MB, free: 25.53 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.549e-05/0.4132, allocations: 0 / 478.9 MB, free: 25.53 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.002912/0.4161, allocations: 1.812 MB / 480.7 MB, free: 24.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.4161, allocations: 9.5 kB / 480.7 MB, free: 24.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001759/0.4163, allocations: 167.4 kB / 480.9 MB, free: 24.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001128/0.4174, allocations: 264 kB / 481.1 MB, free: 24.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007912/0.4182, allocations: 0.6497 MB / 481.8 MB, free: 23.78 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.82e-05/0.4183, allocations: 110.8 kB / 481.9 MB, free: 23.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001669/0.4185, allocations: 115.7 kB / 482 MB, free: 23.67 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001891/0.4204, allocations: 1.34 MB / 483.3 MB, free: 23.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.076e-05/0.4204, allocations: 0 / 483.3 MB, free: 23.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.4206, allocations: 42.22 kB / 483.4 MB, free: 23.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.412e-05/0.4206, allocations: 25.91 kB / 483.4 MB, free: 23.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002457/0.423, allocations: 1.693 MB / 485.1 MB, free: 22.59 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.00593/0.429, allocations: 4.298 MB / 489.4 MB, free: 19.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003117/0.4321, allocations: 2.277 MB / 491.7 MB, free: 18.99 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006957/0.4328, allocations: 0.5958 MB / 492.3 MB, free: 18.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005573/0.4384, allocations: 5.399 MB / 497.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.706e-05/0.4384, allocations: 42.84 kB / 497.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=78): time 2.034e-06/0.4384, allocations: 0 / 497.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=95): time 0.01445/0.4529, allocations: 3.568 MB / 0.4895 GB, free: 12.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.15e-05/0.4529, allocations: 59.41 kB / 0.4896 GB, free: 12.85 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005062/0.4535, allocations: 0.5932 MB / 0.4902 GB, free: 12.58 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.124e-05/0.4535, allocations: 41.17 kB / 0.4902 GB, free: 12.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002059/0.4537, allocations: 0.531 MB / 0.4907 GB, free: 12.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001729/0.4539, allocations: 333.2 kB / 0.491 GB, free: 11.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002584/0.4542, allocations: 231.7 kB / 0.4912 GB, free: 11.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.955e-05/0.4543, allocations: 396.5 kB / 0.4916 GB, free: 11.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005305/0.4548, allocations: 358.8 kB / 0.492 GB, free: 11.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000659/0.4555, allocations: 0.7468 MB / 0.4927 GB, free: 10.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001212/0.4567, allocations: 1.209 MB / 0.4939 GB, free: 9.691 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.4567, allocations: 11.53 kB / 0.4939 GB, free: 9.684 MB / 366.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.00377/0.4605, allocations: 1.467 MB / 0.4953 GB, free: 9.094 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.4605, allocations: 9.25 kB / 0.4953 GB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.4605, allocations: 19.55 kB / 0.4954 GB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002051/0.4626, allocations: 249.6 kB / 0.4956 GB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/0.4639, allocations: 328.7 kB / 0.4959 GB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004478/0.4684, allocations: 3.485 MB / 0.4993 GB, free: 5.895 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008593/0.4693, allocations: 78.41 kB / 0.4994 GB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000107/0.4694, allocations: 68.41 kB / 0.4994 GB, free: 5.852 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.0003438/0.4697, allocations: 276.8 kB / 0.4997 GB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001458/0.4699, allocations: 83.25 kB / 0.4998 GB, free: 5.582 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003895/0.4738, allocations: 1.327 MB / 0.5011 GB, free: 4.449 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.4738, allocations: 12.61 kB / 0.5011 GB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.4738, allocations: 3.938 kB / 0.5011 GB, free: 4.434 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/0.4738, allocations: 5.016 kB / 0.5011 GB, free: 4.434 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001188/0.475, allocations: 1.081 MB / 0.5022 GB, free: 3.492 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.475, allocations: 8 kB / 0.5022 GB, free: 3.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001103/0.4762, allocations: 210.9 kB / 0.5024 GB, free: 3.309 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001971/0.4781, allocations: 232.1 kB / 0.5026 GB, free: 3.141 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.267e-05/0.4782, allocations: 36.27 kB / 0.5026 GB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004019/0.4822, allocations: 3.384 MB / 0.5059 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.4823, allocations: 4.031 kB / 0.5059 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004376/0.4866, allocations: 1.744 MB / 0.5076 GB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002133/0.4869, allocations: 160 kB / 0.5078 GB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001206/0.487, allocations: 16 kB / 0.5078 GB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005631/0.4876, allocations: 35.92 kB / 0.5078 GB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001787/0.4878, allocations: 80.83 kB / 0.5079 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.115e-05/0.4878, allocations: 43.98 kB / 0.508 GB, free: 13.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004202/0.4883, allocations: 391.1 kB / 0.5083 GB, free: 13.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4883, allocations: 0 / 0.5083 GB, free: 13.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001899/0.4902, allocations: 0.6636 MB / 0.509 GB, free: 12.62 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.006109/0.4963, allocations: 2.981 MB / 0.5119 GB, free: 9.594 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002131/0.4985, allocations: 1.259 MB / 0.5131 GB, free: 8.309 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4985, allocations: 0 / 0.5131 GB, free: 8.309 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001051/0.4995, allocations: 0.741 MB / 0.5138 GB, free: 7.547 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.5007, allocations: 204.4 kB / 0.514 GB, free: 7.344 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01604/0.5167, allocations: 9.163 MB / 0.523 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005381/0.5173, allocations: 1.038 MB / 0.524 GB, free: 12.55 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001009/0.5183, allocations: 227.3 kB / 0.5242 GB, free: 12.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006164/0.5189, allocations: 475.9 kB / 0.5247 GB, free: 11.86 MB / 398.1 MB Notification: Performance of SimCode: time 8.92e-07/0.519, allocations: 0 / 0.5247 GB, free: 11.86 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04736/0.5663, allocations: 30.93 MB / 0.5549 GB, free: 13.1 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001734/0.5665, allocations: 236 kB / 0.5551 GB, free: 12.85 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.517/3.083, allocations: 0 / 0.5551 GB, free: 12.85 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 & /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)