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.0009468/0.0009468, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.00115/0.00115, allocations: 177.3 kB / 15.95 MB, free: 216 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.313/1.313, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2222/0.2222, allocations: 15.26 MB / 306.2 MB, free: 15.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003572/0.0003573, allocations: 11.98 kB / 371.5 MB, free: 3.926 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.2983, allocations: 54.62 MB / 426.1 MB, free: 39.97 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.00656/0.3049, allocations: 7.663 MB / 433.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01526/0.3201, allocations: 16.56 MB / 450.3 MB, free: 25.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001268/0.3215, allocations: 39.28 kB / 450.3 MB, free: 25.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001137/0.3226, allocations: 469.1 kB / 450.8 MB, free: 25.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003414/0.326, allocations: 1.394 MB / 452.2 MB, free: 24.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007126/0.3332, allocations: 2.529 MB / 454.7 MB, free: 23.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003444/0.3366, allocations: 1.414 MB / 456.1 MB, free: 22.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001693/0.3384, allocations: 1.017 MB / 457.1 MB, free: 21.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001396/0.3398, allocations: 0.7134 MB / 457.9 MB, free: 21.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001043/0.3408, allocations: 0.9036 MB / 458.8 MB, free: 21.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000163/0.341, allocations: 104.4 kB / 458.9 MB, free: 21.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007166/0.3482, allocations: 2.268 MB / 461.1 MB, free: 20.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004006/0.3486, allocations: 359.8 kB / 461.5 MB, free: 20.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005579/0.3492, allocations: 351.1 kB / 461.8 MB, free: 20.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004747/0.3539, allocations: 2.573 MB / 464.4 MB, free: 19.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.3539, allocations: 1 kB / 464.4 MB, free: 19.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3539, allocations: 0 / 464.4 MB, free: 19.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.935e-05/0.354, allocations: 0 / 464.4 MB, free: 19.62 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.003975/0.358, allocations: 2.009 MB / 466.4 MB, free: 18.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.358, allocations: 8.844 kB / 466.4 MB, free: 18.4 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000282/0.3583, allocations: 240.1 kB / 466.6 MB, free: 18.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001739/0.3601, allocations: 441.1 kB / 467.1 MB, free: 18.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001798/0.3619, allocations: 1 MB / 468.1 MB, free: 17.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001497/0.362, allocations: 183.4 kB / 468.3 MB, free: 17.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000265/0.3623, allocations: 166 kB / 468.4 MB, free: 17.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00342/0.3657, allocations: 2.205 MB / 470.6 MB, free: 16.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.917e-05/0.3658, allocations: 1.375 kB / 470.6 MB, free: 16.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001444/0.3659, allocations: 65.75 kB / 470.7 MB, free: 16.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.38e-05/0.366, allocations: 46.06 kB / 470.7 MB, free: 16.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003688/0.3697, allocations: 2.659 MB / 473.4 MB, free: 15.47 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.009897/0.3796, allocations: 7.238 MB / 480.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001589/0.3812, allocations: 1.177 MB / 481.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007321/0.3885, allocations: 5 MB / 486.8 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.3886, allocations: 46.58 kB / 486.9 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005253/0.3891, allocations: 100.6 kB / 487 MB, free: 6.383 MB / 350.1 MB Notification: Performance of pre-optimization done (n=65): time 2.595e-06/0.3891, allocations: 0 / 487 MB, free: 6.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=87): time 0.01699/0.4061, allocations: 4.608 MB / 491.6 MB, free: 3.445 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.306e-05/0.4062, allocations: 115.8 kB / 491.7 MB, free: 3.309 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001365/0.4076, allocations: 1.479 MB / 493.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.888e-05/0.4076, allocations: 41.7 kB / 493.2 MB, free: 1.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003698/0.408, allocations: 0.9125 MB / 494.1 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001758/0.4082, allocations: 315.6 kB / 494.4 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.91e-05/0.4083, allocations: 44 kB / 494.5 MB, free: 496 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.751e-05/0.4084, allocations: 377.8 kB / 494.8 MB, free: 112 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008276/0.4092, allocations: 0.5818 MB / 495.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/0.4105, allocations: 1.326 MB / 496.7 MB, free: 13.85 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/0.4115, allocations: 0.7681 MB / 497.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/0.4116, allocations: 8 kB / 497.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.004951/0.4165, allocations: 2.327 MB / 499.8 MB, free: 10.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/0.4166, allocations: 12 kB / 499.9 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.534e-05/0.4166, allocations: 28 kB / 499.9 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002551/0.4192, allocations: 399.2 kB / 0.4885 GB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001995/0.4212, allocations: 0.5422 MB / 0.4891 GB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007346/0.4285, allocations: 7.39 MB / 0.4963 GB, free: 1.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001678/0.4302, allocations: 115.6 kB / 0.4964 GB, free: 1.656 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001701/0.4304, allocations: 108 kB / 0.4965 GB, free: 1.551 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 113 * 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 (216): * Single equations (assignments): 210 * 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.0006533/0.4311, allocations: 365.1 kB / 0.4969 GB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002294/0.4313, allocations: 122.5 kB / 0.497 GB, free: 1.062 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004238/0.4356, allocations: 1.473 MB / 0.4984 GB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.4356, allocations: 12 kB / 0.4984 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.4356, allocations: 0 / 0.4984 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/0.4356, allocations: 11.97 kB / 0.4984 GB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005991/0.4416, allocations: 2.826 MB / 0.5012 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/0.4417, allocations: 7.953 kB / 0.5012 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007624/0.4424, allocations: 203.8 kB / 0.5014 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002557/0.445, allocations: 433 kB / 0.5018 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.37e-05/0.4451, allocations: 35.98 kB / 0.5018 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006757/0.4518, allocations: 7.203 MB / 0.5089 GB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.4519, allocations: 7.938 kB / 0.5089 GB, free: 4.078 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004631/0.4565, allocations: 2.368 MB / 0.5112 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006106/0.4571, allocations: 223.3 kB / 0.5114 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000406/0.4576, allocations: 27.98 kB / 0.5114 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008567/0.4584, allocations: 39.98 kB / 0.5115 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001769/0.4586, allocations: 92.44 kB / 0.5116 GB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.697e-05/0.4587, allocations: 55.92 kB / 0.5116 GB, free: 1.055 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001105/0.4598, allocations: 1.014 MB / 0.5126 GB, free: 36 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4598, allocations: 0 / 0.5126 GB, free: 36 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.002916/0.4627, allocations: 0.8003 MB / 0.5134 GB, free: 15.23 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * 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 (94): * Single equations (assignments): 88 * 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.006703/0.4695, allocations: 5.202 MB / 0.5185 GB, free: 9.828 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003038/0.4725, allocations: 1.695 MB / 0.5201 GB, free: 8.109 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/0.4725, allocations: 0 / 0.5201 GB, free: 8.109 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001282/0.4738, allocations: 0.961 MB / 0.5211 GB, free: 7.102 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001341/0.4752, allocations: 200.7 kB / 0.5212 GB, free: 6.906 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0127/0.4879, allocations: 22.18 MB / 0.5429 GB, free: 15.9 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007963/0.4887, allocations: 1.247 MB / 0.5441 GB, free: 14.62 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001342/0.4901, allocations: 318.5 kB / 0.5444 GB, free: 14.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007842/0.4909, allocations: 0.6515 MB / 0.5451 GB, free: 13.65 MB / 430.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4909, allocations: 0 / 0.5451 GB, free: 13.65 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05735/0.5483, allocations: 37.22 MB / 0.5814 GB, free: 8.688 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001988/0.5485, allocations: 195.9 kB / 0.5816 GB, free: 8.449 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.718/3.266, allocations: 0 / 0.5816 GB, free: 8.449 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/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: