Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.H2O_ElectrochemicalCell.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.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_H2O_ElectrochemicalCell",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.001166/0.001166, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001251/0.001251, allocations: 188.1 kB / 16.25 MB, free: 6.641 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.274/1.274, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1846/0.1846, allocations: 15.31 MB / 305.4 MB, free: 15.31 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 67.89 kB / 369.9 MB, free: 4.227 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09161/0.0929, allocations: 53.6 MB / 423.5 MB, free: 14.56 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.H2O_ElectrochemicalCell): time 0.3223/0.4153, allocations: 28.73 MB / 452.3 MB, free: 38.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01696/0.4323, allocations: 19.24 MB / 471.5 MB, free: 30.03 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00147/0.4338, allocations: 41.69 kB / 471.5 MB, free: 30.01 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001188/0.435, allocations: 442.4 kB / 472 MB, free: 29.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00274/0.4377, allocations: 1.123 MB / 473.1 MB, free: 29.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00611/0.4438, allocations: 2.534 MB / 475.6 MB, free: 27.73 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002065/0.4459, allocations: 2.094 MB / 477.7 MB, free: 26.7 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001146/0.4471, allocations: 1.349 MB / 479.1 MB, free: 26.04 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008827/0.448, allocations: 0.9259 MB / 480 MB, free: 25.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009825/0.449, allocations: 1.067 MB / 481.1 MB, free: 25.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002505/0.4492, allocations: 199.7 kB / 481.3 MB, free: 25.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005752/0.455, allocations: 2.106 MB / 483.4 MB, free: 24.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00038/0.4554, allocations: 475.9 kB / 483.8 MB, free: 24.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009171/0.4563, allocations: 0.9874 MB / 484.8 MB, free: 23.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008034/0.4644, allocations: 4.012 MB / 488.8 MB, free: 22.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.4644, allocations: 3.938 kB / 488.8 MB, free: 22.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4644, allocations: 0 / 488.8 MB, free: 22.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.584e-05/0.4644, allocations: 0 / 488.8 MB, free: 22.04 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.003762/0.4682, allocations: 2.343 MB / 491.2 MB, free: 20.62 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.4682, allocations: 10.88 kB / 491.2 MB, free: 20.62 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002202/0.4685, allocations: 242.7 kB / 491.4 MB, free: 20.47 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001644/0.4701, allocations: 429 kB / 491.9 MB, free: 20.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001494/0.4716, allocations: 1.049 MB / 492.9 MB, free: 19.71 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/0.4718, allocations: 187.3 kB / 493.1 MB, free: 19.58 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002032/0.472, allocations: 168.3 kB / 493.2 MB, free: 19.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002899/0.4749, allocations: 2.205 MB / 495.5 MB, free: 18.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.577e-05/0.4749, allocations: 3.938 kB / 495.5 MB, free: 18.58 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001485/0.4751, allocations: 71.72 kB / 495.5 MB, free: 18.53 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.211e-05/0.4751, allocations: 42.69 kB / 495.6 MB, free: 18.53 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003353/0.4785, allocations: 2.67 MB / 498.2 MB, free: 17.68 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.01006/0.4885, allocations: 7.251 MB / 0.4936 GB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001498/0.49, allocations: 1.183 MB / 0.4948 GB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006925/0.4908, allocations: 0.5488 MB / 0.4953 GB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006444/0.4972, allocations: 5.14 MB / 0.5004 GB, free: 5.758 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.041e-05/0.4972, allocations: 47.86 kB / 0.5004 GB, free: 5.703 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004651/0.4977, allocations: 110.6 kB / 0.5005 GB, free: 5.598 MB / 366.1 MB Notification: Performance of pre-optimization done (n=71): time 2.264e-06/0.4977, allocations: 0 / 0.5005 GB, free: 5.598 MB / 366.1 MB Notification: Performance of matching and sorting (n=95): time 0.01742/0.5152, allocations: 4.805 MB / 0.5052 GB, free: 1.277 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.393e-05/0.5152, allocations: 115.4 kB / 0.5053 GB, free: 1.145 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001312/0.5165, allocations: 1.479 MB / 0.5068 GB, free: 15.75 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.994e-05/0.5166, allocations: 41.7 kB / 0.5068 GB, free: 15.71 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005367/0.5172, allocations: 0.8895 MB / 0.5077 GB, free: 14.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002622/0.5174, allocations: 351.1 kB / 0.508 GB, free: 14.45 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005067/0.5179, allocations: 359.1 kB / 0.5083 GB, free: 14.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.5181, allocations: 305.1 kB / 0.5086 GB, free: 13.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009757/0.519, allocations: 0.6208 MB / 0.5092 GB, free: 13.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001466/0.5205, allocations: 1.333 MB / 0.5105 GB, free: 11.51 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0024/0.5229, allocations: 1.913 MB / 0.5124 GB, free: 9.266 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.104e-05/0.5229, allocations: 8 kB / 0.5124 GB, free: 9.258 MB / 382.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.00546/0.5284, allocations: 2.358 MB / 0.5147 GB, free: 6.879 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.5285, allocations: 19.94 kB / 0.5147 GB, free: 6.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.208e-05/0.5285, allocations: 24 kB / 0.5148 GB, free: 6.836 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00262/0.5311, allocations: 379.3 kB / 0.5151 GB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0026/0.5337, allocations: 0.5617 MB / 0.5157 GB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008424/0.5422, allocations: 7.905 MB / 0.5234 GB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001456/0.5436, allocations: 103.8 kB / 0.5235 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001555/0.5438, allocations: 107.9 kB / 0.5236 GB, free: 13.16 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (219): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,1), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0006311/0.5445, allocations: 373 kB / 0.5239 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002699/0.5447, allocations: 122.4 kB / 0.5241 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004776/0.5495, allocations: 1.538 MB / 0.5256 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.5495, allocations: 8 kB / 0.5256 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.526e-05/0.5496, allocations: 8 kB / 0.5256 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.5496, allocations: 11.91 kB / 0.5256 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006649/0.5562, allocations: 3.007 MB / 0.5285 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-06/0.5563, allocations: 8 kB / 0.5285 GB, free: 7.891 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008726/0.5571, allocations: 215.7 kB / 0.5287 GB, free: 7.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002831/0.56, allocations: 408.5 kB / 0.5291 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-05/0.5601, allocations: 43.98 kB / 0.5292 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007927/0.568, allocations: 7.707 MB / 0.5367 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.237e-06/0.568, allocations: 11.94 kB / 0.5367 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005068/0.5731, allocations: 2.16 MB / 0.5388 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004228/0.5736, allocations: 207.5 kB / 0.539 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001887/0.5738, allocations: 31.98 kB / 0.539 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007543/0.5745, allocations: 35.98 kB / 0.5391 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001884/0.5747, allocations: 116.3 kB / 0.5392 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.46e-05/0.5748, allocations: 51.98 kB / 0.5392 GB, free: 12.15 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001152/0.576, allocations: 1.009 MB / 0.5402 GB, free: 11.13 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.576, allocations: 0 / 0.5402 GB, free: 11.13 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002732/0.5787, allocations: 0.8198 MB / 0.541 GB, free: 10.31 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * 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 (101): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,1), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006863/0.5856, allocations: 3.477 MB / 0.5444 GB, free: 6.707 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003688/0.5893, allocations: 1.822 MB / 0.5462 GB, free: 4.855 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.872e-06/0.5893, allocations: 2 kB / 0.5462 GB, free: 4.855 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001335/0.5907, allocations: 0.9996 MB / 0.5472 GB, free: 3.805 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001562/0.5922, allocations: 233.7 kB / 0.5474 GB, free: 3.582 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02317/0.6154, allocations: 14.74 MB / 0.5618 GB, free: 3.59 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008587/0.6163, allocations: 1.219 MB / 0.563 GB, free: 2.34 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001301/0.6176, allocations: 326.5 kB / 0.5633 GB, free: 2.016 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000819/0.6185, allocations: 0.6671 MB / 0.564 GB, free: 1.348 MB / 430.1 MB Notification: Performance of SimCode: time 8.72e-07/0.6185, allocations: 0 / 0.564 GB, free: 1.348 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2245/0.8429, allocations: 39.7 MB / 0.6027 GB, free: 137.2 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001574/0.8431, allocations: 223.3 kB / 0.6029 GB, free: 137 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.958/3.801, allocations: 2.656 kB / 0.6029 GB, free: 137 MB / 462.1 MB (rm -f Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.H2O_ElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_H2O_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_H2O_ElectrochemicalCell.fmu > Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe 2>&1)