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.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.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.000859/0.0008594, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.0009173/0.0009173, allocations: 172 kB / 16.26 MB, free: 6.664 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.251/1.251, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1708/0.1708, allocations: 15.28 MB / 306.7 MB, free: 15.73 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002888/0.0002888, allocations: 15.98 kB / 372.2 MB, free: 3.508 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2396/0.2399, allocations: 54.61 MB / 426.8 MB, free: 40.48 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.ElectrochemicalCell): time 0.02843/0.2684, allocations: 30.45 MB / 457.3 MB, free: 28.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02271/0.2911, allocations: 28.35 MB / 485.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001479/0.2926, allocations: 47.62 kB / 485.7 MB, free: 7.332 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001277/0.2939, allocations: 0.5898 MB / 486.3 MB, free: 6.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004282/0.2982, allocations: 1.947 MB / 488.2 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007942/0.3062, allocations: 3.372 MB / 491.6 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002497/0.3087, allocations: 2.745 MB / 494.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001488/0.3102, allocations: 1.36 MB / 495.7 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00124/0.3114, allocations: 1.202 MB / 496.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001503/0.3129, allocations: 1.359 MB / 498.2 MB, free: 12.67 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002254/0.3132, allocations: 136 kB / 498.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008316/0.3215, allocations: 3.01 MB / 0.4896 GB, free: 9.836 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004457/0.3219, allocations: 484.5 kB / 0.4901 GB, free: 9.465 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001066/0.323, allocations: 1.18 MB / 0.4912 GB, free: 8.371 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01024/0.3333, allocations: 5.551 MB / 0.4967 GB, free: 4.004 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3333, allocations: 0 / 0.4967 GB, free: 4.004 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3333, allocations: 0 / 0.4967 GB, free: 4.004 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.889e-05/0.3333, allocations: 0 / 0.4967 GB, free: 4.004 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: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.004529/0.3379, allocations: 2.59 MB / 0.4992 GB, free: 1.477 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.3379, allocations: 8.031 kB / 0.4992 GB, free: 1.469 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003431/0.3383, allocations: 304.3 kB / 0.4995 GB, free: 1.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002037/0.3403, allocations: 0.5412 MB / 0.5 GB, free: 0.6172 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001803/0.3421, allocations: 1.244 MB / 0.5012 GB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001802/0.3423, allocations: 223.9 kB / 0.5014 GB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003394/0.3427, allocations: 223.9 kB / 0.5017 GB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00396/0.3466, allocations: 2.667 MB / 0.5043 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.605e-05/0.3467, allocations: 0 / 0.5043 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002091/0.3469, allocations: 92 kB / 0.5044 GB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.041e-05/0.3469, allocations: 52 kB / 0.5044 GB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004777/0.3517, allocations: 3.31 MB / 0.5076 GB, free: 8.664 MB / 382.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.01144/0.3632, allocations: 8.63 MB / 0.5161 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002409/0.3656, allocations: 2.002 MB / 0.518 GB, free: 13.58 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001263/0.3669, allocations: 0.9251 MB / 0.5189 GB, free: 12.65 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009445/0.3763, allocations: 7.749 MB / 0.5265 GB, free: 4.051 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.146e-05/0.3764, allocations: 51.88 kB / 0.5265 GB, free: 3.992 MB / 398.1 MB Notification: Performance of pre-optimization done (n=128): time 2.404e-06/0.3764, allocations: 0 / 0.5265 GB, free: 3.992 MB / 398.1 MB Notification: Performance of matching and sorting (n=181): time 0.02839/0.4048, allocations: 8.283 MB / 0.5346 GB, free: 11.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.063e-05/0.4049, allocations: 99.09 kB / 0.5347 GB, free: 11.51 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00148/0.4063, allocations: 1.35 MB / 0.536 GB, free: 10.14 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001182/0.4065, allocations: 53.73 kB / 0.5361 GB, free: 10.08 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006241/0.4071, allocations: 1.062 MB / 0.5371 GB, free: 9.004 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004679/0.4076, allocations: 0.62 MB / 0.5377 GB, free: 8.375 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002523/0.4078, allocations: 198.8 kB / 0.5379 GB, free: 8.176 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.246e-05/0.4079, allocations: 301.1 kB / 0.5382 GB, free: 7.879 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001309/0.4092, allocations: 0.8132 MB / 0.539 GB, free: 7.062 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001805/0.4111, allocations: 1.658 MB / 0.5406 GB, free: 5.012 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003275/0.4143, allocations: 2.606 MB / 0.5432 GB, free: 2.023 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.4144, allocations: 12 kB / 0.5432 GB, free: 2.012 MB / 414.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006318/0.4207, allocations: 3.053 MB / 0.5462 GB, free: 14.94 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.674e-05/0.4207, allocations: 16 kB / 0.5462 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.805e-05/0.4208, allocations: 28 kB / 0.5462 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003144/0.4239, allocations: 0.5341 MB / 0.5467 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003381/0.4273, allocations: 0.7958 MB / 0.5475 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008152/0.4355, allocations: 7.502 MB / 0.5548 GB, free: 5.461 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001927/0.4374, allocations: 143.6 kB / 0.555 GB, free: 5.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002314/0.4377, allocations: 140 kB / 0.5551 GB, free: 5.184 MB / 430.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 (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,6), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009752/0.4386, allocations: 456.9 kB / 0.5555 GB, free: 4.727 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002743/0.4389, allocations: 169.9 kB / 0.5557 GB, free: 4.559 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006764/0.4457, allocations: 2.586 MB / 0.5582 GB, free: 1.941 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.762e-05/0.4457, allocations: 20 kB / 0.5582 GB, free: 1.922 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.4457, allocations: 7.938 kB / 0.5582 GB, free: 1.914 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.936e-05/0.4458, allocations: 11.95 kB / 0.5583 GB, free: 1.902 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009003/0.4548, allocations: 4.758 MB / 0.5629 GB, free: 12.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.417e-05/0.4548, allocations: 12 kB / 0.5629 GB, free: 12.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001595/0.4564, allocations: 420.3 kB / 0.5633 GB, free: 12.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003402/0.4598, allocations: 0.5626 MB / 0.5639 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000145/0.46, allocations: 87.91 kB / 0.564 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007335/0.4673, allocations: 7.284 MB / 0.5711 GB, free: 3.938 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-05/0.4673, allocations: 15.94 kB / 0.5711 GB, free: 3.922 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006772/0.4741, allocations: 3.481 MB / 0.5745 GB, free: 260 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004323/0.4746, allocations: 251 kB / 0.5747 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002133/0.4748, allocations: 55.94 kB / 0.5748 GB, free: 15.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.4758, allocations: 79.81 kB / 0.5748 GB, free: 15.86 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003042/0.4761, allocations: 188.8 kB / 0.575 GB, free: 15.67 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001369/0.4763, allocations: 95.97 kB / 0.5751 GB, free: 15.58 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001089/0.4774, allocations: 0.8928 MB / 0.576 GB, free: 14.68 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4774, allocations: 0 / 0.576 GB, free: 14.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003322/0.4807, allocations: 1.183 MB / 0.5771 GB, free: 13.5 MB / 462.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 (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,6), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008928/0.4896, allocations: 5.224 MB / 0.5822 GB, free: 8.078 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004449/0.4941, allocations: 2.459 MB / 0.5847 GB, free: 5.602 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.4941, allocations: 4 kB / 0.5847 GB, free: 5.598 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001921/0.496, allocations: 1.423 MB / 0.586 GB, free: 4.125 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003666/0.4997, allocations: 333.8 kB / 0.5864 GB, free: 3.797 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1786/0.6784, allocations: 19.16 MB / 0.6051 GB, free: 125.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007041/0.6791, allocations: 1.431 MB / 0.6065 GB, free: 124.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001707/0.6808, allocations: 465.3 kB / 0.6069 GB, free: 124.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00101/0.6818, allocations: 0.9699 MB / 0.6079 GB, free: 123.7 MB / 462.1 MB Notification: Performance of SimCode: time 6.62e-07/0.6818, allocations: 0 / 0.6079 GB, free: 123.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.056/1.738, allocations: 55.15 MB / 0.6617 GB, free: 92.6 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001498/1.738, allocations: 211.2 kB / 0.6619 GB, free: 92.35 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.779/5.516, allocations: 0 / 0.6619 GB, free: 92.35 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/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)