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.001201/0.001201, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001295/0.001295, allocations: 193.5 kB / 16.26 MB, free: 6.145 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.275/1.275, allocations: 222.9 MB / 239.9 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1945/0.1945, allocations: 15.32 MB / 305.4 MB, free: 15.37 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 55.91 kB / 370 MB, free: 4.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09604/0.09719, allocations: 53.6 MB / 423.6 MB, free: 14.53 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.188/0.2853, allocations: 31.82 MB / 455.4 MB, free: 38.44 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02477/0.31, allocations: 28.57 MB / 483.9 MB, free: 24.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002497/0.3126, allocations: 55.06 kB / 484 MB, free: 24.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001928/0.3145, allocations: 0.6103 MB / 484.6 MB, free: 24 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007096/0.3216, allocations: 2.028 MB / 486.6 MB, free: 22.81 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01111/0.3328, allocations: 3.513 MB / 490.1 MB, free: 20.78 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00409/0.3369, allocations: 3.079 MB / 493.2 MB, free: 19.26 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002321/0.3392, allocations: 1.949 MB / 495.2 MB, free: 18.38 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001903/0.3412, allocations: 1.517 MB / 496.7 MB, free: 17.79 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001909/0.3431, allocations: 1.679 MB / 498.4 MB, free: 17.07 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003652/0.3435, allocations: 296.6 kB / 498.7 MB, free: 17.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01071/0.3542, allocations: 3.218 MB / 0.4901 GB, free: 14.96 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008835/0.3551, allocations: 0.7013 MB / 0.4908 GB, free: 14.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0018/0.3569, allocations: 1.441 MB / 0.4922 GB, free: 13.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01375/0.3706, allocations: 6.076 MB / 0.4981 GB, free: 8.109 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.3707, allocations: 0 / 0.4981 GB, free: 8.109 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3707, allocations: 0 / 0.4981 GB, free: 8.109 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.632e-05/0.3707, allocations: 0 / 0.4981 GB, free: 8.109 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.005944/0.3767, allocations: 3.342 MB / 0.5014 GB, free: 5.062 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.3768, allocations: 8.031 kB / 0.5014 GB, free: 5.055 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003626/0.3771, allocations: 331.5 kB / 0.5017 GB, free: 4.777 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002217/0.3793, allocations: 0.5606 MB / 0.5023 GB, free: 4.301 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001933/0.3813, allocations: 1.375 MB / 0.5036 GB, free: 3.129 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001524/0.3815, allocations: 275.8 kB / 0.5039 GB, free: 2.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003212/0.3818, allocations: 240.8 kB / 0.5041 GB, free: 2.605 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00415/0.3859, allocations: 3.033 MB / 0.5071 GB, free: 60 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.466e-05/0.386, allocations: 4 kB / 0.5071 GB, free: 56 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002565/0.3863, allocations: 99.08 kB / 0.5072 GB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-05/0.3863, allocations: 60 kB / 0.5072 GB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005463/0.3918, allocations: 3.603 MB / 0.5107 GB, free: 12.41 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.01497/0.4068, allocations: 10.46 MB / 0.521 GB, free: 1.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002869/0.4097, allocations: 2.245 MB / 0.5232 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001511/0.4112, allocations: 1.117 MB / 0.5242 GB, free: 14.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01149/0.4227, allocations: 8.755 MB / 0.5328 GB, free: 4.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.447e-05/0.4228, allocations: 51.88 kB / 0.5328 GB, free: 4.422 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001152/0.4239, allocations: 254.1 kB / 0.5331 GB, free: 4.172 MB / 398.1 MB Notification: Performance of pre-optimization done (n=134): time 3.917e-06/0.4239, allocations: 0 / 0.5331 GB, free: 4.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=181): time 0.03615/0.4601, allocations: 9.708 MB / 0.5426 GB, free: 10.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/0.4602, allocations: 124.8 kB / 0.5427 GB, free: 10.2 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001733/0.4619, allocations: 1.462 MB / 0.5441 GB, free: 8.723 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002468/0.4622, allocations: 57.7 kB / 0.5442 GB, free: 8.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006633/0.4629, allocations: 1.151 MB / 0.5453 GB, free: 7.492 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005697/0.4634, allocations: 0.6317 MB / 0.5459 GB, free: 6.852 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007373/0.4642, allocations: 0.5129 MB / 0.5464 GB, free: 6.332 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.195e-05/0.4643, allocations: 309.1 kB / 0.5467 GB, free: 6.027 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001506/0.4658, allocations: 0.9423 MB / 0.5476 GB, free: 5.082 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002081/0.4679, allocations: 1.898 MB / 0.5495 GB, free: 2.742 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003766/0.4717, allocations: 2.992 MB / 0.5524 GB, free: 15.32 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.562e-05/0.4717, allocations: 12 kB / 0.5524 GB, free: 15.3 MB / 430.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01031/0.482, allocations: 3.893 MB / 0.5562 GB, free: 11.39 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.24e-05/0.4821, allocations: 26.12 kB / 0.5562 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.504e-05/0.4821, allocations: 35.98 kB / 0.5563 GB, free: 11.33 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005507/0.4876, allocations: 1.178 MB / 0.5574 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002108/0.4898, allocations: 0.585 MB / 0.558 GB, free: 9.551 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00951/0.4993, allocations: 7.514 MB / 0.5653 GB, free: 1.59 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002252/0.5016, allocations: 147.7 kB / 0.5655 GB, free: 1.445 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003325/0.5019, allocations: 159.9 kB / 0.5656 GB, free: 1.289 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.0009468/0.5029, allocations: 480.9 kB / 0.5661 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004292/0.5033, allocations: 181.8 kB / 0.5663 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009635/0.513, allocations: 3.253 MB / 0.5694 GB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.985e-05/0.513, allocations: 20 kB / 0.5695 GB, free: 13.32 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.513, allocations: 4 kB / 0.5695 GB, free: 13.32 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.884e-05/0.5131, allocations: 7.969 kB / 0.5695 GB, free: 13.31 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01294/0.526, allocations: 5.448 MB / 0.5748 GB, free: 7.766 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.41e-05/0.5261, allocations: 4 kB / 0.5748 GB, free: 7.762 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001361/0.5274, allocations: 311.9 kB / 0.5751 GB, free: 7.457 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005025/0.5325, allocations: 1.042 MB / 0.5761 GB, free: 6.398 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002464/0.5327, allocations: 79.88 kB / 0.5762 GB, free: 6.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008009/0.5408, allocations: 6.804 MB / 0.5828 GB, free: 15.07 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.5408, allocations: 4 kB / 0.5828 GB, free: 15.07 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01011/0.5509, allocations: 4.129 MB / 0.5869 GB, free: 10.88 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004813/0.5514, allocations: 230.8 kB / 0.5871 GB, free: 10.63 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002813/0.5517, allocations: 39.98 kB / 0.5871 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/0.5529, allocations: 75.75 kB / 0.5872 GB, free: 10.52 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004253/0.5534, allocations: 185.6 kB / 0.5874 GB, free: 10.33 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001638/0.5535, allocations: 83.94 kB / 0.5875 GB, free: 10.25 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001128/0.5547, allocations: 0.9507 MB / 0.5884 GB, free: 9.301 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5547, allocations: 0 / 0.5884 GB, free: 9.301 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003702/0.5584, allocations: 1.241 MB / 0.5896 GB, free: 8.059 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.01263/0.571, allocations: 5.897 MB / 0.5954 GB, free: 2.082 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1629/0.734, allocations: 3.31 MB / 0.5986 GB, free: 132.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.734, allocations: 0 / 0.5986 GB, free: 132.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002751/0.7368, allocations: 1.624 MB / 0.6002 GB, free: 131.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001801/0.7386, allocations: 314.2 kB / 0.6005 GB, free: 131.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03253/0.7712, allocations: 21.43 MB / 0.6214 GB, free: 120.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007415/0.7719, allocations: 1.477 MB / 0.6228 GB, free: 119.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001804/0.7737, allocations: 472.1 kB / 0.6233 GB, free: 119.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001056/0.7748, allocations: 1.013 MB / 0.6243 GB, free: 119.1 MB / 462.1 MB Notification: Performance of SimCode: time 8.82e-07/0.7748, allocations: 0 / 0.6243 GB, free: 119.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08626/0.8611, allocations: 62.92 MB / 0.6857 GB, free: 77.72 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001723/0.8613, allocations: 239.4 kB / 0.686 GB, free: 77.46 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.653/4.514, allocations: 0 / 0.686 GB, free: 77.46 MB / 462.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)