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.001123/0.001123, allocations: 108 kB / 15.6 MB, free: 132 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.001101/0.001101, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.146/1.146, allocations: 222.9 MB / 240.2 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1609/0.1609, allocations: 15.32 MB / 305.7 MB, free: 15.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 67.91 kB / 370.4 MB, free: 3.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07874/0.07987, allocations: 53.61 MB / 424 MB, free: 14.22 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.2583/0.3382, allocations: 29.67 MB / 453.7 MB, free: 38.98 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01861/0.3568, allocations: 24.88 MB / 478.6 MB, free: 26.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001014/0.3579, allocations: 25.5 kB / 478.6 MB, free: 26.56 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001284/0.3592, allocations: 0.5984 MB / 479.2 MB, free: 26.22 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003689/0.3629, allocations: 1.862 MB / 481.1 MB, free: 25.07 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006286/0.3692, allocations: 3.423 MB / 484.5 MB, free: 23.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002152/0.3713, allocations: 2.687 MB / 487.2 MB, free: 21.71 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001616/0.3729, allocations: 1.762 MB / 489 MB, free: 20.89 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001282/0.3742, allocations: 1.245 MB / 490.2 MB, free: 20.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00121/0.3755, allocations: 1.419 MB / 491.6 MB, free: 19.76 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003186/0.3758, allocations: 261.6 kB / 491.9 MB, free: 19.76 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005921/0.3817, allocations: 2.693 MB / 494.6 MB, free: 19.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003691/0.3821, allocations: 0.6057 MB / 495.2 MB, free: 18.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007951/0.3829, allocations: 1.275 MB / 496.4 MB, free: 17.95 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005858/0.3888, allocations: 5.467 MB / 0.4902 GB, free: 15.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3888, allocations: 1.125 kB / 0.4902 GB, free: 15.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3888, allocations: 3.938 kB / 0.4902 GB, free: 15.54 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.104e-05/0.3888, allocations: 0 / 0.4902 GB, free: 15.54 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.004136/0.393, allocations: 2.969 MB / 0.4931 GB, free: 13.21 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.069e-05/0.393, allocations: 8.031 kB / 0.4931 GB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002645/0.3933, allocations: 311.7 kB / 0.4934 GB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001595/0.3949, allocations: 0.4973 MB / 0.4938 GB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001554/0.3964, allocations: 1.238 MB / 0.4951 GB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.3966, allocations: 220.5 kB / 0.4953 GB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002456/0.3968, allocations: 221.5 kB / 0.4955 GB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003026/0.3998, allocations: 2.683 MB / 0.4981 GB, free: 8.734 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.356e-05/0.3999, allocations: 0 / 0.4981 GB, free: 8.734 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001789/0.4001, allocations: 92 kB / 0.4982 GB, free: 8.645 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.308e-05/0.4001, allocations: 52 kB / 0.4982 GB, free: 8.594 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003506/0.4036, allocations: 3.159 MB / 0.5013 GB, free: 5.879 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.009577/0.4132, allocations: 9.293 MB / 0.5104 GB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002149/0.4154, allocations: 1.845 MB / 0.5122 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001125/0.4165, allocations: 0.9038 MB / 0.5131 GB, free: 9.855 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008646/0.4251, allocations: 7.427 MB / 0.5203 GB, free: 1.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.4252, allocations: 51.56 kB / 0.5204 GB, free: 1.621 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006698/0.4259, allocations: 206.2 kB / 0.5206 GB, free: 1.418 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 3.216e-06/0.4259, allocations: 0 / 0.5206 GB, free: 1.418 MB / 382.1 MB Notification: Performance of matching and sorting (n=161): time 0.03051/0.4564, allocations: 9.487 MB / 0.5298 GB, free: 7.805 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.119e-05/0.4565, allocations: 124.1 kB / 0.53 GB, free: 7.656 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001319/0.4578, allocations: 1.345 MB / 0.5313 GB, free: 6.293 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.76e-05/0.4579, allocations: 57.7 kB / 0.5313 GB, free: 6.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005495/0.4585, allocations: 1.046 MB / 0.5324 GB, free: 5.168 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003683/0.4588, allocations: 0.5624 MB / 0.5329 GB, free: 4.598 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005716/0.4594, allocations: 468.4 kB / 0.5333 GB, free: 4.133 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.845e-05/0.4595, allocations: 305.1 kB / 0.5336 GB, free: 3.832 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001209/0.4607, allocations: 0.8519 MB / 0.5345 GB, free: 2.977 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001716/0.4624, allocations: 1.712 MB / 0.5361 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003073/0.4655, allocations: 2.689 MB / 0.5388 GB, free: 13.78 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/0.4655, allocations: 12 kB / 0.5388 GB, free: 13.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.007354/0.4729, allocations: 3.479 MB / 0.5422 GB, free: 10.26 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.68e-05/0.4729, allocations: 19.94 kB / 0.5422 GB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.742e-05/0.473, allocations: 28 kB / 0.5422 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004675/0.4777, allocations: 1.168 MB / 0.5434 GB, free: 9.031 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001474/0.4791, allocations: 0.5148 MB / 0.5439 GB, free: 8.516 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00846/0.4876, allocations: 7.621 MB / 0.5513 GB, free: 460 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001438/0.4891, allocations: 103.8 kB / 0.5514 GB, free: 356 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000186/0.4893, allocations: 144 kB / 0.5515 GB, free: 212 kB / 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.0007137/0.49, allocations: 446.6 kB / 0.552 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002891/0.4903, allocations: 162 kB / 0.5521 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007086/0.4974, allocations: 2.848 MB / 0.5549 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.297e-05/0.4974, allocations: 16 kB / 0.5549 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.4974, allocations: 4 kB / 0.5549 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.414e-05/0.4974, allocations: 7.969 kB / 0.5549 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009474/0.5069, allocations: 4.866 MB / 0.5597 GB, free: 7.727 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.635e-06/0.5069, allocations: 4 kB / 0.5597 GB, free: 7.723 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009535/0.5079, allocations: 255.9 kB / 0.5599 GB, free: 7.473 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004328/0.5122, allocations: 1.042 MB / 0.561 GB, free: 6.414 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001214/0.5124, allocations: 63.95 kB / 0.561 GB, free: 6.352 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007236/0.5196, allocations: 6.932 MB / 0.5678 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.5196, allocations: 0 / 0.5678 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007567/0.5272, allocations: 3.671 MB / 0.5714 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003643/0.5276, allocations: 211.1 kB / 0.5716 GB, free: 11.03 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002554/0.5278, allocations: 35.98 kB / 0.5716 GB, free: 10.99 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009364/0.5288, allocations: 43.94 kB / 0.5716 GB, free: 10.95 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002806/0.5291, allocations: 145.1 kB / 0.5718 GB, free: 10.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000124/0.5292, allocations: 75.95 kB / 0.5719 GB, free: 10.73 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001021/0.5302, allocations: 0.8803 MB / 0.5727 GB, free: 9.852 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5302, allocations: 0 / 0.5727 GB, free: 9.852 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003025/0.5333, allocations: 1.097 MB / 0.5738 GB, free: 8.754 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.009771/0.543, allocations: 5.252 MB / 0.5789 GB, free: 3.426 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005635/0.5487, allocations: 2.989 MB / 0.5818 GB, free: 392 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.5487, allocations: 0 / 0.5818 GB, free: 392 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002145/0.5509, allocations: 1.47 MB / 0.5833 GB, free: 14.85 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001318/0.5522, allocations: 290 kB / 0.5835 GB, free: 14.57 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1549/0.7071, allocations: 18.22 MB / 0.6013 GB, free: 130.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005847/0.7077, allocations: 1.4 MB / 0.6027 GB, free: 130.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001302/0.709, allocations: 382.8 kB / 0.6031 GB, free: 130.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000813/0.7099, allocations: 0.8836 MB / 0.6039 GB, free: 130.1 MB / 462.1 MB Notification: Performance of SimCode: time 3.91e-07/0.7099, allocations: 0 / 0.6039 GB, free: 130.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8321/1.542, allocations: 56.26 MB / 0.6589 GB, free: 105 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/13.89, allocations: 3.938 kB / 0.6589 GB, free: 105 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)