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.0007893/0.0007894, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004638/0.004639, allocations: 169.6 kB / 16.27 MB, free: 6.652 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.261/1.261, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1649/0.1649, allocations: 15.27 MB / 306.7 MB, free: 15.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002971/0.0002972, allocations: 12 kB / 372.2 MB, free: 3.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.256, allocations: 54.62 MB / 426.8 MB, free: 40.38 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019: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.1-master/package.mo:3019:6-3019: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.02381/0.2798, allocations: 30.17 MB / 457 MB, free: 28.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02022/0.3, allocations: 24.61 MB / 481.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001531/0.3016, allocations: 47.62 kB / 481.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00136/0.303, allocations: 0.5326 MB / 482.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004475/0.3075, allocations: 1.667 MB / 483.8 MB, free: 9.211 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007642/0.3151, allocations: 2.994 MB / 486.8 MB, free: 6.723 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002425/0.3176, allocations: 2.599 MB / 489.4 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001321/0.3189, allocations: 1.44 MB / 490.9 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008487/0.3198, allocations: 1.124 MB / 492 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001156/0.3209, allocations: 1.287 MB / 493.3 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001943/0.3211, allocations: 136 kB / 493.4 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007088/0.3282, allocations: 2.591 MB / 496 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004743/0.3287, allocations: 489 kB / 496.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001011/0.3297, allocations: 1.147 MB / 497.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008246/0.338, allocations: 5.096 MB / 0.491 GB, free: 9.328 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.338, allocations: 4.516 kB / 0.491 GB, free: 9.324 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.338, allocations: 0 / 0.491 GB, free: 9.324 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.022e-05/0.3381, allocations: 4 kB / 0.491 GB, free: 9.32 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.004526/0.3426, allocations: 2.485 MB / 0.4934 GB, free: 7.047 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.3427, allocations: 16.03 kB / 0.4934 GB, free: 7.031 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003495/0.343, allocations: 296.2 kB / 0.4937 GB, free: 6.781 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001739/0.3448, allocations: 0.5025 MB / 0.4942 GB, free: 6.352 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001766/0.3465, allocations: 1.218 MB / 0.4954 GB, free: 5.312 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001717/0.3467, allocations: 228.5 kB / 0.4956 GB, free: 5.074 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003272/0.347, allocations: 217.3 kB / 0.4958 GB, free: 4.863 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004141/0.3512, allocations: 2.69 MB / 0.4984 GB, free: 2.121 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.395e-05/0.3512, allocations: 3.938 kB / 0.4984 GB, free: 2.117 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002114/0.3515, allocations: 88 kB / 0.4985 GB, free: 2.031 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.949e-05/0.3515, allocations: 52 kB / 0.4986 GB, free: 1.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004258/0.3558, allocations: 3.16 MB / 0.5016 GB, free: 14.82 MB / 382.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.01123/0.367, allocations: 9.209 MB / 0.5106 GB, free: 5.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00218/0.3692, allocations: 1.845 MB / 0.5124 GB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001186/0.3704, allocations: 0.8999 MB / 0.5133 GB, free: 2.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008769/0.3792, allocations: 7.321 MB / 0.5205 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.675e-05/0.3793, allocations: 47.56 kB / 0.5205 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008038/0.3801, allocations: 206.2 kB / 0.5207 GB, free: 10.08 MB / 398.1 MB Notification: Performance of pre-optimization done (n=113): time 3.607e-06/0.3801, allocations: 0 / 0.5207 GB, free: 10.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=161): time 0.0339/0.414, allocations: 9.561 MB / 0.53 GB, free: 408 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.6e-05/0.4141, allocations: 120.1 kB / 0.5302 GB, free: 260 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001435/0.4155, allocations: 1.341 MB / 0.5315 GB, free: 14.89 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000114/0.4156, allocations: 57.7 kB / 0.5315 GB, free: 14.83 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000573/0.4162, allocations: 1.042 MB / 0.5325 GB, free: 13.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003895/0.4166, allocations: 0.5624 MB / 0.5331 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002334/0.4169, allocations: 190.5 kB / 0.5333 GB, free: 13.01 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.739e-05/0.4169, allocations: 309.1 kB / 0.5336 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001298/0.4182, allocations: 0.848 MB / 0.5344 GB, free: 11.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001763/0.42, allocations: 1.709 MB / 0.5361 GB, free: 9.746 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003199/0.4232, allocations: 2.693 MB / 0.5387 GB, free: 6.656 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.075e-05/0.4232, allocations: 8 kB / 0.5387 GB, free: 6.648 MB / 414.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.007957/0.4312, allocations: 3.491 MB / 0.5421 GB, free: 3.133 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.203e-05/0.4312, allocations: 19.94 kB / 0.5421 GB, free: 3.113 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.634e-05/0.4313, allocations: 28 kB / 0.5422 GB, free: 3.086 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005215/0.4365, allocations: 1.183 MB / 0.5433 GB, free: 1.887 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001563/0.4381, allocations: 0.5109 MB / 0.5438 GB, free: 1.375 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00902/0.4471, allocations: 7.059 MB / 0.5507 GB, free: 9.879 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001709/0.4488, allocations: 131.7 kB / 0.5508 GB, free: 9.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002867/0.4491, allocations: 140 kB / 0.551 GB, free: 9.613 MB / 430.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.0009272/0.4501, allocations: 452.9 kB / 0.5514 GB, free: 9.16 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003284/0.4504, allocations: 161.9 kB / 0.5515 GB, free: 9 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007862/0.4583, allocations: 2.85 MB / 0.5543 GB, free: 6.125 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.39e-05/0.4583, allocations: 16 kB / 0.5543 GB, free: 6.109 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.4583, allocations: 8 kB / 0.5544 GB, free: 6.102 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.687e-05/0.4583, allocations: 11.97 kB / 0.5544 GB, free: 6.09 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01044/0.4688, allocations: 4.866 MB / 0.5591 GB, free: 1.117 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.022e-06/0.4688, allocations: 0 / 0.5591 GB, free: 1.117 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/0.4698, allocations: 263.6 kB / 0.5594 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004886/0.4747, allocations: 1.055 MB / 0.5604 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001418/0.4749, allocations: 63.97 kB / 0.5605 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007501/0.4824, allocations: 6.418 MB / 0.5667 GB, free: 8.887 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.4824, allocations: 7.938 kB / 0.5667 GB, free: 8.879 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008037/0.4904, allocations: 3.678 MB / 0.5703 GB, free: 5.145 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003737/0.4908, allocations: 231 kB / 0.5705 GB, free: 4.898 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002532/0.4911, allocations: 32 kB / 0.5706 GB, free: 4.867 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.4922, allocations: 67.8 kB / 0.5706 GB, free: 4.801 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003035/0.4925, allocations: 153 kB / 0.5708 GB, free: 4.652 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000138/0.4926, allocations: 67.97 kB / 0.5709 GB, free: 4.586 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001072/0.4937, allocations: 0.8881 MB / 0.5717 GB, free: 3.695 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4937, allocations: 0 / 0.5717 GB, free: 3.695 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003305/0.497, allocations: 1.089 MB / 0.5728 GB, free: 2.605 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.01069/0.5077, allocations: 5.253 MB / 0.5779 GB, free: 13.28 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00512/0.5129, allocations: 2.775 MB / 0.5806 GB, free: 10.45 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.5129, allocations: 0 / 0.5806 GB, free: 10.45 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002287/0.5152, allocations: 1.473 MB / 0.5821 GB, free: 8.914 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001852/0.517, allocations: 269.4 kB / 0.5823 GB, free: 8.652 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1898/0.7068, allocations: 19.27 MB / 0.6011 GB, free: 129.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000651/0.7075, allocations: 1.399 MB / 0.6025 GB, free: 128.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001397/0.7089, allocations: 390.2 kB / 0.6029 GB, free: 128.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008505/0.7098, allocations: 0.8739 MB / 0.6037 GB, free: 128.6 MB / 462.1 MB Notification: Performance of SimCode: time 8.72e-07/0.7098, allocations: 2.656 kB / 0.6037 GB, free: 128.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.157/1.867, allocations: 54.26 MB / 0.6567 GB, free: 99.54 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002276/1.867, allocations: 245.2 kB / 0.657 GB, free: 99.28 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.339/5.207, allocations: 0 / 0.657 GB, free: 99.28 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)