Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.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.ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_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.0009858/0.0009858, allocations: 95.86 kB / 15.05 MB, free: 1.113 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.0009658/0.0009659, allocations: 181.3 kB / 15.95 MB, free: 220 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.306/1.306, allocations: 223.2 MB / 239.9 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1989/0.1989, allocations: 15.26 MB / 306.2 MB, free: 15.73 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003353/0.0003354, allocations: 8 kB / 371.5 MB, free: 3.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2914, allocations: 54.61 MB / 426.1 MB, free: 40.28 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.ElectrochemicalCell): time 0.007847/0.2993, allocations: 9.442 MB / 435.5 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02037/0.3197, allocations: 24.3 MB / 459.8 MB, free: 19.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001788/0.3215, allocations: 49.09 kB / 459.9 MB, free: 19.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001442/0.323, allocations: 0.6065 MB / 460.5 MB, free: 18.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005907/0.3289, allocations: 2.285 MB / 462.7 MB, free: 17.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008975/0.3379, allocations: 3.448 MB / 466.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002947/0.3408, allocations: 1.896 MB / 468.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001407/0.3423, allocations: 1.294 MB / 469.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001217/0.3435, allocations: 0.9819 MB / 470.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001575/0.3451, allocations: 1.281 MB / 471.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002742/0.3453, allocations: 134.9 kB / 471.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01168/0.357, allocations: 3.413 MB / 475.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009162/0.358, allocations: 472.1 kB / 475.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001094/0.3591, allocations: 457.8 kB / 476.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009264/0.3684, allocations: 3.595 MB / 479.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.3684, allocations: 0 / 479.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3684, allocations: 0 / 479.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.116e-05/0.3685, allocations: 1.375 kB / 479.7 MB, free: 10.72 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: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.007259/0.3757, allocations: 2.587 MB / 482.3 MB, free: 9.199 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.536e-05/0.3758, allocations: 9.594 kB / 482.3 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006553/0.3765, allocations: 307.8 kB / 482.6 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00274/0.3792, allocations: 0.5379 MB / 483.1 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002841/0.3821, allocations: 1.189 MB / 484.3 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002381/0.3823, allocations: 222.3 kB / 484.5 MB, free: 7.984 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006042/0.383, allocations: 225.2 kB / 484.8 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006015/0.389, allocations: 2.647 MB / 487.4 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.734e-05/0.3891, allocations: 5.25 kB / 487.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002276/0.3893, allocations: 90.03 kB / 487.5 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.525e-05/0.3894, allocations: 53.94 kB / 487.5 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005728/0.3951, allocations: 3.292 MB / 490.8 MB, free: 5.09 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.01307/0.4082, allocations: 8.592 MB / 499.4 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002815/0.411, allocations: 1.99 MB / 0.4897 GB, free: 10.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01148/0.4225, allocations: 7.696 MB / 0.4972 GB, free: 1.523 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.778e-05/0.4226, allocations: 51.83 kB / 0.4972 GB, free: 1.461 MB / 366.1 MB Notification: Performance of pre-optimization done (n=128): time 4.438e-06/0.4226, allocations: 0 / 0.4972 GB, free: 1.461 MB / 366.1 MB Notification: Performance of matching and sorting (n=181): time 0.02919/0.4518, allocations: 8.254 MB / 0.5053 GB, free: 9.109 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.713e-05/0.4519, allocations: 99.14 kB / 0.5054 GB, free: 8.996 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00162/0.4535, allocations: 1.343 MB / 0.5067 GB, free: 7.637 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001395/0.4537, allocations: 57.64 kB / 0.5068 GB, free: 7.574 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006461/0.4543, allocations: 1.05 MB / 0.5078 GB, free: 6.504 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005069/0.4549, allocations: 0.6278 MB / 0.5084 GB, free: 5.867 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001279/0.455, allocations: 48 kB / 0.5084 GB, free: 5.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.4552, allocations: 415 kB / 0.5088 GB, free: 5.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001393/0.4566, allocations: 0.7975 MB / 0.5096 GB, free: 4.609 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001806/0.4584, allocations: 1.634 MB / 0.5112 GB, free: 2.586 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001595/0.46, allocations: 1.044 MB / 0.5122 GB, free: 1.547 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.148e-05/0.46, allocations: 8 kB / 0.5122 GB, free: 1.539 MB / 382.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006314/0.4663, allocations: 3.034 MB / 0.5152 GB, free: 14.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.464e-05/0.4664, allocations: 16 kB / 0.5152 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.428e-05/0.4664, allocations: 28 kB / 0.5152 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003148/0.4696, allocations: 0.5338 MB / 0.5158 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003598/0.4732, allocations: 0.7997 MB / 0.5165 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008083/0.4813, allocations: 7.516 MB / 0.5239 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002086/0.4834, allocations: 155.7 kB / 0.524 GB, free: 4.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002341/0.4837, allocations: 143.9 kB / 0.5242 GB, free: 4.699 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (311): * Single equations (assignments): 305 * 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 6,1 1,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000869/0.4845, allocations: 453.9 kB / 0.5246 GB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002794/0.4848, allocations: 165.9 kB / 0.5248 GB, free: 4.082 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006472/0.4913, allocations: 2.589 MB / 0.5273 GB, free: 1.465 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.4913, allocations: 20 kB / 0.5273 GB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.4914, allocations: 7.984 kB / 0.5273 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-05/0.4914, allocations: 11.97 kB / 0.5273 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009041/0.5004, allocations: 4.739 MB / 0.532 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.606e-05/0.5005, allocations: 12 kB / 0.532 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001531/0.502, allocations: 419.4 kB / 0.5324 GB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003254/0.5053, allocations: 0.5745 MB / 0.5329 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001631/0.5054, allocations: 79.97 kB / 0.533 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007495/0.5129, allocations: 7.32 MB / 0.5402 GB, free: 3.441 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.499e-05/0.513, allocations: 23.88 kB / 0.5402 GB, free: 3.418 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007001/0.52, allocations: 4.15 MB / 0.5442 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005837/0.5206, allocations: 250.8 kB / 0.5445 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002422/0.5208, allocations: 59.98 kB / 0.5445 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.5219, allocations: 79.81 kB / 0.5446 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002813/0.5222, allocations: 192.8 kB / 0.5448 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001565/0.5223, allocations: 99.91 kB / 0.5449 GB, free: 14 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001145/0.5235, allocations: 0.8772 MB / 0.5457 GB, free: 13.12 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5235, allocations: 0 / 0.5457 GB, free: 13.12 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003947/0.5274, allocations: 1.167 MB / 0.5469 GB, free: 11.95 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 8 (cathode.temperature,Ag.logn,anode.temperature,solution1.temperature,Cl.logn,AgCl.logn,H.logn,liquidWater.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 (198): * Single equations (assignments): 192 * 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 6,1 1,1 3,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01019/0.5376, allocations: 9.186 MB / 0.5558 GB, free: 2.383 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004427/0.5421, allocations: 2.442 MB / 0.5582 GB, free: 15.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/0.5421, allocations: 2 kB / 0.5582 GB, free: 15.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001884/0.544, allocations: 1.422 MB / 0.5596 GB, free: 14.44 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001595/0.5456, allocations: 293.8 kB / 0.5599 GB, free: 14.15 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01634/0.562, allocations: 25.85 MB / 0.5852 GB, free: 3.348 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001047/0.5631, allocations: 1.468 MB / 0.5866 GB, free: 1.844 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00213/0.5652, allocations: 466.5 kB / 0.587 GB, free: 1.383 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001239/0.5664, allocations: 0.9719 MB / 0.588 GB, free: 424 kB / 462.1 MB Notification: Performance of SimCode: time 5.71e-07/0.5665, allocations: 0 / 0.588 GB, free: 424 kB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2667/0.8332, allocations: 54 MB / 0.6407 GB, free: 113.7 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001617/0.8334, allocations: 184.6 kB / 0.6409 GB, free: 113.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.355/4.189, allocations: 0 / 0.6409 GB, free: 113.5 MB / 462.1 MB (rm -f Chemical_Chemical.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.ElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_ElectrochemicalCell.fmu > Chemical_Chemical.Examples.ElectrochemicalCell.pipe 2>&1) Environment - environmentSimulation: