Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.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.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_ElectrochemicalAcetateProduction",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.001047/0.001047, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009443/0.0009443, allocations: 177.3 kB / 15.94 MB, free: 228 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.305/1.305, allocations: 223.2 MB / 239.9 MB, free: 5.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1698/0.1698, allocations: 15.26 MB / 306.2 MB, free: 15.77 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000329/0.0003291, allocations: 8 kB / 371.5 MB, free: 3.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2655, allocations: 54.61 MB / 426.1 MB, free: 40.05 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.ClimateChange.ElectrochemicalAcetateProduction): time 0.008473/0.2741, allocations: 9.264 MB / 435.3 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01861/0.2927, allocations: 21.15 MB / 456.5 MB, free: 21.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001961/0.2947, allocations: 44.47 kB / 456.5 MB, free: 21.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00179/0.2965, allocations: 0.5625 MB / 457.1 MB, free: 21.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005927/0.3025, allocations: 1.98 MB / 459.1 MB, free: 19.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00898/0.3115, allocations: 3.041 MB / 462.1 MB, free: 18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00283/0.3143, allocations: 1.804 MB / 463.9 MB, free: 17.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001302/0.3156, allocations: 1.359 MB / 465.3 MB, free: 16.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001038/0.3167, allocations: 0.9487 MB / 466.2 MB, free: 16.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001326/0.318, allocations: 1.216 MB / 467.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002666/0.3183, allocations: 137.4 kB / 467.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009079/0.3274, allocations: 2.946 MB / 470.5 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005437/0.328, allocations: 467.5 kB / 471 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006729/0.3287, allocations: 437.1 kB / 471.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005856/0.3345, allocations: 3.372 MB / 474.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.3345, allocations: 4 kB / 474.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3346, allocations: 0.7188 kB / 474.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.973e-05/0.3346, allocations: 0 / 474.8 MB, free: 13.59 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: 548 * Number of variables: 548 Notification: Performance of Generate backend data structure: time 0.005563/0.3402, allocations: 2.491 MB / 477.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.3403, allocations: 9.844 kB / 477.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00035/0.3406, allocations: 302.2 kB / 477.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001819/0.3424, allocations: 0.5007 MB / 478.1 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001933/0.3444, allocations: 1.187 MB / 479.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001586/0.3445, allocations: 220.1 kB / 479.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003166/0.3449, allocations: 214.2 kB / 479.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004178/0.3491, allocations: 2.663 MB / 482.3 MB, free: 9.711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.913e-05/0.3491, allocations: 2.125 kB / 482.3 MB, free: 9.711 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002098/0.3493, allocations: 87.41 kB / 482.4 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-05/0.3494, allocations: 56.41 kB / 482.5 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005126/0.3545, allocations: 3.139 MB / 485.6 MB, free: 8.688 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.01341/0.368, allocations: 9.22 MB / 494.8 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002126/0.3701, allocations: 1.825 MB / 496.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009785/0.3799, allocations: 7.294 MB / 0.4922 GB, free: 6.785 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/0.38, allocations: 47.52 kB / 0.4922 GB, free: 6.727 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009589/0.381, allocations: 210.2 kB / 0.4924 GB, free: 6.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=113): time 3.006e-06/0.381, allocations: 0 / 0.4924 GB, free: 6.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=161): time 0.03407/0.4151, allocations: 9.502 MB / 0.5017 GB, free: 12.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.823e-05/0.4152, allocations: 120.1 kB / 0.5018 GB, free: 12.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001753/0.4169, allocations: 1.337 MB / 0.5031 GB, free: 11.39 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001861/0.4171, allocations: 49.7 kB / 0.5031 GB, free: 11.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006314/0.4178, allocations: 1.053 MB / 0.5042 GB, free: 10.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000479/0.4183, allocations: 0.5585 MB / 0.5047 GB, free: 9.703 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.4184, allocations: 51.94 kB / 0.5048 GB, free: 9.652 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.4186, allocations: 394.8 kB / 0.5051 GB, free: 9.262 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001368/0.4199, allocations: 0.8363 MB / 0.506 GB, free: 8.422 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001823/0.4218, allocations: 1.697 MB / 0.5076 GB, free: 6.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001615/0.4234, allocations: 1.083 MB / 0.5087 GB, free: 5.234 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.344e-05/0.4234, allocations: 12 kB / 0.5087 GB, free: 5.223 MB / 382.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.008094/0.4315, allocations: 3.468 MB / 0.5121 GB, free: 1.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.578e-05/0.4316, allocations: 16 kB / 0.5121 GB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.001e-05/0.4316, allocations: 32 kB / 0.5121 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005228/0.4369, allocations: 1.183 MB / 0.5133 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001856/0.4387, allocations: 0.511 MB / 0.5138 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009359/0.4481, allocations: 7.105 MB / 0.5207 GB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002343/0.4505, allocations: 139.7 kB / 0.5208 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000281/0.4508, allocations: 144 kB / 0.521 GB, free: 8.164 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (270): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 3} * Non-linear torn systems: 2 {1 20,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001091/0.4519, allocations: 445.5 kB / 0.5214 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003355/0.4522, allocations: 154 kB / 0.5216 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007858/0.4601, allocations: 2.869 MB / 0.5244 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-05/0.4601, allocations: 16 kB / 0.5244 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/0.4601, allocations: 4 kB / 0.5244 GB, free: 4.672 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.961e-05/0.4602, allocations: 7.969 kB / 0.5244 GB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01076/0.4709, allocations: 4.838 MB / 0.5291 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/0.471, allocations: 8.25 kB / 0.5291 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001089/0.4721, allocations: 263.6 kB / 0.5294 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004797/0.4769, allocations: 1.05 MB / 0.5304 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002014/0.4771, allocations: 63.95 kB / 0.5305 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00782/0.4849, allocations: 6.482 MB / 0.5368 GB, free: 7.422 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.448e-06/0.485, allocations: 7.984 kB / 0.5368 GB, free: 7.414 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008319/0.4933, allocations: 3.801 MB / 0.5405 GB, free: 3.473 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005798/0.4939, allocations: 231.1 kB / 0.5407 GB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002565/0.4942, allocations: 36 kB / 0.5408 GB, free: 3.191 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/0.4952, allocations: 63.88 kB / 0.5408 GB, free: 3.129 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003118/0.4956, allocations: 153 kB / 0.541 GB, free: 2.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001589/0.4957, allocations: 71.97 kB / 0.541 GB, free: 2.91 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001115/0.4968, allocations: 0.8725 MB / 0.5419 GB, free: 2.035 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4969, allocations: 4 kB / 0.5419 GB, free: 2.031 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003413/0.5003, allocations: 1.066 MB / 0.5429 GB, free: 0.9648 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,AcAc.logn,CO2.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 (133): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(1,100.0%) 3} * Non-linear torn systems: 2 {1 21,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01093/0.5112, allocations: 6.023 MB / 0.5488 GB, free: 10.84 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004961/0.5162, allocations: 2.76 MB / 0.5515 GB, free: 8.031 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.124e-06/0.5162, allocations: 0 / 0.5515 GB, free: 8.031 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002368/0.5186, allocations: 1.466 MB / 0.5529 GB, free: 6.504 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001681/0.5203, allocations: 246.5 kB / 0.5532 GB, free: 6.266 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01655/0.5369, allocations: 26.18 MB / 0.5787 GB, free: 11.24 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001089/0.538, allocations: 1.446 MB / 0.5801 GB, free: 9.762 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00176/0.5398, allocations: 394.2 kB / 0.5805 GB, free: 9.395 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001112/0.5409, allocations: 0.8741 MB / 0.5814 GB, free: 8.52 MB / 462.1 MB Notification: Performance of SimCode: time 7.21e-07/0.5409, allocations: 0 / 0.5814 GB, free: 8.52 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2684/0.8094, allocations: 53.07 MB / 0.6332 GB, free: 122.4 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001404/0.8096, allocations: 232.5 kB / 0.6334 GB, free: 122.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.07/3.879, allocations: 0 / 0.6334 GB, free: 122.1 MB / 462.1 MB (rm -f Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_ClimateChange_ElectrochemicalAcetateProduction_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_ClimateChange_ElectrochemicalAcetateProduction.fmu > Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) Environment - environmentSimulation: