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.0009413/0.0009412, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.005968/0.005968, allocations: 172.5 kB / 16.26 MB, free: 6.613 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.267/1.267, allocations: 223.3 MB / 240.3 MB, free: 5.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.1822/0.1822, allocations: 15.28 MB / 306.7 MB, free: 15.74 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002932/0.0002933, allocations: 8 kB / 372.2 MB, free: 3.523 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2357/0.236, allocations: 54.63 MB / 426.8 MB, free: 39.73 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65: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:3019:6-3019:65: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.02163/0.2577, allocations: 25.37 MB / 452.2 MB, free: 31.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.014/0.2717, allocations: 16.44 MB / 468.6 MB, free: 20.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008983/0.2726, allocations: 22.25 kB / 468.6 MB, free: 20.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007745/0.2734, allocations: 299 kB / 468.9 MB, free: 20.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003391/0.2768, allocations: 1.308 MB / 470.3 MB, free: 19.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004371/0.2812, allocations: 1.742 MB / 472 MB, free: 18.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001449/0.2827, allocations: 1.486 MB / 473.5 MB, free: 17.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000667/0.2834, allocations: 0.6874 MB / 474.2 MB, free: 17.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007184/0.2841, allocations: 0.7287 MB / 474.9 MB, free: 17.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008181/0.2849, allocations: 0.7919 MB / 475.7 MB, free: 16.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.285, allocations: 72 kB / 475.8 MB, free: 16.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004355/0.2894, allocations: 1.735 MB / 477.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001984/0.2896, allocations: 270.9 kB / 477.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004442/0.2901, allocations: 0.6284 MB / 478.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004281/0.2944, allocations: 3.107 MB / 481.5 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.2944, allocations: 0 / 481.5 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2944, allocations: 0 / 481.5 MB, free: 12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.267e-05/0.2944, allocations: 0 / 481.5 MB, free: 12 MB / 350.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.002271/0.2967, allocations: 1.523 MB / 483 MB, free: 10.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.2967, allocations: 12.03 kB / 483 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001667/0.2969, allocations: 159.3 kB / 483.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009907/0.2979, allocations: 276.7 kB / 483.5 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007416/0.2986, allocations: 0.6301 MB / 484.1 MB, free: 9.613 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.044e-05/0.2987, allocations: 117.3 kB / 484.2 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001702/0.2989, allocations: 113.5 kB / 484.3 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001822/0.3007, allocations: 1.334 MB / 485.6 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.193e-05/0.3008, allocations: 0 / 485.6 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001023/0.3009, allocations: 44 kB / 485.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.3009, allocations: 32 kB / 485.7 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002108/0.303, allocations: 1.696 MB / 487.4 MB, free: 6.73 MB / 350.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.005323/0.3083, allocations: 4.255 MB / 491.7 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002788/0.3111, allocations: 2.27 MB / 493.9 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006767/0.3118, allocations: 0.5898 MB / 494.5 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006064/0.3179, allocations: 5.289 MB / 499.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.721e-05/0.318, allocations: 43.97 kB / 499.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=78): time 2.094e-06/0.318, allocations: 0 / 499.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=95): time 0.01557/0.3335, allocations: 3.606 MB / 0.4917 GB, free: 7.668 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/0.3336, allocations: 64.41 kB / 0.4917 GB, free: 7.594 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006612/0.3343, allocations: 0.585 MB / 0.4923 GB, free: 7.086 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.943e-05/0.3343, allocations: 42.5 kB / 0.4923 GB, free: 7.039 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003269/0.3347, allocations: 0.5296 MB / 0.4929 GB, free: 6.551 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002409/0.3349, allocations: 333.7 kB / 0.4932 GB, free: 6.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001351/0.3351, allocations: 105.6 kB / 0.4933 GB, free: 6.156 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.3352, allocations: 401.8 kB / 0.4937 GB, free: 5.781 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006024/0.3358, allocations: 363.2 kB / 0.494 GB, free: 5.473 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008184/0.3367, allocations: 0.745 MB / 0.4947 GB, free: 4.602 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001508/0.3382, allocations: 1.202 MB / 0.4959 GB, free: 3.262 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-06/0.3382, allocations: 7.938 kB / 0.4959 GB, free: 3.254 MB / 366.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.004127/0.3423, allocations: 1.485 MB / 0.4974 GB, free: 1.883 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.3424, allocations: 12 kB / 0.4974 GB, free: 1.871 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/0.3424, allocations: 12 kB / 0.4974 GB, free: 1.859 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002212/0.3446, allocations: 261.6 kB / 0.4976 GB, free: 1.598 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00142/0.346, allocations: 327.5 kB / 0.4979 GB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005349/0.3514, allocations: 3.525 MB / 0.5014 GB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001006/0.3524, allocations: 79.88 kB / 0.5015 GB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001205/0.3526, allocations: 67.98 kB / 0.5015 GB, free: 13.34 MB / 382.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.0004686/0.353, allocations: 277.3 kB / 0.5018 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001493/0.3532, allocations: 82.97 kB / 0.5019 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004211/0.3574, allocations: 1.34 MB / 0.5032 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/0.3574, allocations: 12 kB / 0.5032 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3575, allocations: 0 / 0.5032 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.3575, allocations: 3.984 kB / 0.5032 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001369/0.3589, allocations: 1.081 MB / 0.5043 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.3589, allocations: 4 kB / 0.5043 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/0.3601, allocations: 211.8 kB / 0.5045 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00212/0.3622, allocations: 245.5 kB / 0.5047 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-05/0.3623, allocations: 31.98 kB / 0.5047 GB, free: 9.969 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004698/0.367, allocations: 3.413 MB / 0.5081 GB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.137e-06/0.367, allocations: 3.938 kB / 0.5081 GB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004497/0.3715, allocations: 1.756 MB / 0.5098 GB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002623/0.3718, allocations: 156 kB / 0.5099 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001358/0.3719, allocations: 16 kB / 0.5099 GB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000574/0.3725, allocations: 31.98 kB / 0.51 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002033/0.3727, allocations: 88.77 kB / 0.5101 GB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.103e-05/0.3728, allocations: 43.98 kB / 0.5101 GB, free: 4.137 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004628/0.3733, allocations: 387.1 kB / 0.5105 GB, free: 3.766 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3733, allocations: 0 / 0.5105 GB, free: 3.766 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001942/0.3752, allocations: 0.6675 MB / 0.5111 GB, free: 3.098 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.005995/0.3812, allocations: 2.997 MB / 0.514 GB, free: 60 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002124/0.3834, allocations: 1.251 MB / 0.5153 GB, free: 14.78 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.3834, allocations: 0 / 0.5153 GB, free: 14.78 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001026/0.3844, allocations: 0.741 MB / 0.516 GB, free: 14.02 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.3856, allocations: 200.2 kB / 0.5162 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01584/0.4014, allocations: 9.271 MB / 0.5252 GB, free: 3.984 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005953/0.4021, allocations: 1.038 MB / 0.5262 GB, free: 2.918 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001024/0.4031, allocations: 235.2 kB / 0.5265 GB, free: 2.684 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006696/0.4038, allocations: 476.1 kB / 0.5269 GB, free: 2.223 MB / 398.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4038, allocations: 7.938 kB / 0.5269 GB, free: 2.215 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8433/1.247, allocations: 30.78 MB / 0.557 GB, free: 3.625 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002941/1.247, allocations: 239.4 kB / 0.5572 GB, free: 3.371 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.8/4.048, allocations: 0 / 0.5572 GB, free: 3.371 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)