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.005565/0.005565, allocations: 102.3 kB / 15.73 MB, free: 5.582 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.001203/0.001203, allocations: 191.2 kB / 16.67 MB, free: 5.52 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08206/0.08206, allocations: 15.31 MB / 305.8 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 59.91 kB / 424.7 MB, free: 11.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09721/0.09844, allocations: 53.61 MB / 478.3 MB, free: 6.324 MB / 350.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.03691/0.1354, allocations: 29.79 MB / 0.4962 GB, free: 8.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2753/0.4107, allocations: 28.69 MB / 0.5242 GB, free: 13.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002189/0.413, allocations: 22.91 kB / 0.5242 GB, free: 13.05 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002551/0.4156, allocations: 0.6581 MB / 0.5249 GB, free: 12.69 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008769/0.4243, allocations: 2.195 MB / 0.527 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01187/0.4363, allocations: 3.882 MB / 0.5308 GB, free: 9.137 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004234/0.4405, allocations: 2.857 MB / 0.5336 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002201/0.4428, allocations: 1.671 MB / 0.5352 GB, free: 7.055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002277/0.4451, allocations: 1.33 MB / 0.5365 GB, free: 6.535 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002578/0.4477, allocations: 1.486 MB / 0.538 GB, free: 5.621 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004953/0.4482, allocations: 260.9 kB / 0.5382 GB, free: 5.621 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01351/0.4617, allocations: 3.108 MB / 0.5412 GB, free: 4.516 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001024/0.4628, allocations: 0.6046 MB / 0.5418 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002627/0.4654, allocations: 1.301 MB / 0.5431 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01629/0.4817, allocations: 6.003 MB / 0.549 GB, free: 14.55 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.4818, allocations: 3.938 kB / 0.549 GB, free: 14.55 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4818, allocations: 0 / 0.549 GB, free: 14.55 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.465e-05/0.4818, allocations: 0 / 0.549 GB, free: 14.55 MB / 398.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.00564/0.4875, allocations: 3.085 MB / 0.552 GB, free: 11.42 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.4875, allocations: 12.03 kB / 0.552 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003262/0.4878, allocations: 300.3 kB / 0.5523 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002146/0.49, allocations: 0.5544 MB / 0.5528 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002009/0.492, allocations: 1.288 MB / 0.5541 GB, free: 9.215 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001798/0.4922, allocations: 230.7 kB / 0.5543 GB, free: 8.977 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003312/0.4926, allocations: 220 kB / 0.5545 GB, free: 8.762 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004203/0.4968, allocations: 2.666 MB / 0.5571 GB, free: 6.008 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.59e-05/0.4968, allocations: 3.938 kB / 0.5571 GB, free: 6.004 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000206/0.497, allocations: 88 kB / 0.5572 GB, free: 5.918 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.103e-05/0.4971, allocations: 58.62 kB / 0.5573 GB, free: 5.863 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005149/0.5023, allocations: 3.312 MB / 0.5605 GB, free: 2.551 MB / 398.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.01327/0.5156, allocations: 8.632 MB / 0.5689 GB, free: 9.609 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002649/0.5182, allocations: 2 MB / 0.5709 GB, free: 7.516 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001344/0.5196, allocations: 0.9251 MB / 0.5718 GB, free: 6.586 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01123/0.5308, allocations: 7.896 MB / 0.5795 GB, free: 13.85 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.897e-05/0.5309, allocations: 50.53 kB / 0.5795 GB, free: 13.79 MB / 430.1 MB Notification: Performance of pre-optimization done (n=128): time 3.567e-06/0.5309, allocations: 3.938 kB / 0.5795 GB, free: 13.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.03115/0.5621, allocations: 8.192 MB / 0.5875 GB, free: 5.594 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.627e-05/0.5622, allocations: 95.11 kB / 0.5876 GB, free: 5.48 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001626/0.5638, allocations: 1.357 MB / 0.589 GB, free: 4.109 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001853/0.564, allocations: 57.64 kB / 0.589 GB, free: 4.047 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006534/0.5647, allocations: 1.05 MB / 0.59 GB, free: 2.98 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005822/0.5653, allocations: 0.6239 MB / 0.5906 GB, free: 2.348 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006846/0.566, allocations: 484.7 kB / 0.5911 GB, free: 1.867 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.725e-05/0.5661, allocations: 307.8 kB / 0.5914 GB, free: 1.566 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00141/0.5675, allocations: 0.8093 MB / 0.5922 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001949/0.5694, allocations: 1.658 MB / 0.5938 GB, free: 14.73 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003548/0.573, allocations: 2.603 MB / 0.5964 GB, free: 11.81 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.839e-05/0.573, allocations: 8 kB / 0.5964 GB, free: 11.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006959/0.58, allocations: 3.047 MB / 0.5993 GB, free: 8.766 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.959e-05/0.5801, allocations: 19.98 kB / 0.5994 GB, free: 8.746 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-05/0.5801, allocations: 28 kB / 0.5994 GB, free: 8.719 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003389/0.5835, allocations: 0.509 MB / 0.5999 GB, free: 8.207 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00385/0.5874, allocations: 0.7997 MB / 0.6007 GB, free: 7.414 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008945/0.5964, allocations: 8.045 MB / 0.6085 GB, free: 14.79 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001986/0.5984, allocations: 87.91 kB / 0.6086 GB, free: 14.71 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004748/0.5989, allocations: 142.6 kB / 0.6087 GB, free: 14.57 MB / 462.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.00115/0.6, allocations: 452.9 kB / 0.6092 GB, free: 14.12 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004933/0.6006, allocations: 165.9 kB / 0.6093 GB, free: 13.95 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007324/0.6079, allocations: 2.587 MB / 0.6119 GB, free: 11.42 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.331e-05/0.608, allocations: 20.14 kB / 0.6119 GB, free: 11.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.608, allocations: 0 / 0.6119 GB, free: 11.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.163e-05/0.608, allocations: 15.94 kB / 0.6119 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01149/0.6195, allocations: 4.778 MB / 0.6166 GB, free: 6.395 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.245e-05/0.6196, allocations: 12 kB / 0.6166 GB, free: 6.383 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001779/0.6214, allocations: 414.1 kB / 0.617 GB, free: 5.98 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003521/0.6249, allocations: 0.5436 MB / 0.6175 GB, free: 5.43 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003361/0.6253, allocations: 86.61 kB / 0.6176 GB, free: 5.348 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008701/0.634, allocations: 7.841 MB / 0.6252 GB, free: 12.91 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.454e-05/0.634, allocations: 15.94 kB / 0.6252 GB, free: 12.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007339/0.6414, allocations: 3.457 MB / 0.6286 GB, free: 9.289 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005053/0.6419, allocations: 242.8 kB / 0.6289 GB, free: 9.031 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003573/0.6423, allocations: 59.98 kB / 0.6289 GB, free: 8.973 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00115/0.6435, allocations: 46.69 kB / 0.629 GB, free: 8.93 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003237/0.6438, allocations: 194 kB / 0.6291 GB, free: 8.746 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001912/0.644, allocations: 95.97 kB / 0.6292 GB, free: 8.652 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001244/0.6452, allocations: 0.8889 MB / 0.6301 GB, free: 7.762 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6453, allocations: 3.938 kB / 0.6301 GB, free: 7.758 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003839/0.6491, allocations: 1.198 MB / 0.6313 GB, free: 6.559 MB / 478.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.01089/0.66, allocations: 5.207 MB / 0.6364 GB, free: 1.207 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005649/0.6657, allocations: 2.486 MB / 0.6388 GB, free: 14.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-05/0.6657, allocations: 4 kB / 0.6388 GB, free: 14.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002352/0.6681, allocations: 1.423 MB / 0.6402 GB, free: 13.22 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002307/0.6704, allocations: 349.6 kB / 0.6405 GB, free: 12.91 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03298/0.7034, allocations: 16.87 MB / 0.657 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001393/0.7049, allocations: 1.432 MB / 0.6584 GB, free: 9.23 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001983/0.7069, allocations: 459.6 kB / 0.6588 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001568/0.7085, allocations: 0.9673 MB / 0.6598 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of SimCode: time 1.142e-06/0.7085, allocations: 3.938 kB / 0.6598 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3248/1.033, allocations: 57.69 MB / 0.7161 GB, free: 185.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.9/18.93, allocations: 8.922 kB / 0.7161 GB, free: 185.2 MB / 0.545 GB (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)