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.005135/0.005135, allocations: 100.5 kB / 15.73 MB, free: 6.023 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.00173/0.00173, allocations: 192.9 kB / 16.67 MB, free: 5.957 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.342/1.342, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2128/0.2128, allocations: 15.32 MB / 305.9 MB, free: 15.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 64.12 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2371, allocations: 53.61 MB / 478.3 MB, free: 25.67 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.03187/0.269, allocations: 25.4 MB / 0.4919 GB, free: 9.34 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01528/0.2843, allocations: 16.67 MB / 0.5082 GB, free: 8.605 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008616/0.2852, allocations: 11.94 kB / 0.5082 GB, free: 8.594 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001007/0.2862, allocations: 333.5 kB / 0.5085 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003994/0.2902, allocations: 1.482 MB / 0.51 GB, free: 6.773 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004898/0.2951, allocations: 1.984 MB / 0.5119 GB, free: 4.773 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002139/0.2973, allocations: 1.541 MB / 0.5134 GB, free: 3.227 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001207/0.2985, allocations: 0.8473 MB / 0.5142 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00104/0.2996, allocations: 0.7793 MB / 0.515 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001258/0.3008, allocations: 0.845 MB / 0.5158 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002908/0.3012, allocations: 136 kB / 0.516 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004669/0.3058, allocations: 1.775 MB / 0.5177 GB, free: 14.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004001/0.3063, allocations: 331 kB / 0.518 GB, free: 14.49 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008188/0.3071, allocations: 0.6884 MB / 0.5187 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006091/0.3132, allocations: 3.344 MB / 0.5219 GB, free: 10.45 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.3132, allocations: 0 / 0.5219 GB, free: 10.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3132, allocations: 0 / 0.5219 GB, free: 10.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.813e-05/0.3133, allocations: 3.938 kB / 0.5219 GB, free: 10.44 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.00331/0.3166, allocations: 1.809 MB / 0.5237 GB, free: 8.578 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.3166, allocations: 11.97 kB / 0.5237 GB, free: 8.566 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001995/0.3168, allocations: 165 kB / 0.5239 GB, free: 8.395 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001172/0.318, allocations: 274.8 kB / 0.5241 GB, free: 8.125 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.3191, allocations: 0.6687 MB / 0.5248 GB, free: 7.414 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001104/0.3192, allocations: 116.4 kB / 0.5249 GB, free: 7.293 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000187/0.3194, allocations: 112.3 kB / 0.525 GB, free: 7.184 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002218/0.3216, allocations: 1.333 MB / 0.5263 GB, free: 5.805 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.834e-05/0.3217, allocations: 4 kB / 0.5263 GB, free: 5.801 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001085/0.3218, allocations: 44 kB / 0.5264 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.425e-05/0.3218, allocations: 28 kB / 0.5264 GB, free: 5.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002603/0.3244, allocations: 1.695 MB / 0.528 GB, free: 4.027 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.006784/0.3312, allocations: 4.283 MB / 0.5322 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003342/0.3346, allocations: 2.274 MB / 0.5344 GB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008133/0.3354, allocations: 0.5967 MB / 0.535 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006882/0.3423, allocations: 5.381 MB / 0.5403 GB, free: 6.574 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/0.3424, allocations: 39.22 kB / 0.5403 GB, free: 6.527 MB / 414.1 MB Notification: Performance of pre-optimization done (n=78): time 3.537e-06/0.3424, allocations: 4 kB / 0.5403 GB, free: 6.523 MB / 414.1 MB Notification: Performance of matching and sorting (n=95): time 0.01453/0.3569, allocations: 3.569 MB / 0.5438 GB, free: 2.883 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.808e-05/0.357, allocations: 60.41 kB / 0.5439 GB, free: 2.809 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006441/0.3576, allocations: 0.59 MB / 0.5444 GB, free: 2.207 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.059e-05/0.3577, allocations: 41.7 kB / 0.5445 GB, free: 2.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000326/0.358, allocations: 0.5333 MB / 0.545 GB, free: 1.617 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002625/0.3583, allocations: 327.3 kB / 0.5453 GB, free: 1.293 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000338/0.3587, allocations: 238.7 kB / 0.5455 GB, free: 1.055 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.3588, allocations: 394.7 kB / 0.5459 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006295/0.3595, allocations: 358.5 kB / 0.5463 GB, free: 316 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008813/0.3604, allocations: 0.7441 MB / 0.547 GB, free: 15.39 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001615/0.362, allocations: 1.208 MB / 0.5482 GB, free: 14 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.826e-06/0.362, allocations: 4 kB / 0.5482 GB, free: 14 MB / 430.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.00388/0.3659, allocations: 1.466 MB / 0.5496 GB, free: 12.52 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.3659, allocations: 8 kB / 0.5496 GB, free: 12.51 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.606e-05/0.366, allocations: 16 kB / 0.5496 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001954/0.3679, allocations: 246 kB / 0.5499 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001419/0.3694, allocations: 327.5 kB / 0.5502 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005157/0.3745, allocations: 3.865 MB / 0.554 GB, free: 7.793 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007625/0.3753, allocations: 43.98 kB / 0.554 GB, free: 7.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000119/0.3754, allocations: 76.05 kB / 0.5541 GB, free: 7.676 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.0003959/0.3758, allocations: 277.3 kB / 0.5543 GB, free: 7.395 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001794/0.376, allocations: 82.97 kB / 0.5544 GB, free: 7.312 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004033/0.3801, allocations: 1.34 MB / 0.5557 GB, free: 5.949 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.3801, allocations: 8 kB / 0.5557 GB, free: 5.941 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.3801, allocations: 0 / 0.5557 GB, free: 5.941 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.3801, allocations: 7.984 kB / 0.5557 GB, free: 5.934 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001462/0.3816, allocations: 1.073 MB / 0.5568 GB, free: 4.793 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.3816, allocations: 0 / 0.5568 GB, free: 4.793 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001243/0.3829, allocations: 215.9 kB / 0.557 GB, free: 4.582 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001875/0.3847, allocations: 233.3 kB / 0.5572 GB, free: 4.348 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.916e-05/0.3849, allocations: 35.92 kB / 0.5572 GB, free: 4.312 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004792/0.3897, allocations: 3.775 MB / 0.5609 GB, free: 264 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.3897, allocations: 4.031 kB / 0.5609 GB, free: 260 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004122/0.3938, allocations: 1.74 MB / 0.5626 GB, free: 14.47 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002223/0.394, allocations: 152.1 kB / 0.5628 GB, free: 14.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001167/0.3942, allocations: 16 kB / 0.5628 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004909/0.3947, allocations: 27.98 kB / 0.5628 GB, free: 14.26 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001784/0.3948, allocations: 84.83 kB / 0.5629 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.419e-05/0.3949, allocations: 39.98 kB / 0.5629 GB, free: 14.14 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004192/0.3954, allocations: 387.1 kB / 0.5633 GB, free: 13.77 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3954, allocations: 0 / 0.5633 GB, free: 13.77 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001843/0.3972, allocations: 0.6675 MB / 0.564 GB, free: 13.1 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.0057/0.4029, allocations: 2.983 MB / 0.5669 GB, free: 10.07 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00198/0.4049, allocations: 1.258 MB / 0.5681 GB, free: 8.793 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.4049, allocations: 4 kB / 0.5681 GB, free: 8.789 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.406, allocations: 0.7491 MB / 0.5688 GB, free: 8.012 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009725/0.407, allocations: 209.7 kB / 0.569 GB, free: 7.812 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01433/0.4213, allocations: 8.392 MB / 0.5772 GB, free: 14.92 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006482/0.422, allocations: 1.038 MB / 0.5782 GB, free: 13.85 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007763/0.4228, allocations: 231.2 kB / 0.5785 GB, free: 13.62 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006214/0.4234, allocations: 479.2 kB / 0.5789 GB, free: 13.16 MB / 462.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4234, allocations: 0 / 0.5789 GB, free: 13.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2541/0.6775, allocations: 32.62 MB / 0.6108 GB, free: 119 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.5/14.18, allocations: 4.109 kB / 0.6108 GB, free: 119 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)