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.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.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.001033/0.001033, allocations: 107.4 kB / 15.23 MB, free: 0.6406 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.001143/0.001143, allocations: 192.2 kB / 16.14 MB, free: 6.691 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.238/1.238, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1752/0.1752, allocations: 15.31 MB / 305.3 MB, free: 15.31 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 55.91 kB / 369.8 MB, free: 4.352 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08128/0.08242, allocations: 53.61 MB / 423.4 MB, free: 14.69 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.ClimateChange.ElectrochemicalAcetateProduction): time 0.3025/0.3849, allocations: 30.7 MB / 454.1 MB, free: 38.35 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02045/0.4054, allocations: 24.87 MB / 478.9 MB, free: 26.44 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001674/0.4071, allocations: 53.84 kB / 479 MB, free: 26.41 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001394/0.4085, allocations: 0.5411 MB / 479.5 MB, free: 26.13 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004176/0.4127, allocations: 1.654 MB / 481.2 MB, free: 25.14 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007803/0.4205, allocations: 2.996 MB / 484.2 MB, free: 23.37 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002897/0.4234, allocations: 2.605 MB / 486.8 MB, free: 22.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001494/0.4249, allocations: 1.514 MB / 488.3 MB, free: 21.44 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001328/0.4263, allocations: 1.203 MB / 489.5 MB, free: 21.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001283/0.4275, allocations: 1.397 MB / 490.9 MB, free: 20.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003369/0.4279, allocations: 178.1 kB / 491.1 MB, free: 20.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009032/0.4369, allocations: 2.619 MB / 493.7 MB, free: 19.78 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004021/0.4373, allocations: 0.5211 MB / 494.2 MB, free: 19.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009766/0.4383, allocations: 1.194 MB / 495.4 MB, free: 18.81 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008433/0.4468, allocations: 5.173 MB / 0.4888 GB, free: 16.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.4468, allocations: 0 / 0.4888 GB, free: 16.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.103e-06/0.4468, allocations: 0 / 0.4888 GB, free: 16.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.345e-05/0.4469, allocations: 0 / 0.4888 GB, free: 16.5 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: 548 * Number of variables: 548 Notification: Performance of Generate backend data structure: time 0.004861/0.4517, allocations: 2.974 MB / 0.4918 GB, free: 13.78 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.4518, allocations: 8.031 kB / 0.4918 GB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002906/0.4521, allocations: 303.5 kB / 0.492 GB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001794/0.4539, allocations: 0.5018 MB / 0.4925 GB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001591/0.4555, allocations: 1.241 MB / 0.4937 GB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001185/0.4556, allocations: 225.3 kB / 0.494 GB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002554/0.4559, allocations: 217.4 kB / 0.4942 GB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003519/0.4594, allocations: 2.685 MB / 0.4968 GB, free: 9.297 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.615e-05/0.4594, allocations: 7.938 kB / 0.4968 GB, free: 9.289 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001919/0.4596, allocations: 88 kB / 0.4969 GB, free: 9.203 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.515e-05/0.4597, allocations: 52 kB / 0.4969 GB, free: 9.152 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003909/0.4636, allocations: 3.156 MB / 0.5 GB, free: 6.441 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.01086/0.4744, allocations: 9.267 MB / 0.5091 GB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002276/0.4767, allocations: 1.837 MB / 0.5109 GB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001188/0.4779, allocations: 0.8999 MB / 0.5117 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009386/0.4873, allocations: 7.45 MB / 0.519 GB, free: 2.836 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/0.4874, allocations: 55.55 kB / 0.5191 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000784/0.4882, allocations: 202.3 kB / 0.5193 GB, free: 2.574 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 3.937e-06/0.4882, allocations: 0 / 0.5193 GB, free: 2.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=161): time 0.03494/0.5231, allocations: 9.491 MB / 0.5285 GB, free: 8.965 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.5232, allocations: 120.1 kB / 0.5286 GB, free: 8.82 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001445/0.5247, allocations: 1.345 MB / 0.53 GB, free: 7.457 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001184/0.5248, allocations: 49.7 kB / 0.53 GB, free: 7.402 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005639/0.5254, allocations: 1.049 MB / 0.531 GB, free: 6.336 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004081/0.5258, allocations: 0.5663 MB / 0.5316 GB, free: 5.762 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006172/0.5264, allocations: 472.4 kB / 0.532 GB, free: 5.293 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.762e-05/0.5265, allocations: 305.1 kB / 0.5323 GB, free: 4.992 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/0.5278, allocations: 0.8441 MB / 0.5331 GB, free: 4.145 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001794/0.5296, allocations: 1.709 MB / 0.5348 GB, free: 2.035 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003224/0.5328, allocations: 2.697 MB / 0.5375 GB, free: 14.94 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.108e-05/0.5329, allocations: 8 kB / 0.5375 GB, free: 14.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.008267/0.5411, allocations: 3.471 MB / 0.5408 GB, free: 11.43 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.625e-05/0.5412, allocations: 27.88 kB / 0.5409 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.629e-05/0.5412, allocations: 28.53 kB / 0.5409 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005319/0.5466, allocations: 1.163 MB / 0.542 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001649/0.5482, allocations: 0.5108 MB / 0.5425 GB, free: 9.691 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009042/0.5573, allocations: 7.025 MB / 0.5494 GB, free: 2.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001839/0.5591, allocations: 135.6 kB / 0.5495 GB, free: 2.098 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002348/0.5594, allocations: 140 kB / 0.5497 GB, free: 1.961 MB / 414.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 (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,20), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008236/0.5602, allocations: 457 kB / 0.5501 GB, free: 1.504 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000332/0.5606, allocations: 158 kB / 0.5502 GB, free: 1.348 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007846/0.5684, allocations: 2.845 MB / 0.553 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/0.5684, allocations: 16 kB / 0.553 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.5685, allocations: 4 kB / 0.553 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.615e-05/0.5685, allocations: 7.969 kB / 0.5531 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01105/0.5795, allocations: 4.87 MB / 0.5578 GB, free: 9.469 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.395e-06/0.5796, allocations: 4 kB / 0.5578 GB, free: 9.465 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/0.5806, allocations: 263.6 kB / 0.5581 GB, free: 9.207 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004995/0.5856, allocations: 1.043 MB / 0.5591 GB, free: 8.148 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001708/0.5858, allocations: 63.95 kB / 0.5591 GB, free: 8.086 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007716/0.5935, allocations: 6.393 MB / 0.5654 GB, free: 1.27 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.5936, allocations: 7.938 kB / 0.5654 GB, free: 1.262 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008348/0.6019, allocations: 3.671 MB / 0.569 GB, free: 13.53 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004535/0.6024, allocations: 215.1 kB / 0.5692 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002396/0.6026, allocations: 32 kB / 0.5692 GB, free: 13.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/0.6037, allocations: 75.8 kB / 0.5693 GB, free: 13.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003438/0.604, allocations: 145 kB / 0.5694 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001413/0.6042, allocations: 67.97 kB / 0.5695 GB, free: 12.99 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001071/0.6053, allocations: 0.8842 MB / 0.5704 GB, free: 12.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6053, allocations: 4 kB / 0.5704 GB, free: 12.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003407/0.6087, allocations: 1.085 MB / 0.5714 GB, free: 11.01 MB / 446.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 (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,21), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01042/0.6191, allocations: 5.253 MB / 0.5765 GB, free: 5.688 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00472/0.6239, allocations: 2.76 MB / 0.5792 GB, free: 2.871 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.6239, allocations: 4 kB / 0.5792 GB, free: 2.867 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002313/0.6262, allocations: 1.469 MB / 0.5807 GB, free: 1.336 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001549/0.6278, allocations: 269.1 kB / 0.5809 GB, free: 1.074 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1836/0.8114, allocations: 19.13 MB / 0.5996 GB, free: 130.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006956/0.8121, allocations: 1.404 MB / 0.601 GB, free: 129.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001535/0.8137, allocations: 393.8 kB / 0.6014 GB, free: 129.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009673/0.8146, allocations: 0.8802 MB / 0.6022 GB, free: 129.5 MB / 462.1 MB Notification: Performance of SimCode: time 9.62e-07/0.8146, allocations: 0 / 0.6022 GB, free: 129.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07016/0.8848, allocations: 54.68 MB / 0.6556 GB, free: 106.9 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001595/0.885, allocations: 248.8 kB / 0.6559 GB, free: 106.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.239/4.124, allocations: 0 / 0.6559 GB, free: 106.7 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/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)