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.0008556/0.0008556, allocations: 98.64 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 182.8 kB / 16.92 MB, free: 6.918 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.373/1.373, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1895/0.1895, allocations: 15.28 MB / 307.4 MB, free: 15.77 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000309/0.0003091, allocations: 12 kB / 372.8 MB, free: 3.594 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.2707, allocations: 54.62 MB / 427.4 MB, free: 40.86 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.03047/0.3012, allocations: 31.26 MB / 458.6 MB, free: 28.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02854/0.3297, allocations: 28.53 MB / 487.2 MB, free: 6.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002002/0.3318, allocations: 51.62 kB / 487.2 MB, free: 6.336 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001593/0.3334, allocations: 0.6041 MB / 487.8 MB, free: 5.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005955/0.3393, allocations: 1.993 MB / 489.8 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009247/0.3486, allocations: 3.43 MB / 493.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004323/0.3529, allocations: 2.991 MB / 496.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002269/0.3552, allocations: 1.613 MB / 497.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001894/0.3571, allocations: 1.316 MB / 499.2 MB, free: 12.19 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002185/0.3593, allocations: 1.506 MB / 0.4889 GB, free: 10.99 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003359/0.3597, allocations: 159.9 kB / 0.4891 GB, free: 10.83 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01007/0.3698, allocations: 3.023 MB / 0.492 GB, free: 8.117 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009875/0.3708, allocations: 0.5472 MB / 0.4926 GB, free: 7.691 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001753/0.3725, allocations: 1.298 MB / 0.4939 GB, free: 6.492 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008097/0.3806, allocations: 4.637 MB / 0.4984 GB, free: 3.059 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.3807, allocations: 0 / 0.4984 GB, free: 3.059 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.767e-06/0.3807, allocations: 4.781 kB / 0.4984 GB, free: 3.055 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.132e-05/0.3808, allocations: 0 / 0.4984 GB, free: 3.055 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.006571/0.3874, allocations: 2.778 MB / 0.5011 GB, free: 308 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.3874, allocations: 12.03 kB / 0.5011 GB, free: 296 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002545/0.39, allocations: 0.5643 MB / 0.5017 GB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002413/0.3924, allocations: 1.349 MB / 0.503 GB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000228/0.3927, allocations: 266.2 kB / 0.5032 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004637/0.3931, allocations: 239.9 kB / 0.5035 GB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005277/0.3984, allocations: 3.045 MB / 0.5064 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.891e-05/0.3985, allocations: 3.938 kB / 0.5064 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002597/0.3988, allocations: 96 kB / 0.5065 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.725e-05/0.3988, allocations: 60 kB / 0.5066 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006155/0.405, allocations: 3.603 MB / 0.5101 GB, free: 6.898 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.01678/0.4218, allocations: 10.4 MB / 0.5203 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003077/0.4249, allocations: 2.257 MB / 0.5225 GB, free: 9.746 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001658/0.4266, allocations: 1.117 MB / 0.5236 GB, free: 8.621 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01172/0.4383, allocations: 8.595 MB / 0.532 GB, free: 15.17 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.944e-05/0.4384, allocations: 55.81 kB / 0.532 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001122/0.4395, allocations: 258 kB / 0.5323 GB, free: 14.86 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.447e-06/0.4395, allocations: 0 / 0.5323 GB, free: 14.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=181): time 0.03808/0.4776, allocations: 9.763 MB / 0.5418 GB, free: 4.969 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.703e-05/0.4777, allocations: 128.8 kB / 0.5419 GB, free: 4.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001894/0.4796, allocations: 1.458 MB / 0.5433 GB, free: 3.352 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003123/0.4799, allocations: 53.7 kB / 0.5434 GB, free: 3.293 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000763/0.4807, allocations: 1.151 MB / 0.5445 GB, free: 2.125 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006581/0.4814, allocations: 0.6278 MB / 0.5451 GB, free: 1.488 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000301/0.4817, allocations: 211.2 kB / 0.5453 GB, free: 1.277 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.114e-05/0.4818, allocations: 305.1 kB / 0.5456 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00168/0.4835, allocations: 0.9423 MB / 0.5465 GB, free: 32 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002262/0.4857, allocations: 1.898 MB / 0.5484 GB, free: 13.69 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004133/0.4899, allocations: 2.988 MB / 0.5513 GB, free: 10.26 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.7e-05/0.4899, allocations: 12 kB / 0.5513 GB, free: 10.25 MB / 430.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01104/0.501, allocations: 3.908 MB / 0.5551 GB, free: 6.32 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.687e-05/0.501, allocations: 20 kB / 0.5552 GB, free: 6.301 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.644e-05/0.5011, allocations: 32.56 kB / 0.5552 GB, free: 6.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006038/0.5072, allocations: 1.2 MB / 0.5564 GB, free: 5.055 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002397/0.5096, allocations: 0.5772 MB / 0.5569 GB, free: 4.477 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01034/0.5199, allocations: 6.955 MB / 0.5637 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002351/0.5223, allocations: 147.7 kB / 0.5639 GB, free: 12.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005107/0.5229, allocations: 159.9 kB / 0.564 GB, free: 12.79 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.001403/0.5243, allocations: 484.8 kB / 0.5645 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005027/0.5248, allocations: 181.7 kB / 0.5646 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01106/0.5358, allocations: 3.265 MB / 0.5678 GB, free: 8.824 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-05/0.5359, allocations: 16 kB / 0.5678 GB, free: 8.809 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.519e-05/0.5359, allocations: 4 kB / 0.5678 GB, free: 8.805 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.42e-05/0.536, allocations: 7.969 kB / 0.5679 GB, free: 8.797 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0153/0.5513, allocations: 5.448 MB / 0.5732 GB, free: 3.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.905e-05/0.5513, allocations: 4 kB / 0.5732 GB, free: 3.246 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001497/0.5529, allocations: 303.9 kB / 0.5735 GB, free: 2.949 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005602/0.5585, allocations: 1.071 MB / 0.5745 GB, free: 1.863 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003417/0.5588, allocations: 71.95 kB / 0.5746 GB, free: 1.793 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008496/0.5674, allocations: 6.309 MB / 0.5807 GB, free: 11.05 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.5674, allocations: 3.938 kB / 0.5807 GB, free: 11.05 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01151/0.5789, allocations: 4.137 MB / 0.5848 GB, free: 6.848 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005468/0.5795, allocations: 250.8 kB / 0.585 GB, free: 6.582 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004859/0.58, allocations: 32 kB / 0.5851 GB, free: 6.551 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001508/0.5815, allocations: 83.73 kB / 0.5851 GB, free: 6.469 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000489/0.582, allocations: 177.7 kB / 0.5853 GB, free: 6.293 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002366/0.5823, allocations: 79.95 kB / 0.5854 GB, free: 6.215 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001479/0.5838, allocations: 0.9624 MB / 0.5863 GB, free: 5.254 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5838, allocations: 3.938 kB / 0.5863 GB, free: 5.25 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004515/0.5883, allocations: 1.238 MB / 0.5875 GB, free: 4.012 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.003112/0.5914, allocations: 1.29 MB / 0.5888 GB, free: 2.711 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1807/0.7722, allocations: 3.037 MB / 0.5918 GB, free: 133 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/0.7722, allocations: 3.938 kB / 0.5918 GB, free: 133 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00307/0.7753, allocations: 1.621 MB / 0.5933 GB, free: 132.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002283/0.7776, allocations: 295.8 kB / 0.5936 GB, free: 132.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006837/0.7844, allocations: 5.247 MB / 0.5988 GB, free: 130 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008578/0.7853, allocations: 1.475 MB / 0.6002 GB, free: 129.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009791/0.7863, allocations: 357.3 kB / 0.6005 GB, free: 129.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.7863, allocations: 1.094 kB / 0.6005 GB, free: 129.3 MB / 462.1 MB Notification: Performance of Templates: time 0.07503/0.8614, allocations: 80.2 MB / 0.6789 GB, free: 77.67 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)