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.001625/0.001625, allocations: 104 kB / 16.35 MB, free: 5.824 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.001783/0.001783, allocations: 191.2 kB / 17.29 MB, free: 5.48 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.43/1.43, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09357/0.09357, allocations: 15.3 MB / 306.4 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 62.14 kB / 371.7 MB, free: 50.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1402, allocations: 53.61 MB / 425.3 MB, free: 13.27 MB / 302.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.04176/0.182, allocations: 30.4 MB / 455.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03716/0.2192, allocations: 28.89 MB / 484.6 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002869/0.2222, allocations: 31.81 kB / 484.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002471/0.2247, allocations: 0.6785 MB / 485.3 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007887/0.2326, allocations: 2.235 MB / 487.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01224/0.2449, allocations: 3.926 MB / 491.5 MB, free: 11.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005971/0.2508, allocations: 3.089 MB / 494.6 MB, free: 7.953 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002785/0.2537, allocations: 1.963 MB / 496.6 MB, free: 5.941 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002249/0.2559, allocations: 1.445 MB / 498 MB, free: 4.492 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002764/0.2587, allocations: 1.65 MB / 499.7 MB, free: 2.836 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000656/0.2594, allocations: 296 kB / 499.9 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01178/0.2712, allocations: 3.14 MB / 0.4913 GB, free: 15.4 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001092/0.2723, allocations: 0.6933 MB / 0.492 GB, free: 14.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001864/0.2742, allocations: 1.431 MB / 0.4934 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01942/0.2936, allocations: 6.33 MB / 0.4996 GB, free: 6.918 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.247e-06/0.2937, allocations: 0 / 0.4996 GB, free: 6.918 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.955e-06/0.2937, allocations: 0 / 0.4996 GB, free: 6.918 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.366e-05/0.2938, allocations: 0 / 0.4996 GB, free: 6.918 MB / 382.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.009711/0.3035, allocations: 3.335 MB / 0.5028 GB, free: 3.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.21e-05/0.3036, allocations: 8.031 kB / 0.5028 GB, free: 3.512 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002592/0.3062, allocations: 0.5635 MB / 0.5034 GB, free: 2.945 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002858/0.3091, allocations: 1.412 MB / 0.5047 GB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002444/0.3093, allocations: 270.2 kB / 0.505 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004041/0.3097, allocations: 239.9 kB / 0.5052 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2867/0.5965, allocations: 3.025 MB / 0.5082 GB, free: 75.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.161e-05/0.5966, allocations: 5.719 kB / 0.5082 GB, free: 75.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002807/0.5969, allocations: 95.94 kB / 0.5083 GB, free: 75.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.904e-05/0.597, allocations: 60.05 kB / 0.5083 GB, free: 75.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006578/0.6035, allocations: 3.607 MB / 0.5119 GB, free: 74.71 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.01792/0.6215, allocations: 10.41 MB / 0.522 GB, free: 68.53 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003318/0.6249, allocations: 2.266 MB / 0.5242 GB, free: 67.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001637/0.6265, allocations: 1.114 MB / 0.5253 GB, free: 66.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01175/0.6383, allocations: 8.743 MB / 0.5339 GB, free: 58.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.69e-05/0.6384, allocations: 52.25 kB / 0.5339 GB, free: 58.9 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001201/0.6396, allocations: 254.9 kB / 0.5342 GB, free: 58.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 5.179e-06/0.6396, allocations: 0 / 0.5342 GB, free: 58.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.03415/0.6738, allocations: 9.698 MB / 0.5436 GB, free: 51.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.102e-05/0.6739, allocations: 128.8 kB / 0.5438 GB, free: 51.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00167/0.6756, allocations: 1.465 MB / 0.5452 GB, free: 49.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004044/0.676, allocations: 53.7 kB / 0.5452 GB, free: 49.71 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005118/0.6765, allocations: 1.142 MB / 0.5464 GB, free: 48.56 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005698/0.6771, allocations: 0.6369 MB / 0.547 GB, free: 47.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006823/0.6778, allocations: 0.5129 MB / 0.5475 GB, free: 47.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.699e-05/0.6778, allocations: 315.7 kB / 0.5478 GB, free: 47.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001322/0.6792, allocations: 0.9384 MB / 0.5487 GB, free: 46.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001669/0.6808, allocations: 1.899 MB / 0.5505 GB, free: 43.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003159/0.684, allocations: 2.995 MB / 0.5535 GB, free: 40.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.755e-05/0.684, allocations: 14.59 kB / 0.5535 GB, free: 40.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.009414/0.6935, allocations: 3.889 MB / 0.5573 GB, free: 36.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.896e-05/0.6936, allocations: 23.98 kB / 0.5573 GB, free: 36.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-05/0.6936, allocations: 28 kB / 0.5573 GB, free: 36.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005171/0.6988, allocations: 1.18 MB / 0.5585 GB, free: 35.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002277/0.7011, allocations: 0.5876 MB / 0.5591 GB, free: 34.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008446/0.7096, allocations: 7.503 MB / 0.5664 GB, free: 26.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002834/0.7125, allocations: 114.3 kB / 0.5665 GB, free: 26.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005438/0.7131, allocations: 165.1 kB / 0.5667 GB, free: 26.64 MB / 382.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.001087/0.7142, allocations: 484.8 kB / 0.5671 GB, free: 26.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005299/0.7147, allocations: 176.5 kB / 0.5673 GB, free: 25.99 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008709/0.7234, allocations: 3.256 MB / 0.5705 GB, free: 22.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.319e-05/0.7235, allocations: 20 kB / 0.5705 GB, free: 22.78 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.7235, allocations: 4 kB / 0.5705 GB, free: 22.78 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-05/0.7236, allocations: 8.078 kB / 0.5705 GB, free: 22.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01271/0.7363, allocations: 5.43 MB / 0.5758 GB, free: 17.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.156e-05/0.7363, allocations: 4 kB / 0.5758 GB, free: 17.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/0.7375, allocations: 310.2 kB / 0.5761 GB, free: 17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004481/0.742, allocations: 1.046 MB / 0.5771 GB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002309/0.7422, allocations: 82.56 kB / 0.5772 GB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006582/0.7488, allocations: 6.801 MB / 0.5838 GB, free: 8.691 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.7489, allocations: 4.031 kB / 0.5838 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009187/0.7581, allocations: 4.135 MB / 0.5879 GB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000592/0.7587, allocations: 230.8 kB / 0.5881 GB, free: 4.266 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002833/0.759, allocations: 42.42 kB / 0.5881 GB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.7601, allocations: 50.64 kB / 0.5882 GB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004009/0.7605, allocations: 173.7 kB / 0.5884 GB, free: 4.008 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001553/0.7607, allocations: 79.95 kB / 0.5884 GB, free: 3.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001003/0.7617, allocations: 0.9572 MB / 0.5894 GB, free: 2.977 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7617, allocations: 0 / 0.5894 GB, free: 2.977 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003828/0.7655, allocations: 1.251 MB / 0.5906 GB, free: 1.855 MB / 382.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.002588/0.7681, allocations: 1.292 MB / 0.5918 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00598/0.7741, allocations: 3.066 MB / 0.5948 GB, free: 13.8 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/0.7742, allocations: 0 / 0.5948 GB, free: 13.8 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003075/0.7772, allocations: 1.629 MB / 0.5964 GB, free: 12.11 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002114/0.7794, allocations: 313.1 kB / 0.5967 GB, free: 11.84 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007871/0.7873, allocations: 4.033 MB / 0.6007 GB, free: 7.871 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00118/0.7885, allocations: 1.483 MB / 0.6021 GB, free: 6.383 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001678/0.7902, allocations: 457 kB / 0.6026 GB, free: 6.07 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006363/0.7908, allocations: 281.7 kB / 0.6028 GB, free: 5.805 MB / 398.1 MB Notification: Performance of SimCode: time 8.21e-07/0.7908, allocations: 0 / 0.6028 GB, free: 5.805 MB / 398.1 MB Notification: Performance of Templates: time 0.07498/0.8658, allocations: 46.35 MB / 0.6481 GB, free: 7.918 MB / 446.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 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1)