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.001108/0.001108, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001191/0.001191, allocations: 197.8 kB / 16.14 MB, free: 6.688 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.263/1.263, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1799/0.1799, allocations: 15.31 MB / 305.3 MB, free: 15.34 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 59.91 kB / 369.8 MB, free: 4.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08896/0.09012, allocations: 53.61 MB / 423.4 MB, free: 14.68 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.2957/0.3859, allocations: 28.73 MB / 452.1 MB, free: 38.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01464/0.4005, allocations: 19.41 MB / 471.5 MB, free: 30.14 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001201/0.4018, allocations: 41.53 kB / 471.5 MB, free: 30.12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001291/0.4031, allocations: 451.3 kB / 472 MB, free: 29.89 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002731/0.4058, allocations: 1.1 MB / 473.1 MB, free: 29.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007296/0.4131, allocations: 2.494 MB / 475.6 MB, free: 27.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002863/0.416, allocations: 2.027 MB / 477.6 MB, free: 26.77 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001396/0.4175, allocations: 1.159 MB / 478.8 MB, free: 26.24 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009371/0.4184, allocations: 0.8513 MB / 479.6 MB, free: 25.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000918/0.4193, allocations: 1.032 MB / 480.6 MB, free: 25.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002243/0.4196, allocations: 129.8 kB / 480.8 MB, free: 25.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006004/0.4256, allocations: 2.002 MB / 482.8 MB, free: 24.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003393/0.4259, allocations: 399.8 kB / 483.2 MB, free: 24.76 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008493/0.4268, allocations: 0.9211 MB / 484.1 MB, free: 24.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007081/0.4339, allocations: 3.925 MB / 488 MB, free: 22.56 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.4339, allocations: 0 / 488 MB, free: 22.56 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4339, allocations: 0 / 488 MB, free: 22.56 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.645e-05/0.434, allocations: 0 / 488 MB, free: 22.56 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.004162/0.4382, allocations: 2.351 MB / 490.4 MB, free: 21.14 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.4382, allocations: 10.41 kB / 490.4 MB, free: 21.14 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002471/0.4385, allocations: 238.8 kB / 490.6 MB, free: 20.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001618/0.4401, allocations: 427.8 kB / 491 MB, free: 20.85 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001518/0.4416, allocations: 1.054 MB / 492.1 MB, free: 20.22 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/0.4417, allocations: 188.3 kB / 492.3 MB, free: 20.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002007/0.4419, allocations: 164.2 kB / 492.4 MB, free: 20.04 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002717/0.4447, allocations: 2.21 MB / 494.6 MB, free: 19.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.897e-05/0.4447, allocations: 0 / 494.6 MB, free: 19.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001381/0.4448, allocations: 69.88 kB / 494.7 MB, free: 19.05 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.963e-05/0.4449, allocations: 43.41 kB / 494.7 MB, free: 19.04 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003227/0.4481, allocations: 2.678 MB / 497.4 MB, free: 18.19 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.009632/0.4577, allocations: 7.247 MB / 0.4928 GB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001445/0.4592, allocations: 1.179 MB / 0.494 GB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006987/0.4599, allocations: 0.5613 MB / 0.4945 GB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006545/0.4665, allocations: 5.125 MB / 0.4995 GB, free: 6.703 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.094e-05/0.4665, allocations: 47.06 kB / 0.4996 GB, free: 6.648 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000493/0.467, allocations: 118.7 kB / 0.4997 GB, free: 6.535 MB / 366.1 MB Notification: Performance of pre-optimization done (n=71): time 2.746e-06/0.467, allocations: 0 / 0.4997 GB, free: 6.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=95): time 0.01754/0.4846, allocations: 4.772 MB / 0.5044 GB, free: 2.191 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.502e-05/0.4847, allocations: 123.9 kB / 0.5045 GB, free: 2.047 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001239/0.4859, allocations: 1.47 MB / 0.5059 GB, free: 0.5625 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.891e-05/0.486, allocations: 45.7 kB / 0.506 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004191/0.4864, allocations: 0.8895 MB / 0.5068 GB, free: 15.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002529/0.4867, allocations: 351 kB / 0.5072 GB, free: 15.26 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004609/0.4871, allocations: 355.1 kB / 0.5075 GB, free: 14.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.545e-05/0.4872, allocations: 301.1 kB / 0.5078 GB, free: 14.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009082/0.4881, allocations: 0.6208 MB / 0.5084 GB, free: 13.99 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001324/0.4895, allocations: 1.333 MB / 0.5097 GB, free: 12.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002176/0.4917, allocations: 1.901 MB / 0.5116 GB, free: 10.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.427e-05/0.4917, allocations: 8 kB / 0.5116 GB, free: 10.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005361/0.497, allocations: 2.347 MB / 0.5139 GB, free: 7.715 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.077e-05/0.4971, allocations: 19.94 kB / 0.5139 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.986e-05/0.4971, allocations: 24 kB / 0.5139 GB, free: 7.672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002592/0.4997, allocations: 383.4 kB / 0.5143 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002165/0.5019, allocations: 0.55 MB / 0.5148 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007442/0.5094, allocations: 7.329 MB / 0.522 GB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001478/0.5109, allocations: 99.8 kB / 0.5221 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001552/0.511, allocations: 108 kB / 0.5222 GB, free: 14.61 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.0005962/0.5116, allocations: 377 kB / 0.5225 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002516/0.5119, allocations: 122.4 kB / 0.5226 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004569/0.5165, allocations: 1.523 MB / 0.5241 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.187e-05/0.5165, allocations: 12 kB / 0.5241 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.5165, allocations: 0 / 0.5241 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.475e-05/0.5165, allocations: 19.84 kB / 0.5241 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006741/0.5233, allocations: 3.01 MB / 0.5271 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/0.5233, allocations: 7.938 kB / 0.5271 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008277/0.5242, allocations: 215.7 kB / 0.5273 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002745/0.5269, allocations: 413.2 kB / 0.5277 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.435e-05/0.527, allocations: 43.98 kB / 0.5277 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00688/0.5339, allocations: 7.132 MB / 0.5347 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/0.5339, allocations: 11.94 kB / 0.5347 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004769/0.5387, allocations: 2.156 MB / 0.5368 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003993/0.5391, allocations: 203.5 kB / 0.537 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001796/0.5393, allocations: 31.98 kB / 0.537 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007353/0.5401, allocations: 47.89 kB / 0.5371 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001889/0.5403, allocations: 108.3 kB / 0.5372 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.814e-05/0.5403, allocations: 52.11 kB / 0.5372 GB, free: 14.19 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001096/0.5414, allocations: 1.021 MB / 0.5382 GB, free: 13.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5414, allocations: 0 / 0.5382 GB, free: 13.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002597/0.5441, allocations: 0.812 MB / 0.539 GB, free: 12.35 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.006312/0.5504, allocations: 3.469 MB / 0.5424 GB, free: 8.758 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003066/0.5535, allocations: 1.745 MB / 0.5441 GB, free: 6.984 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5535, allocations: 0 / 0.5441 GB, free: 6.984 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001248/0.5547, allocations: 0.9852 MB / 0.5451 GB, free: 5.949 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001401/0.5561, allocations: 224.6 kB / 0.5453 GB, free: 5.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02103/0.5772, allocations: 14.7 MB / 0.5597 GB, free: 5.773 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007042/0.5779, allocations: 1.223 MB / 0.5609 GB, free: 4.52 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00117/0.5791, allocations: 342.4 kB / 0.5612 GB, free: 4.18 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007566/0.5799, allocations: 0.6554 MB / 0.5618 GB, free: 3.523 MB / 430.1 MB Notification: Performance of SimCode: time 5.51e-07/0.5799, allocations: 0 / 0.5618 GB, free: 3.523 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1928/0.7726, allocations: 38.64 MB / 0.5996 GB, free: 131.4 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001246/0.7728, allocations: 214.3 kB / 0.5998 GB, free: 131.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.73/3.503, allocations: 0 / 0.5998 GB, free: 131.1 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)