Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.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.ElectrolysisMethanation,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_ElectrolysisMethanation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ClimateChange.ElectrolysisMethanation,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_ElectrolysisMethanation",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.007149/0.007149, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001862/0.001862, allocations: 195.3 kB / 16.67 MB, free: 5.977 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1799/0.1799, allocations: 15.32 MB / 305.9 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 63.91 kB / 424.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2305/0.2324, allocations: 53.61 MB / 478.3 MB, free: 25.55 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.ElectrolysisMethanation): time 0.03283/0.2653, allocations: 31.2 MB / 0.4976 GB, free: 3.527 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03233/0.2977, allocations: 28.89 MB / 0.5258 GB, free: 6.523 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001788/0.2995, allocations: 27.88 kB / 0.5258 GB, free: 6.496 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001814/0.3013, allocations: 0.6862 MB / 0.5265 GB, free: 5.805 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006181/0.3075, allocations: 2.227 MB / 0.5287 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01033/0.3179, allocations: 3.922 MB / 0.5325 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004786/0.3227, allocations: 3.085 MB / 0.5355 GB, free: 12.52 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002502/0.3252, allocations: 1.971 MB / 0.5374 GB, free: 10.5 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001844/0.3271, allocations: 1.449 MB / 0.5389 GB, free: 9.051 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002571/0.3296, allocations: 1.647 MB / 0.5405 GB, free: 7.398 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005199/0.3302, allocations: 296 kB / 0.5407 GB, free: 7.109 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009122/0.3393, allocations: 3.148 MB / 0.5438 GB, free: 3.957 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009323/0.3403, allocations: 0.6855 MB / 0.5445 GB, free: 3.27 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001748/0.342, allocations: 1.439 MB / 0.5459 GB, free: 1.824 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01254/0.3546, allocations: 6.362 MB / 0.5521 GB, free: 11.44 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3546, allocations: 0 / 0.5521 GB, free: 11.44 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3546, allocations: 4 kB / 0.5521 GB, free: 11.43 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.208e-05/0.3547, allocations: 0 / 0.5521 GB, free: 11.43 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 609 * Number of variables: 609 Notification: Performance of Generate backend data structure: time 0.006531/0.3612, allocations: 3.417 MB / 0.5554 GB, free: 7.945 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.3613, allocations: 12.03 kB / 0.5555 GB, free: 7.934 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000395/0.3617, allocations: 333.6 kB / 0.5558 GB, free: 7.598 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002293/0.364, allocations: 0.5764 MB / 0.5563 GB, free: 7.02 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002328/0.3663, allocations: 1.416 MB / 0.5577 GB, free: 5.555 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000237/0.3666, allocations: 274 kB / 0.558 GB, free: 5.266 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003748/0.367, allocations: 244 kB / 0.5582 GB, free: 5.027 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004876/0.3718, allocations: 3.033 MB / 0.5612 GB, free: 1.887 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.422e-05/0.3719, allocations: 0 / 0.5612 GB, free: 1.887 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000252/0.3722, allocations: 96 kB / 0.5613 GB, free: 1.793 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.102e-05/0.3722, allocations: 60 kB / 0.5613 GB, free: 1.734 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005763/0.378, allocations: 3.603 MB / 0.5648 GB, free: 14.13 MB / 446.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.01656/0.3946, allocations: 10.43 MB / 0.575 GB, free: 3.316 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003252/0.3978, allocations: 2.265 MB / 0.5772 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001737/0.3996, allocations: 1.11 MB / 0.5783 GB, free: 15.8 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0126/0.4122, allocations: 8.759 MB / 0.5869 GB, free: 6.195 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.485e-05/0.4123, allocations: 51.88 kB / 0.5869 GB, free: 6.137 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001044/0.4133, allocations: 270.5 kB / 0.5872 GB, free: 5.871 MB / 462.1 MB Notification: Performance of pre-optimization done (n=134): time 3.176e-06/0.4133, allocations: 0 / 0.5872 GB, free: 5.871 MB / 462.1 MB Notification: Performance of matching and sorting (n=181): time 0.03514/0.4485, allocations: 9.784 MB / 0.5967 GB, free: 11.98 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.222e-05/0.4486, allocations: 124.8 kB / 0.5969 GB, free: 11.83 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001855/0.4505, allocations: 1.47 MB / 0.5983 GB, free: 10.35 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002228/0.4507, allocations: 53.7 kB / 0.5984 GB, free: 10.29 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008396/0.4516, allocations: 1.186 MB / 0.5995 GB, free: 9.09 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000631/0.4522, allocations: 0.6625 MB / 0.6002 GB, free: 8.422 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007875/0.453, allocations: 0.517 MB / 0.6007 GB, free: 7.898 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.4531, allocations: 305.1 kB / 0.601 GB, free: 7.598 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001671/0.4548, allocations: 0.9423 MB / 0.6019 GB, free: 6.652 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00245/0.4573, allocations: 1.898 MB / 0.6037 GB, free: 4.316 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004381/0.4616, allocations: 2.988 MB / 0.6066 GB, free: 0.8945 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.455e-05/0.4617, allocations: 8 kB / 0.6067 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.1948/0.6565, allocations: 3.9 MB / 0.6105 GB, free: 114.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.278e-05/0.6566, allocations: 22.5 kB / 0.6105 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.117e-05/0.6567, allocations: 31.95 kB / 0.6105 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005392/0.6621, allocations: 1.18 MB / 0.6117 GB, free: 114.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002167/0.6643, allocations: 0.5833 MB / 0.6122 GB, free: 114.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00866/0.6729, allocations: 7.513 MB / 0.6196 GB, free: 108.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001974/0.6749, allocations: 110.5 kB / 0.6197 GB, free: 108.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000265/0.6752, allocations: 160.2 kB / 0.6198 GB, free: 108.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * 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 (305): * Single equations (assignments): 300 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(3,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,18), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008267/0.676, allocations: 486.4 kB / 0.6203 GB, free: 107.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003644/0.6764, allocations: 185.4 kB / 0.6205 GB, free: 107.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008788/0.6852, allocations: 3.261 MB / 0.6237 GB, free: 106.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-05/0.6853, allocations: 18.97 kB / 0.6237 GB, free: 106.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.6853, allocations: 3.75 kB / 0.6237 GB, free: 106.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-05/0.6853, allocations: 11.17 kB / 0.6237 GB, free: 106.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0114/0.6967, allocations: 5.437 MB / 0.629 GB, free: 104.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/0.6968, allocations: 2.344 kB / 0.629 GB, free: 104.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001248/0.698, allocations: 301.7 kB / 0.6293 GB, free: 104.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004617/0.7026, allocations: 1.053 MB / 0.6303 GB, free: 104.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002407/0.7029, allocations: 73.66 kB / 0.6304 GB, free: 104.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006689/0.7096, allocations: 6.804 MB / 0.637 GB, free: 98.21 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.7096, allocations: 8.172 kB / 0.637 GB, free: 98.21 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009129/0.7188, allocations: 4.141 MB / 0.6411 GB, free: 95.81 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004061/0.7192, allocations: 247.2 kB / 0.6413 GB, free: 95.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000275/0.7195, allocations: 35.53 kB / 0.6413 GB, free: 95.58 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001069/0.7206, allocations: 47.67 kB / 0.6414 GB, free: 95.55 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003947/0.721, allocations: 180.4 kB / 0.6416 GB, free: 95.45 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001525/0.7211, allocations: 79.17 kB / 0.6416 GB, free: 95.43 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001069/0.7222, allocations: 0.9528 MB / 0.6426 GB, free: 94.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7222, allocations: 0 / 0.6426 GB, free: 94.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003325/0.7256, allocations: 1.266 MB / 0.6438 GB, free: 94.77 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,CH4.logn,CO2.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 (156): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(3,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,19), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01093/0.7365, allocations: 5.903 MB / 0.6496 GB, free: 91.64 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004992/0.7415, allocations: 3.063 MB / 0.6526 GB, free: 89.94 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/0.7416, allocations: 3.688 kB / 0.6526 GB, free: 89.94 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002463/0.744, allocations: 1.624 MB / 0.6542 GB, free: 88.89 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001621/0.7457, allocations: 321.5 kB / 0.6545 GB, free: 88.73 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02934/0.775, allocations: 19.15 MB / 0.6732 GB, free: 69.39 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000731/0.7758, allocations: 1.483 MB / 0.6746 GB, free: 67.89 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001412/0.7772, allocations: 457.2 kB / 0.675 GB, free: 67.59 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001005/0.7782, allocations: 1.01 MB / 0.676 GB, free: 66.58 MB / 478.1 MB Notification: Performance of SimCode: time 4.81e-07/0.7782, allocations: 0 / 0.676 GB, free: 66.58 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1126/0.8909, allocations: 63.83 MB / 0.7384 GB, free: 3.484 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 31.07/31.96, allocations: 8 kB / 0.7384 GB, free: 3.477 MB / 478.1 MB (rm -f Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_ClimateChange_ElectrolysisMethanation_fmu --startTime=0 --stopTime=0.0001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_ClimateChange_ElectrolysisMethanation.fmu > Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1)