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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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.001167/0.001166, allocations: 86.33 kB / 15.06 MB, free: 1.09 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.001107/0.001107, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 223.3 MB / 240 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2081/0.2081, allocations: 15.26 MB / 306.3 MB, free: 15.79 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003488/0.0003489, allocations: 8 kB / 371.6 MB, free: 3.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2973, allocations: 54.61 MB / 426.2 MB, free: 40.27 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011: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.0/package.mo:3011:6-3011: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.007486/0.3049, allocations: 8.52 MB / 434.7 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01741/0.3223, allocations: 17.84 MB / 452.5 MB, free: 24.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001712/0.324, allocations: 35.12 kB / 452.6 MB, free: 24.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001479/0.3255, allocations: 460.5 kB / 453 MB, free: 24.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003677/0.3292, allocations: 1.185 MB / 454.2 MB, free: 23.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006193/0.3355, allocations: 2.302 MB / 456.5 MB, free: 22.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002298/0.3378, allocations: 1.931 MB / 458.4 MB, free: 21.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001315/0.3391, allocations: 1.024 MB / 459.5 MB, free: 20.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001045/0.3402, allocations: 0.7417 MB / 460.2 MB, free: 20.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001313/0.3415, allocations: 0.9248 MB / 461.1 MB, free: 20.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000309/0.3418, allocations: 104.9 kB / 461.2 MB, free: 20.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005125/0.3469, allocations: 1.885 MB / 463.1 MB, free: 19.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004546/0.3474, allocations: 361.3 kB / 463.5 MB, free: 19.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005933/0.348, allocations: 348.5 kB / 463.8 MB, free: 19.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005126/0.3532, allocations: 3.135 MB / 466.9 MB, free: 18.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.3532, allocations: 1.094 kB / 466.9 MB, free: 18.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3532, allocations: 0 / 466.9 MB, free: 18.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001506/0.3534, allocations: 0 / 466.9 MB, free: 18.06 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.007228/0.3606, allocations: 2.016 MB / 469 MB, free: 16.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.3607, allocations: 10.44 kB / 469 MB, free: 16.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008029/0.3615, allocations: 238.6 kB / 469.2 MB, free: 16.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002205/0.3637, allocations: 439.9 kB / 469.6 MB, free: 16.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002451/0.3662, allocations: 1.001 MB / 470.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001983/0.3664, allocations: 182.8 kB / 470.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004901/0.3669, allocations: 162.5 kB / 471 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004319/0.3712, allocations: 2.207 MB / 473.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.272e-05/0.3713, allocations: 5.125 kB / 473.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002014/0.3715, allocations: 69.91 kB / 473.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.645e-05/0.3715, allocations: 45.28 kB / 473.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004213/0.3757, allocations: 2.665 MB / 476 MB, free: 13.9 MB / 350.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.01183/0.3876, allocations: 7.23 MB / 483.2 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00174/0.3894, allocations: 1.169 MB / 484.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000856/0.3902, allocations: 0.5506 MB / 484.9 MB, free: 8.508 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006964/0.3972, allocations: 5.046 MB / 490 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.3973, allocations: 39.25 kB / 490 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006521/0.3979, allocations: 107.4 kB / 490.1 MB, free: 4.105 MB / 350.1 MB Notification: Performance of pre-optimization done (n=71): time 4.107e-06/0.3979, allocations: 1.375 kB / 490.1 MB, free: 4.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=95): time 0.01714/0.4151, allocations: 4.828 MB / 494.9 MB, free: 128 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.049e-05/0.4152, allocations: 119.9 kB / 495 MB, free: 15.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002187/0.4174, allocations: 1.466 MB / 496.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.4176, allocations: 41.7 kB / 496.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007198/0.4183, allocations: 0.8855 MB / 497.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000494/0.4188, allocations: 351.1 kB / 497.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.4189, allocations: 36 kB / 497.8 MB, free: 13.17 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002598/0.4192, allocations: 369.9 kB / 498.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001192/0.4204, allocations: 0.613 MB / 498.8 MB, free: 12.19 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00178/0.4222, allocations: 1.322 MB / 0.4884 GB, free: 10.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00141/0.4236, allocations: 0.7954 MB / 0.4892 GB, free: 9.742 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-05/0.4236, allocations: 4 kB / 0.4892 GB, free: 9.738 MB / 366.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005642/0.4293, allocations: 2.354 MB / 0.4915 GB, free: 7.363 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.118e-05/0.4294, allocations: 16 kB / 0.4915 GB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.492e-05/0.4294, allocations: 20 kB / 0.4915 GB, free: 7.328 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002447/0.4318, allocations: 399.5 kB / 0.4919 GB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002183/0.434, allocations: 0.554 MB / 0.4924 GB, free: 6.371 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008447/0.4425, allocations: 7.35 MB / 0.4996 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/0.4444, allocations: 115.8 kB / 0.4997 GB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003775/0.4448, allocations: 104 kB / 0.4998 GB, free: 14.22 MB / 382.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 (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 3 {1 1,1 1,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0008487/0.4456, allocations: 373 kB / 0.5002 GB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000329/0.446, allocations: 118.5 kB / 0.5003 GB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004754/0.4507, allocations: 1.538 MB / 0.5018 GB, free: 12.17 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-05/0.4508, allocations: 8 kB / 0.5018 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.888e-06/0.4508, allocations: 8 kB / 0.5018 GB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.311e-05/0.4508, allocations: 3.984 kB / 0.5018 GB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007059/0.4579, allocations: 3.019 MB / 0.5047 GB, free: 8.969 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.747e-05/0.4579, allocations: 11.92 kB / 0.5048 GB, free: 8.957 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008308/0.4588, allocations: 215.7 kB / 0.505 GB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002651/0.4614, allocations: 428.8 kB / 0.5054 GB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.4616, allocations: 39.98 kB / 0.5054 GB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007838/0.4694, allocations: 7.148 MB / 0.5124 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.11e-05/0.4695, allocations: 16 kB / 0.5124 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005556/0.475, allocations: 2.156 MB / 0.5145 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008103/0.4759, allocations: 219.5 kB / 0.5147 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004733/0.4763, allocations: 28 kB / 0.5147 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/0.4775, allocations: 51.95 kB / 0.5148 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002484/0.4778, allocations: 116.3 kB / 0.5149 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001109/0.4779, allocations: 51.98 kB / 0.515 GB, free: 13.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001826/0.4798, allocations: 1.001 MB / 0.5159 GB, free: 12.75 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4798, allocations: 0 / 0.5159 GB, free: 12.75 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003788/0.4836, allocations: 0.8042 MB / 0.5167 GB, free: 11.94 MB / 398.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 (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 5 {1 1,1 1,1 3,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007652/0.4912, allocations: 3.465 MB / 0.5201 GB, free: 8.336 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00371/0.495, allocations: 1.73 MB / 0.5218 GB, free: 6.582 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/0.495, allocations: 4 kB / 0.5218 GB, free: 6.578 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001394/0.4964, allocations: 0.9883 MB / 0.5228 GB, free: 5.543 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002043/0.4985, allocations: 224.7 kB / 0.523 GB, free: 5.324 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01785/0.5164, allocations: 9.829 MB / 0.5326 GB, free: 10.76 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001014/0.5174, allocations: 1.227 MB / 0.5338 GB, free: 9.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001368/0.5188, allocations: 326.5 kB / 0.5341 GB, free: 9.176 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009402/0.5198, allocations: 0.6593 MB / 0.5347 GB, free: 8.516 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5198, allocations: 0 / 0.5347 GB, free: 8.516 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06383/0.5836, allocations: 38.02 MB / 0.5719 GB, free: 2.75 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001728/0.5838, allocations: 206.7 kB / 0.5721 GB, free: 2.508 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.857/3.44, allocations: 7.938 kB / 0.5721 GB, free: 2.5 MB / 446.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/linux/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) Environment - environmentSimulation: