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.001832/0.001833, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002233/0.002233, allocations: 194.3 kB / 16.53 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 2.236/2.236, allocations: 222.9 MB / 240.2 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.3381/0.3381, allocations: 15.32 MB / 305.7 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 71.89 kB / 370.4 MB, free: 3.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1291, allocations: 53.61 MB / 424 MB, free: 14.18 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.9143/1.043, allocations: 29.75 MB / 453.8 MB, free: 38.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05732/1.101, allocations: 28.7 MB / 482.5 MB, free: 23.6 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005102/1.106, allocations: 25.19 kB / 482.5 MB, free: 23.59 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005458/1.112, allocations: 0.6524 MB / 483.2 MB, free: 23.22 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01845/1.13, allocations: 2.172 MB / 485.3 MB, free: 21.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02727/1.157, allocations: 3.857 MB / 489.2 MB, free: 19.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01343/1.171, allocations: 2.832 MB / 492 MB, free: 18.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004879/1.176, allocations: 1.676 MB / 493.7 MB, free: 17.44 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005496/1.182, allocations: 1.317 MB / 495 MB, free: 16.92 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006577/1.188, allocations: 1.487 MB / 496.5 MB, free: 16.28 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002248/1.19, allocations: 260.9 kB / 496.8 MB, free: 16.28 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03019/1.221, allocations: 3.105 MB / 499.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003596/1.224, allocations: 0.6076 MB / 0.4887 GB, free: 15.11 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00616/1.231, allocations: 1.298 MB / 0.49 GB, free: 14.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03824/1.269, allocations: 5.965 MB / 0.4958 GB, free: 10.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.638e-05/1.269, allocations: 0.6562 kB / 0.4958 GB, free: 10.45 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.479e-06/1.269, allocations: 0 / 0.4958 GB, free: 10.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001834/1.269, allocations: 4 kB / 0.4958 GB, free: 10.44 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.01603/1.285, allocations: 3.085 MB / 0.4989 GB, free: 7.609 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001067/1.286, allocations: 8.031 kB / 0.4989 GB, free: 7.602 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001095/1.287, allocations: 305 kB / 0.4992 GB, free: 7.344 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004522/1.291, allocations: 0.5453 MB / 0.4997 GB, free: 6.883 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004962/1.296, allocations: 1.26 MB / 0.5009 GB, free: 5.805 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003003/1.297, allocations: 229.2 kB / 0.5011 GB, free: 5.566 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007152/1.297, allocations: 224.6 kB / 0.5013 GB, free: 5.348 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008239/1.305, allocations: 2.665 MB / 0.504 GB, free: 3.105 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.312e-05/1.306, allocations: 3.938 kB / 0.504 GB, free: 3.102 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003207/1.306, allocations: 92 kB / 0.504 GB, free: 3.012 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.876e-05/1.306, allocations: 56 kB / 0.5041 GB, free: 2.957 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008701/1.315, allocations: 3.314 MB / 0.5073 GB, free: 108 kB / 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.03815/1.353, allocations: 8.692 MB / 0.5158 GB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006887/1.36, allocations: 2.002 MB / 0.5178 GB, free: 4.984 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003635/1.364, allocations: 0.9251 MB / 0.5187 GB, free: 4.051 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02867/1.392, allocations: 7.889 MB / 0.5264 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001063/1.393, allocations: 47.86 kB / 0.5264 GB, free: 11.25 MB / 398.1 MB Notification: Performance of pre-optimization done (n=128): time 1.13e-05/1.393, allocations: 0 / 0.5264 GB, free: 11.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=181): time 0.06109/1.454, allocations: 8.217 MB / 0.5345 GB, free: 2.945 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001339/1.454, allocations: 99.05 kB / 0.5345 GB, free: 2.832 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003456/1.458, allocations: 1.354 MB / 0.5359 GB, free: 1.461 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006566/1.458, allocations: 57.7 kB / 0.5359 GB, free: 1.398 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001681/1.46, allocations: 1.05 MB / 0.537 GB, free: 340 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001595/1.462, allocations: 0.62 MB / 0.5376 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001256/1.463, allocations: 488.7 kB / 0.538 GB, free: 15.22 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001906/1.463, allocations: 301.1 kB / 0.5383 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002533/1.466, allocations: 0.8132 MB / 0.5391 GB, free: 14.11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004034/1.47, allocations: 1.654 MB / 0.5407 GB, free: 12.06 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007467/1.477, allocations: 2.606 MB / 0.5433 GB, free: 9.078 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-05/1.477, allocations: 12 kB / 0.5433 GB, free: 9.066 MB / 414.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.01387/1.491, allocations: 3.034 MB / 0.5462 GB, free: 6.012 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.815e-05/1.491, allocations: 22.19 kB / 0.5463 GB, free: 5.992 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001014/1.491, allocations: 24 kB / 0.5463 GB, free: 5.969 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005145/1.497, allocations: 0.5264 MB / 0.5468 GB, free: 5.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007081/1.504, allocations: 0.7997 MB / 0.5476 GB, free: 4.629 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02108/1.525, allocations: 8.039 MB / 0.5554 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004266/1.529, allocations: 95.97 kB / 0.5555 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005062/1.534, allocations: 151.9 kB / 0.5557 GB, free: 11.73 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.003468/1.538, allocations: 450.6 kB / 0.5561 GB, free: 11.29 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001293/1.539, allocations: 169.9 kB / 0.5563 GB, free: 11.12 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01668/1.556, allocations: 2.578 MB / 0.5588 GB, free: 8.504 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-05/1.556, allocations: 20 kB / 0.5588 GB, free: 8.484 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.066e-05/1.556, allocations: 4 kB / 0.5588 GB, free: 8.48 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-05/1.556, allocations: 11.95 kB / 0.5588 GB, free: 8.469 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02432/1.581, allocations: 4.759 MB / 0.5635 GB, free: 3.48 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.722e-05/1.581, allocations: 12 kB / 0.5635 GB, free: 3.469 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003037/1.584, allocations: 415.4 kB / 0.5639 GB, free: 3.062 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005429/1.589, allocations: 0.5549 MB / 0.5644 GB, free: 2.488 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005256/1.59, allocations: 79.97 kB / 0.5645 GB, free: 2.41 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01897/1.609, allocations: 7.84 MB / 0.5721 GB, free: 9.945 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.161e-05/1.609, allocations: 19.88 kB / 0.5722 GB, free: 9.926 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0137/1.623, allocations: 3.462 MB / 0.5755 GB, free: 6.277 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001586/1.624, allocations: 246.9 kB / 0.5758 GB, free: 6.016 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001097/1.625, allocations: 59.92 kB / 0.5758 GB, free: 5.957 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002734/1.628, allocations: 55.94 kB / 0.5759 GB, free: 5.902 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006837/1.629, allocations: 196.7 kB / 0.5761 GB, free: 5.711 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003708/1.629, allocations: 87.97 kB / 0.5762 GB, free: 5.625 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002566/1.632, allocations: 0.8967 MB / 0.577 GB, free: 4.727 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.7e-07/1.632, allocations: 0 / 0.577 GB, free: 4.727 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.009464/1.641, allocations: 1.198 MB / 0.5782 GB, free: 3.527 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.02026/1.662, allocations: 5.198 MB / 0.5833 GB, free: 14.13 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01535/1.677, allocations: 2.651 MB / 0.5859 GB, free: 11.46 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.306e-05/1.677, allocations: 8.062 kB / 0.5859 GB, free: 11.45 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00418/1.681, allocations: 1.426 MB / 0.5873 GB, free: 9.977 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003897/1.685, allocations: 351.3 kB / 0.5876 GB, free: 9.637 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5822/2.268, allocations: 18.07 MB / 0.6052 GB, free: 126.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001762/2.269, allocations: 1.43 MB / 0.6066 GB, free: 125.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00409/2.274, allocations: 461.9 kB / 0.6071 GB, free: 125.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002655/2.276, allocations: 0.9665 MB / 0.608 GB, free: 125.5 MB / 462.1 MB Notification: Performance of SimCode: time 2.434e-06/2.276, allocations: 2.25 kB / 0.608 GB, free: 125.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3066/2.583, allocations: 57.01 MB / 0.6637 GB, free: 98.11 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 30.87/33.45, allocations: 12.73 kB / 0.6637 GB, free: 98.11 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.ElectrochemicalCell_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_Chemical_Examples_ElectrochemicalCell.fmu > Chemical_Chemical.Examples.ElectrochemicalCell.pipe 2>&1)