Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.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.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis",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.001093/0.001093, allocations: 103.4 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.001156/0.001156, allocations: 195.8 kB / 16.26 MB, free: 6.621 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.287/1.287, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.177/0.177, allocations: 15.32 MB / 305.4 MB, free: 15.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 59.91 kB / 369.9 MB, free: 4.234 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08771/0.08891, allocations: 53.62 MB / 423.6 MB, free: 14.57 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.MethanElectrosynthesis): time 0.3/0.389, allocations: 30.02 MB / 453.6 MB, free: 38.65 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01857/0.4075, allocations: 21.84 MB / 475.4 MB, free: 28.62 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001739/0.4093, allocations: 45.19 kB / 475.5 MB, free: 28.6 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001392/0.4107, allocations: 0.5171 MB / 476 MB, free: 28.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003456/0.4142, allocations: 1.223 MB / 477.2 MB, free: 27.6 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008551/0.4228, allocations: 2.94 MB / 480.1 MB, free: 25.9 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003167/0.426, allocations: 2.388 MB / 482.5 MB, free: 24.71 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001619/0.4276, allocations: 1.566 MB / 484.1 MB, free: 23.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001338/0.429, allocations: 1.058 MB / 485.2 MB, free: 23.53 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001436/0.4304, allocations: 1.216 MB / 486.4 MB, free: 22.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003523/0.4308, allocations: 232.9 kB / 486.6 MB, free: 22.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008884/0.4397, allocations: 2.398 MB / 489 MB, free: 22.38 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006082/0.4403, allocations: 0.5396 MB / 489.5 MB, free: 22.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001507/0.4418, allocations: 1.141 MB / 490.7 MB, free: 21.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008764/0.4506, allocations: 4.633 MB / 495.3 MB, free: 19.37 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.4506, allocations: 0 / 495.3 MB, free: 19.37 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.4507, allocations: 0 / 495.3 MB, free: 19.37 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.185e-05/0.4507, allocations: 12.31 kB / 495.3 MB, free: 19.36 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: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.004052/0.4547, allocations: 2.668 MB / 498 MB, free: 17.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.4548, allocations: 8.5 kB / 498 MB, free: 17.79 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002625/0.4551, allocations: 269.2 kB / 498.3 MB, free: 17.62 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00175/0.4568, allocations: 0.4967 MB / 498.8 MB, free: 17.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001625/0.4585, allocations: 1.161 MB / 499.9 MB, free: 16.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001367/0.4586, allocations: 202 kB / 0.4884 GB, free: 16.63 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002538/0.4589, allocations: 189.5 kB / 0.4886 GB, free: 16.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003466/0.4623, allocations: 2.648 MB / 0.4912 GB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.744e-05/0.4624, allocations: 3.938 kB / 0.4912 GB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001678/0.4626, allocations: 76 kB / 0.4912 GB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.438e-05/0.4626, allocations: 52 kB / 0.4913 GB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003892/0.4665, allocations: 3.273 MB / 0.4945 GB, free: 11.58 MB / 366.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.01052/0.477, allocations: 8.467 MB / 0.5028 GB, free: 4.164 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001533/0.4786, allocations: 1.333 MB / 0.5041 GB, free: 2.871 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007434/0.4793, allocations: 0.6302 MB / 0.5047 GB, free: 2.297 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007787/0.4871, allocations: 5.558 MB / 0.5101 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.221e-05/0.4872, allocations: 51.09 kB / 0.5101 GB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009358/0.4882, allocations: 182.4 kB / 0.5103 GB, free: 12.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 2.835e-06/0.4882, allocations: 0 / 0.5103 GB, free: 12.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=115): time 0.02959/0.5178, allocations: 7.16 MB / 0.5173 GB, free: 4.895 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.372e-05/0.5179, allocations: 119.8 kB / 0.5174 GB, free: 4.754 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002237/0.5201, allocations: 1.853 MB / 0.5192 GB, free: 2.883 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001406/0.5203, allocations: 45.7 kB / 0.5193 GB, free: 2.832 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006668/0.521, allocations: 1.014 MB / 0.5203 GB, free: 1.801 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003762/0.5214, allocations: 414.2 kB / 0.5207 GB, free: 1.391 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006601/0.522, allocations: 419.1 kB / 0.5211 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.636e-05/0.5221, allocations: 301.1 kB / 0.5214 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001338/0.5235, allocations: 0.8551 MB / 0.5222 GB, free: 15.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001854/0.5253, allocations: 1.577 MB / 0.5237 GB, free: 13.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003044/0.5284, allocations: 2.34 MB / 0.526 GB, free: 11.21 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.509e-05/0.5284, allocations: 8 kB / 0.526 GB, free: 11.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008293/0.5367, allocations: 3.295 MB / 0.5292 GB, free: 7.887 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.077e-05/0.5368, allocations: 16 kB / 0.5293 GB, free: 7.871 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.474e-05/0.5368, allocations: 27.94 kB / 0.5293 GB, free: 7.844 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004931/0.5417, allocations: 1.045 MB / 0.5303 GB, free: 6.785 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001462/0.5432, allocations: 431.3 kB / 0.5307 GB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01002/0.5533, allocations: 7.484 MB / 0.538 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001925/0.5552, allocations: 115.8 kB / 0.5381 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000315/0.5555, allocations: 120 kB / 0.5382 GB, free: 14.21 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * 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 (226): * Single equations (assignments): 221 * 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 {(2,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 {(2,15), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008665/0.5564, allocations: 405 kB / 0.5386 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004437/0.5569, allocations: 142.1 kB / 0.5388 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006972/0.5639, allocations: 2.192 MB / 0.5409 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.577e-05/0.5639, allocations: 19.94 kB / 0.5409 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.627e-06/0.5639, allocations: 4 kB / 0.5409 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.637e-05/0.5639, allocations: 7.969 kB / 0.5409 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009752/0.5737, allocations: 3.935 MB / 0.5448 GB, free: 7.379 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.829e-06/0.5737, allocations: 3.984 kB / 0.5448 GB, free: 7.375 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007713/0.5745, allocations: 171.7 kB / 0.5449 GB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004572/0.5791, allocations: 0.927 MB / 0.5459 GB, free: 6.266 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002058/0.5793, allocations: 51.91 kB / 0.5459 GB, free: 6.215 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008395/0.5877, allocations: 6.763 MB / 0.5525 GB, free: 15.01 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.261e-06/0.5878, allocations: 8.016 kB / 0.5525 GB, free: 15 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007412/0.5952, allocations: 2.912 MB / 0.5554 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004116/0.5956, allocations: 203.4 kB / 0.5556 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002764/0.5959, allocations: 24 kB / 0.5556 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.5969, allocations: 51.81 kB / 0.5556 GB, free: 11.75 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002867/0.5972, allocations: 124.7 kB / 0.5557 GB, free: 11.63 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.5973, allocations: 47.97 kB / 0.5558 GB, free: 11.58 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001425/0.5988, allocations: 1.302 MB / 0.5571 GB, free: 10.28 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5988, allocations: 0 / 0.5571 GB, free: 10.28 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002821/0.6016, allocations: 0.9564 MB / 0.558 GB, free: 9.32 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (90): * Single equations (assignments): 85 * 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 {(2,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,17), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009552/0.6112, allocations: 4.334 MB / 0.5622 GB, free: 4.922 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005469/0.6167, allocations: 2.642 MB / 0.5648 GB, free: 2.223 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.6167, allocations: 4.062 kB / 0.5648 GB, free: 2.219 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00216/0.6189, allocations: 1.228 MB / 0.566 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001644/0.6205, allocations: 236.5 kB / 0.5662 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03222/0.6528, allocations: 18.17 MB / 0.584 GB, free: 13.26 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009791/0.6538, allocations: 1.307 MB / 0.5853 GB, free: 11.93 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001361/0.6552, allocations: 340 kB / 0.5856 GB, free: 11.59 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009286/0.6561, allocations: 0.7569 MB / 0.5863 GB, free: 10.83 MB / 462.1 MB Notification: Performance of SimCode: time 5.71e-07/0.6561, allocations: 4 kB / 0.5863 GB, free: 10.83 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.274/0.9301, allocations: 49.61 MB / 0.6348 GB, free: 124.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002073/0.9304, allocations: 227.7 kB / 0.635 GB, free: 124.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.193/4.123, allocations: 0 / 0.635 GB, free: 124.2 MB / 462.1 MB (rm -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis.fmu > Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1)