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: translateModel(Chemical.Examples.ClimateChange.ElectrolysisMethanation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation") translateModel(Chemical.Examples.ClimateChange.ElectrolysisMethanation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008605/0.0008649, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005293/0.005294, allocations: 169.6 kB / 16.27 MB, free: 6.66 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.382/1.382, 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.1872/0.1872, allocations: 15.27 MB / 306.7 MB, free: 15.72 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003235/0.0003236, allocations: 8 kB / 372.1 MB, free: 3.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3227, allocations: 54.63 MB / 426.7 MB, free: 40.06 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.ElectrolysisMethanation): time 0.03362/0.3564, allocations: 30.62 MB / 457.3 MB, free: 28.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03062/0.387, allocations: 28.54 MB / 485.9 MB, free: 6.742 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003402/0.3904, allocations: 47.62 kB / 485.9 MB, free: 6.695 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0027/0.3932, allocations: 0.6063 MB / 486.5 MB, free: 6.238 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008239/0.4014, allocations: 1.991 MB / 488.5 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0135/0.415, allocations: 3.427 MB / 492 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005329/0.4203, allocations: 2.99 MB / 494.9 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003319/0.4237, allocations: 1.617 MB / 496.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002819/0.4265, allocations: 1.312 MB / 497.9 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003433/0.43, allocations: 1.518 MB / 499.4 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001176/0.4312, allocations: 156 kB / 499.5 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01341/0.4446, allocations: 3.019 MB / 0.4908 GB, free: 8.477 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001734/0.4464, allocations: 0.5509 MB / 0.4913 GB, free: 8.047 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003922/0.4503, allocations: 1.298 MB / 0.4926 GB, free: 6.848 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02482/0.4752, allocations: 5.869 MB / 0.4983 GB, free: 2.309 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.4752, allocations: 0 / 0.4983 GB, free: 2.309 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.4753, allocations: 0.7031 kB / 0.4983 GB, free: 2.309 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000198/0.4755, allocations: 0 / 0.4983 GB, free: 2.309 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: 609 * Number of variables: 609 Notification: Performance of Generate backend data structure: time 0.009137/0.4846, allocations: 2.795 MB / 0.5011 GB, free: 15.53 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.4847, allocations: 12.03 kB / 0.5011 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003196/0.4879, allocations: 0.5605 MB / 0.5016 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00311/0.491, allocations: 1.341 MB / 0.5029 GB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003141/0.4913, allocations: 278.2 kB / 0.5032 GB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009825/0.4923, allocations: 239.9 kB / 0.5034 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007792/0.5001, allocations: 3.029 MB / 0.5064 GB, free: 9.906 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.492e-05/0.5002, allocations: 3.938 kB / 0.5064 GB, free: 9.902 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003105/0.5006, allocations: 96 kB / 0.5065 GB, free: 9.809 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.188e-05/0.5006, allocations: 60 kB / 0.5065 GB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00611/0.5067, allocations: 3.607 MB / 0.51 GB, free: 6.137 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.01712/0.5239, allocations: 10.4 MB / 0.5202 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003086/0.527, allocations: 2.253 MB / 0.5224 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001688/0.5287, allocations: 1.121 MB / 0.5235 GB, free: 7.867 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01307/0.5418, allocations: 8.595 MB / 0.5319 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.274e-05/0.5419, allocations: 43.88 kB / 0.5319 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001286/0.5432, allocations: 254.1 kB / 0.5322 GB, free: 14.12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 8.787e-06/0.5432, allocations: 4 kB / 0.5322 GB, free: 14.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=181): time 0.04014/0.5834, allocations: 9.767 MB / 0.5417 GB, free: 4.223 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.771e-05/0.5835, allocations: 124.8 kB / 0.5418 GB, free: 4.078 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002202/0.5857, allocations: 1.454 MB / 0.5433 GB, free: 2.613 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003573/0.5861, allocations: 57.7 kB / 0.5433 GB, free: 2.551 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009239/0.587, allocations: 1.155 MB / 0.5444 GB, free: 1.379 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008407/0.5878, allocations: 0.6278 MB / 0.5451 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004763/0.5883, allocations: 215.2 kB / 0.5453 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.5884, allocations: 305.1 kB / 0.5456 GB, free: 232 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001996/0.5904, allocations: 0.9462 MB / 0.5465 GB, free: 15.28 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002455/0.5929, allocations: 1.886 MB / 0.5483 GB, free: 12.95 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004605/0.5975, allocations: 3 MB / 0.5512 GB, free: 9.512 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.679e-05/0.5976, allocations: 12 kB / 0.5513 GB, free: 9.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01172/0.6093, allocations: 3.908 MB / 0.5551 GB, free: 5.566 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.698e-05/0.6094, allocations: 23.98 kB / 0.5551 GB, free: 5.543 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.106e-05/0.6094, allocations: 28 kB / 0.5551 GB, free: 5.516 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005749/0.6152, allocations: 1.198 MB / 0.5563 GB, free: 4.301 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002151/0.6174, allocations: 0.5811 MB / 0.5569 GB, free: 3.719 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009989/0.6274, allocations: 6.949 MB / 0.5636 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002205/0.6296, allocations: 143.7 kB / 0.5638 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004247/0.63, allocations: 159.9 kB / 0.5639 GB, free: 12.04 MB / 446.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.001195/0.6312, allocations: 484.9 kB / 0.5644 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004226/0.6317, allocations: 181.7 kB / 0.5646 GB, free: 11.38 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01014/0.6418, allocations: 3.265 MB / 0.5678 GB, free: 8.078 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.223e-05/0.6419, allocations: 20 kB / 0.5678 GB, free: 8.059 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.507e-05/0.6419, allocations: 4 kB / 0.5678 GB, free: 8.055 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.593e-05/0.6419, allocations: 7.969 kB / 0.5678 GB, free: 8.047 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01388/0.6558, allocations: 5.44 MB / 0.5731 GB, free: 2.508 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.97e-05/0.6559, allocations: 4 kB / 0.5731 GB, free: 2.504 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001393/0.6573, allocations: 307.5 kB / 0.5734 GB, free: 2.203 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005206/0.6625, allocations: 1.068 MB / 0.5744 GB, free: 1.121 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002979/0.6628, allocations: 67.94 kB / 0.5745 GB, free: 1.055 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008343/0.6712, allocations: 6.312 MB / 0.5807 GB, free: 10.31 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.6712, allocations: 0 / 0.5807 GB, free: 10.31 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01085/0.6821, allocations: 4.145 MB / 0.5847 GB, free: 6.102 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005339/0.6827, allocations: 246.8 kB / 0.585 GB, free: 5.84 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00041/0.6831, allocations: 40.08 kB / 0.585 GB, free: 5.801 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001355/0.6844, allocations: 75.81 kB / 0.5851 GB, free: 5.727 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004351/0.6849, allocations: 177.7 kB / 0.5852 GB, free: 5.551 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001924/0.6851, allocations: 87.94 kB / 0.5853 GB, free: 5.465 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001485/0.6866, allocations: 0.9546 MB / 0.5863 GB, free: 4.512 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6866, allocations: 0 / 0.5863 GB, free: 4.512 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00416/0.6908, allocations: 1.245 MB / 0.5875 GB, free: 3.266 MB / 462.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.002879/0.6937, allocations: 1.294 MB / 0.5887 GB, free: 1.961 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1897/0.8834, allocations: 3.041 MB / 0.5917 GB, free: 132.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.069e-05/0.8835, allocations: 3.062 kB / 0.5917 GB, free: 132.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003502/0.887, allocations: 1.624 MB / 0.5933 GB, free: 131.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003608/0.8906, allocations: 294.5 kB / 0.5936 GB, free: 131.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008175/0.8988, allocations: 5.188 MB / 0.5986 GB, free: 129.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/0.8999, allocations: 1.478 MB / 0.6001 GB, free: 128.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002017/0.9019, allocations: 468.6 kB / 0.6005 GB, free: 128.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005885/0.9025, allocations: 285 kB / 0.6008 GB, free: 128.7 MB / 462.1 MB Notification: Performance of SimCode: time 1.703e-06/0.9025, allocations: 0 / 0.6008 GB, free: 128.7 MB / 462.1 MB Notification: Performance of Templates: time 0.06863/0.9711, allocations: 44.44 MB / 0.6442 GB, free: 111.8 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.makefile (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 & ./Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1)