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.001349/0.001349, allocations: 100.1 kB / 15.88 MB, free: 8 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.001813/0.001813, allocations: 197.2 kB / 16.79 MB, free: 6.828 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.422/1.422, allocations: 222.9 MB / 240.5 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2249/0.2249, allocations: 15.32 MB / 305.9 MB, free: 15.36 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 55.91 kB / 370.3 MB, free: 4.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1047, allocations: 53.62 MB / 423.9 MB, free: 14.74 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.2149/0.3196, allocations: 31.8 MB / 455.7 MB, free: 38.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02453/0.3441, allocations: 28.86 MB / 484.6 MB, free: 24.04 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002187/0.3464, allocations: 53.78 kB / 484.6 MB, free: 24.02 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001742/0.3481, allocations: 0.6157 MB / 485.2 MB, free: 23.69 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005709/0.3539, allocations: 1.977 MB / 487.2 MB, free: 22.51 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009792/0.3637, allocations: 3.439 MB / 490.7 MB, free: 20.48 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003598/0.3673, allocations: 2.988 MB / 493.7 MB, free: 19.06 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001932/0.3692, allocations: 1.706 MB / 495.4 MB, free: 18.31 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001648/0.3709, allocations: 1.395 MB / 496.8 MB, free: 17.83 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001705/0.3726, allocations: 1.614 MB / 498.4 MB, free: 17.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003745/0.373, allocations: 197 kB / 498.6 MB, free: 17.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01016/0.3832, allocations: 3.066 MB / 0.4899 GB, free: 15.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001253/0.3845, allocations: 0.6037 MB / 0.4905 GB, free: 15.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002058/0.3865, allocations: 1.347 MB / 0.4918 GB, free: 13.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006601/0.3932, allocations: 4.695 MB / 0.4964 GB, free: 10.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.3932, allocations: 4.656 kB / 0.4964 GB, free: 10.17 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3932, allocations: 0 / 0.4964 GB, free: 10.17 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.452e-05/0.3933, allocations: 0 / 0.4964 GB, free: 10.17 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.006851/0.4001, allocations: 3.334 MB / 0.4996 GB, free: 7.133 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.4002, allocations: 8.828 kB / 0.4996 GB, free: 7.125 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002415/0.4026, allocations: 0.5562 MB / 0.5002 GB, free: 6.652 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002334/0.4049, allocations: 1.372 MB / 0.5015 GB, free: 5.484 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001585/0.4051, allocations: 267.6 kB / 0.5018 GB, free: 5.203 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003875/0.4055, allocations: 245.4 kB / 0.502 GB, free: 4.965 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007516/0.413, allocations: 3.038 MB / 0.505 GB, free: 2.414 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.48e-05/0.4132, allocations: 7.938 kB / 0.505 GB, free: 2.406 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003608/0.4135, allocations: 96 kB / 0.5051 GB, free: 2.312 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.005e-05/0.4136, allocations: 60 kB / 0.5051 GB, free: 2.254 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008678/0.4223, allocations: 3.618 MB / 0.5087 GB, free: 15.13 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.02659/0.4489, allocations: 10.45 MB / 0.5189 GB, free: 4.309 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004889/0.4538, allocations: 2.261 MB / 0.5211 GB, free: 1.941 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002728/0.4566, allocations: 1.12 MB / 0.5222 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02002/0.4767, allocations: 8.759 MB / 0.5307 GB, free: 7.199 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.637e-05/0.4768, allocations: 51.88 kB / 0.5308 GB, free: 7.141 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001992/0.4788, allocations: 250.1 kB / 0.531 GB, free: 6.895 MB / 398.1 MB Notification: Performance of pre-optimization done (n=134): time 9.228e-06/0.4788, allocations: 0 / 0.531 GB, free: 6.895 MB / 398.1 MB Notification: Performance of matching and sorting (n=181): time 0.04146/0.5203, allocations: 9.712 MB / 0.5405 GB, free: 13.06 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.27e-05/0.5204, allocations: 120.8 kB / 0.5406 GB, free: 12.92 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001997/0.5224, allocations: 1.454 MB / 0.542 GB, free: 11.45 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003806/0.5228, allocations: 57.7 kB / 0.5421 GB, free: 11.39 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007446/0.5235, allocations: 1.155 MB / 0.5432 GB, free: 10.22 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006232/0.5242, allocations: 0.6317 MB / 0.5438 GB, free: 9.578 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000765/0.5249, allocations: 0.5129 MB / 0.5443 GB, free: 9.059 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.572e-05/0.525, allocations: 305.1 kB / 0.5446 GB, free: 8.758 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001675/0.5267, allocations: 0.9423 MB / 0.5455 GB, free: 7.812 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002286/0.529, allocations: 1.89 MB / 0.5474 GB, free: 5.48 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004116/0.5331, allocations: 3 MB / 0.5503 GB, free: 2.043 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-05/0.5332, allocations: 8 kB / 0.5503 GB, free: 2.035 MB / 414.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01091/0.5441, allocations: 3.904 MB / 0.5541 GB, free: 14.11 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.468e-05/0.5442, allocations: 16 kB / 0.5541 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.712e-05/0.5442, allocations: 32 kB / 0.5542 GB, free: 14.06 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005946/0.5502, allocations: 1.164 MB / 0.5553 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002432/0.5527, allocations: 0.5889 MB / 0.5559 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009959/0.5627, allocations: 6.918 MB / 0.5626 GB, free: 4.938 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002271/0.565, allocations: 139.7 kB / 0.5628 GB, free: 4.801 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003344/0.5653, allocations: 163.9 kB / 0.5629 GB, free: 4.641 MB / 430.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.0009858/0.5663, allocations: 487.2 kB / 0.5634 GB, free: 4.156 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004356/0.5668, allocations: 181.7 kB / 0.5636 GB, free: 3.977 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009966/0.5767, allocations: 3.254 MB / 0.5667 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-05/0.5768, allocations: 20 kB / 0.5668 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.5768, allocations: 4 kB / 0.5668 GB, free: 0.668 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-05/0.5769, allocations: 15.95 kB / 0.5668 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01331/0.5902, allocations: 5.46 MB / 0.5721 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-05/0.5902, allocations: 8.062 kB / 0.5721 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001325/0.5916, allocations: 303.6 kB / 0.5724 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00516/0.5967, allocations: 1.045 MB / 0.5734 GB, free: 9.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002374/0.597, allocations: 75.95 kB / 0.5735 GB, free: 9.656 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007896/0.6049, allocations: 6.281 MB / 0.5796 GB, free: 2.945 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.698e-06/0.6049, allocations: 4 kB / 0.5796 GB, free: 2.941 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01032/0.6152, allocations: 4.125 MB / 0.5837 GB, free: 14.75 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005502/0.6158, allocations: 238.9 kB / 0.5839 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003176/0.6162, allocations: 36 kB / 0.5839 GB, free: 14.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001294/0.6175, allocations: 71.91 kB / 0.584 GB, free: 14.39 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004517/0.6179, allocations: 177.7 kB / 0.5842 GB, free: 14.22 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001866/0.6181, allocations: 83.95 kB / 0.5843 GB, free: 14.14 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001257/0.6194, allocations: 0.9624 MB / 0.5852 GB, free: 13.18 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6194, allocations: 4 kB / 0.5852 GB, free: 13.17 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003962/0.6234, allocations: 1.238 MB / 0.5864 GB, free: 11.93 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.002501/0.6259, allocations: 1.285 MB / 0.5877 GB, free: 10.64 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005713/0.6316, allocations: 3.054 MB / 0.5906 GB, free: 7.527 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.6316, allocations: 7.875 kB / 0.5907 GB, free: 7.52 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002942/0.6346, allocations: 1.626 MB / 0.5922 GB, free: 5.836 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001854/0.6365, allocations: 295.2 kB / 0.5925 GB, free: 5.551 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007748/0.6442, allocations: 5.117 MB / 0.5975 GB, free: 372 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1692/0.8135, allocations: 1.477 MB / 0.599 GB, free: 129.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001082/0.8146, allocations: 360.2 kB / 0.5993 GB, free: 129.1 MB / 462.1 MB Notification: Performance of SimCode: time 8.62e-07/0.8146, allocations: 0 / 0.5993 GB, free: 129.1 MB / 462.1 MB Notification: Performance of Templates: time 0.07794/0.8926, allocations: 80.49 MB / 0.6779 GB, free: 83.63 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)