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.001036/0.001036, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001071/0.001071, allocations: 194.7 kB / 16.14 MB, free: 6.66 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.248/1.248, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1723/0.1723, allocations: 15.31 MB / 305.3 MB, free: 15.33 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 63.89 kB / 369.8 MB, free: 4.363 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08269/0.08383, allocations: 53.61 MB / 423.4 MB, free: 14.7 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66: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:4740:7-4740:66: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.2979/0.3818, allocations: 30.96 MB / 454.3 MB, free: 38.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02212/0.4039, allocations: 28.67 MB / 483 MB, free: 23.84 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002048/0.406, allocations: 54.94 kB / 483 MB, free: 23.81 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001577/0.4076, allocations: 0.5869 MB / 483.6 MB, free: 23.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006057/0.4136, allocations: 1.942 MB / 485.6 MB, free: 22.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008707/0.4224, allocations: 3.381 MB / 489 MB, free: 20.35 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002898/0.4253, allocations: 2.751 MB / 491.7 MB, free: 19.03 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001301/0.4266, allocations: 1.426 MB / 493.1 MB, free: 18.39 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001231/0.4278, allocations: 1.277 MB / 494.4 MB, free: 17.96 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001112/0.4289, allocations: 1.451 MB / 495.9 MB, free: 17.38 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002362/0.4292, allocations: 172.6 kB / 496 MB, free: 17.38 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008596/0.4378, allocations: 3.043 MB / 499.1 MB, free: 16.61 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004925/0.4383, allocations: 0.5258 MB / 499.6 MB, free: 16.3 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001804/0.4401, allocations: 1.218 MB / 0.4891 GB, free: 15.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01234/0.4525, allocations: 5.624 MB / 0.4946 GB, free: 11.24 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.4525, allocations: 4 kB / 0.4946 GB, free: 11.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.4525, allocations: 0 / 0.4946 GB, free: 11.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001019/0.4526, allocations: 0 / 0.4946 GB, free: 11.23 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.006484/0.4591, allocations: 3.087 MB / 0.4976 GB, free: 8.402 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.4592, allocations: 8.031 kB / 0.4976 GB, free: 8.395 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003903/0.4595, allocations: 304.4 kB / 0.4979 GB, free: 8.137 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002158/0.4617, allocations: 0.5453 MB / 0.4984 GB, free: 7.676 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001731/0.4635, allocations: 1.264 MB / 0.4997 GB, free: 6.594 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.4636, allocations: 225.4 kB / 0.4999 GB, free: 6.359 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002643/0.4639, allocations: 224.7 kB / 0.5001 GB, free: 6.141 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003581/0.4674, allocations: 2.665 MB / 0.5027 GB, free: 3.898 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.607e-05/0.4675, allocations: 3.938 kB / 0.5027 GB, free: 3.895 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001866/0.4677, allocations: 92 kB / 0.5028 GB, free: 3.805 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.558e-05/0.4677, allocations: 55.98 kB / 0.5028 GB, free: 3.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004096/0.4718, allocations: 3.31 MB / 0.5061 GB, free: 0.9023 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.01212/0.4839, allocations: 8.675 MB / 0.5145 GB, free: 8.324 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002486/0.4864, allocations: 2.01 MB / 0.5165 GB, free: 6.215 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001233/0.4877, allocations: 0.9212 MB / 0.5174 GB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01006/0.4978, allocations: 7.909 MB / 0.5251 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.4978, allocations: 43.88 kB / 0.5252 GB, free: 12.47 MB / 398.1 MB Notification: Performance of pre-optimization done (n=128): time 2.445e-06/0.4978, allocations: 4 kB / 0.5252 GB, free: 12.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=181): time 0.03053/0.5284, allocations: 8.213 MB / 0.5332 GB, free: 4.164 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.547e-05/0.5284, allocations: 95.11 kB / 0.5333 GB, free: 4.055 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001605/0.5301, allocations: 1.354 MB / 0.5346 GB, free: 2.684 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001381/0.5302, allocations: 57.73 kB / 0.5347 GB, free: 2.621 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006291/0.5308, allocations: 1.042 MB / 0.5357 GB, free: 1.562 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004953/0.5313, allocations: 0.6317 MB / 0.5363 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005939/0.5319, allocations: 484.7 kB / 0.5367 GB, free: 452 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.568e-05/0.532, allocations: 301.1 kB / 0.537 GB, free: 148 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001295/0.5333, allocations: 0.817 MB / 0.5378 GB, free: 15.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001872/0.5352, allocations: 1.65 MB / 0.5394 GB, free: 13.28 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003318/0.5385, allocations: 2.61 MB / 0.542 GB, free: 10.29 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.151e-05/0.5386, allocations: 8 kB / 0.542 GB, free: 10.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006486/0.5451, allocations: 3.045 MB / 0.545 GB, free: 7.215 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.618e-05/0.5451, allocations: 16 kB / 0.545 GB, free: 7.199 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.99e-05/0.5451, allocations: 28 kB / 0.545 GB, free: 7.172 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003212/0.5483, allocations: 0.5147 MB / 0.5455 GB, free: 6.645 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003449/0.5518, allocations: 0.8035 MB / 0.5463 GB, free: 5.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007857/0.5597, allocations: 7.461 MB / 0.5536 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001786/0.5615, allocations: 143.9 kB / 0.5537 GB, free: 13.65 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002177/0.5617, allocations: 148 kB / 0.5539 GB, free: 13.5 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.0007936/0.5625, allocations: 456.9 kB / 0.5543 GB, free: 13.05 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003184/0.5628, allocations: 165.8 kB / 0.5545 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006464/0.5693, allocations: 2.574 MB / 0.557 GB, free: 10.28 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.712e-05/0.5693, allocations: 23.94 kB / 0.557 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.5694, allocations: 3.938 kB / 0.557 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.691e-05/0.5694, allocations: 11.97 kB / 0.557 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008928/0.5783, allocations: 4.751 MB / 0.5617 GB, free: 5.254 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-05/0.5783, allocations: 12 kB / 0.5617 GB, free: 5.242 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001537/0.5799, allocations: 415.4 kB / 0.5621 GB, free: 4.836 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003368/0.5833, allocations: 0.559 MB / 0.5626 GB, free: 4.258 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001408/0.5834, allocations: 87.91 kB / 0.5627 GB, free: 4.172 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007208/0.5906, allocations: 7.265 MB / 0.5698 GB, free: 12.31 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.043e-05/0.5907, allocations: 15.94 kB / 0.5698 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006544/0.5972, allocations: 3.469 MB / 0.5732 GB, free: 8.637 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003982/0.5976, allocations: 238.9 kB / 0.5734 GB, free: 8.383 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002344/0.5979, allocations: 56 kB / 0.5735 GB, free: 8.328 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009935/0.5989, allocations: 79.81 kB / 0.5735 GB, free: 8.25 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002844/0.5992, allocations: 192.9 kB / 0.5737 GB, free: 8.062 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000144/0.5993, allocations: 99.97 kB / 0.5738 GB, free: 7.965 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001046/0.6004, allocations: 0.885 MB / 0.5747 GB, free: 7.078 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6004, allocations: 4 kB / 0.5747 GB, free: 7.074 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003401/0.6038, allocations: 1.195 MB / 0.5759 GB, free: 5.879 MB / 446.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.008649/0.6124, allocations: 5.195 MB / 0.5809 GB, free: 496 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004172/0.6166, allocations: 2.46 MB / 0.5833 GB, free: 14.01 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.6166, allocations: 4.125 kB / 0.5833 GB, free: 14 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00177/0.6184, allocations: 1.426 MB / 0.5847 GB, free: 12.53 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001702/0.6201, allocations: 334.2 kB / 0.585 GB, free: 12.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1613/0.7814, allocations: 19.02 MB / 0.6036 GB, free: 126.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000663/0.7821, allocations: 1.432 MB / 0.605 GB, free: 125.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001734/0.7838, allocations: 460.6 kB / 0.6055 GB, free: 125.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009954/0.7848, allocations: 0.9678 MB / 0.6064 GB, free: 125.7 MB / 462.1 MB Notification: Performance of SimCode: time 7.92e-07/0.7848, allocations: 0 / 0.6064 GB, free: 125.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07041/0.8553, allocations: 55.57 MB / 0.6607 GB, free: 101.2 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001681/0.8555, allocations: 212.5 kB / 0.6609 GB, free: 100.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.281/4.137, allocations: 3.984 kB / 0.6609 GB, free: 100.9 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)