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.0008789/0.0008789, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005273/0.005273, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.26/1.26, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.176/0.176, allocations: 15.27 MB / 306.7 MB, free: 15.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002791/0.0002792, allocations: 11.98 kB / 372.2 MB, free: 3.535 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2535, allocations: 54.62 MB / 426.8 MB, free: 40.26 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65: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:3019:6-3019:65: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.02545/0.279, allocations: 28.26 MB / 455.1 MB, free: 29.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01631/0.2953, allocations: 19.19 MB / 474.3 MB, free: 16.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001115/0.2965, allocations: 34.62 kB / 474.3 MB, free: 16.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001021/0.2975, allocations: 454.9 kB / 474.7 MB, free: 16.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002721/0.3002, allocations: 1.101 MB / 475.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006374/0.3066, allocations: 2.485 MB / 478.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002221/0.3089, allocations: 2.037 MB / 480.4 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001292/0.3102, allocations: 1.1 MB / 481.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001025/0.3112, allocations: 0.8121 MB / 482.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001188/0.3124, allocations: 0.9507 MB / 483.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002949/0.3127, allocations: 104 kB / 483.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005466/0.3182, allocations: 1.976 MB / 485.3 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000362/0.3186, allocations: 368.3 kB / 485.7 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000786/0.3194, allocations: 0.8992 MB / 486.6 MB, free: 7.148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006597/0.326, allocations: 3.873 MB / 490.4 MB, free: 4.141 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.326, allocations: 4.562 kB / 490.4 MB, free: 4.137 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.326, allocations: 0 / 490.4 MB, free: 4.137 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.004e-05/0.326, allocations: 0 / 490.4 MB, free: 4.137 MB / 350.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.003247/0.3293, allocations: 2 MB / 492.4 MB, free: 2.289 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.3293, allocations: 8.031 kB / 492.4 MB, free: 2.281 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002521/0.3296, allocations: 245 kB / 492.7 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001489/0.3311, allocations: 434.1 kB / 493.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001384/0.3325, allocations: 1.034 MB / 494.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/0.3326, allocations: 192.4 kB / 494.3 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002257/0.3329, allocations: 168.9 kB / 494.5 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003203/0.3361, allocations: 2.21 MB / 496.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.167e-05/0.3361, allocations: 0 / 496.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001633/0.3363, allocations: 68 kB / 496.8 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.253e-05/0.3363, allocations: 44.89 kB / 496.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003822/0.3401, allocations: 2.677 MB / 499.5 MB, free: 12.18 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.01023/0.3504, allocations: 7.227 MB / 0.4948 GB, free: 5.648 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00168/0.3521, allocations: 1.186 MB / 0.496 GB, free: 4.398 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008424/0.3529, allocations: 0.5565 MB / 0.4965 GB, free: 3.828 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007286/0.3602, allocations: 5.041 MB / 0.5015 GB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.3603, allocations: 43.12 kB / 0.5015 GB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000519/0.3608, allocations: 114.6 kB / 0.5016 GB, free: 14.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=71): time 4.569e-06/0.3608, allocations: 0 / 0.5016 GB, free: 14.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=95): time 0.01905/0.3799, allocations: 4.834 MB / 0.5063 GB, free: 9.145 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.953e-05/0.38, allocations: 119.8 kB / 0.5065 GB, free: 9.004 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001783/0.3818, allocations: 1.474 MB / 0.5079 GB, free: 7.516 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.873e-05/0.3819, allocations: 37.7 kB / 0.5079 GB, free: 7.473 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005293/0.3825, allocations: 0.8972 MB / 0.5088 GB, free: 6.555 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002828/0.3828, allocations: 343.2 kB / 0.5091 GB, free: 6.215 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000191/0.383, allocations: 145.7 kB / 0.5093 GB, free: 6.066 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.651e-05/0.383, allocations: 305.1 kB / 0.5096 GB, free: 5.766 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009778/0.384, allocations: 0.6169 MB / 0.5102 GB, free: 5.148 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.3854, allocations: 1.325 MB / 0.5115 GB, free: 3.492 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002356/0.3878, allocations: 1.909 MB / 0.5133 GB, free: 1.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.599e-05/0.3878, allocations: 8 kB / 0.5133 GB, free: 1.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005624/0.3935, allocations: 2.366 MB / 0.5156 GB, free: 14.86 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.725e-05/0.3935, allocations: 19.94 kB / 0.5157 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.469e-05/0.3936, allocations: 24.47 kB / 0.5157 GB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002734/0.3963, allocations: 387 kB / 0.5161 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002246/0.3986, allocations: 0.5539 MB / 0.5166 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00798/0.4066, allocations: 7.362 MB / 0.5238 GB, free: 5.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001519/0.4081, allocations: 95.8 kB / 0.5239 GB, free: 5.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002763/0.4084, allocations: 111.9 kB / 0.524 GB, free: 5.711 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.0008396/0.4092, allocations: 365.1 kB / 0.5243 GB, free: 5.344 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003108/0.4096, allocations: 126.4 kB / 0.5244 GB, free: 5.219 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00505/0.4146, allocations: 1.546 MB / 0.526 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.4147, allocations: 8 kB / 0.526 GB, free: 3.633 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.4147, allocations: 4 kB / 0.526 GB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.534e-05/0.4147, allocations: 7.969 kB / 0.526 GB, free: 3.621 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006908/0.4216, allocations: 3.015 MB / 0.5289 GB, free: 456 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.655e-05/0.4217, allocations: 8 kB / 0.5289 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008403/0.4225, allocations: 215.7 kB / 0.5291 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00287/0.4254, allocations: 425.2 kB / 0.5295 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.784e-05/0.4255, allocations: 39.98 kB / 0.5296 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007188/0.4327, allocations: 7.16 MB / 0.5366 GB, free: 7.996 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.488e-06/0.4327, allocations: 11.94 kB / 0.5366 GB, free: 7.984 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004894/0.4376, allocations: 2.171 MB / 0.5387 GB, free: 5.695 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004082/0.438, allocations: 219.5 kB / 0.5389 GB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002098/0.4383, allocations: 36.11 kB / 0.5389 GB, free: 5.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007759/0.439, allocations: 39.98 kB / 0.539 GB, free: 5.387 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001925/0.4393, allocations: 116.3 kB / 0.5391 GB, free: 5.273 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.315e-05/0.4393, allocations: 55.92 kB / 0.5391 GB, free: 5.219 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001187/0.4405, allocations: 1.009 MB / 0.5401 GB, free: 4.203 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4405, allocations: 0 / 0.5401 GB, free: 4.203 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002572/0.4431, allocations: 0.8158 MB / 0.5409 GB, free: 3.387 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.006661/0.4498, allocations: 3.485 MB / 0.5443 GB, free: 15.77 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003107/0.4529, allocations: 1.741 MB / 0.546 GB, free: 14 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/0.4529, allocations: 4 kB / 0.546 GB, free: 14 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001278/0.4542, allocations: 0.9815 MB / 0.547 GB, free: 12.97 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002617/0.4569, allocations: 236.8 kB / 0.5472 GB, free: 12.73 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0235/0.4804, allocations: 14.83 MB / 0.5617 GB, free: 12.65 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008376/0.4813, allocations: 1.227 MB / 0.5629 GB, free: 11.39 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001271/0.4825, allocations: 326.5 kB / 0.5632 GB, free: 11.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008267/0.4834, allocations: 0.6632 MB / 0.5639 GB, free: 10.41 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4834, allocations: 4 kB / 0.5639 GB, free: 10.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2174/0.7008, allocations: 38.32 MB / 0.6013 GB, free: 133.2 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001497/0.701, allocations: 216.6 kB / 0.6015 GB, free: 133 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.753/3.454, allocations: 0 / 0.6015 GB, free: 133 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)