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-master/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-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: translateModel(Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction") translateModel(Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 99.78 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.001622/0.001622, allocations: 177.3 kB / 15.95 MB, free: 216 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.403/1.403, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.219/0.219, allocations: 15.26 MB / 306.3 MB, free: 15.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003475/0.0003478, allocations: 8 kB / 371.4 MB, free: 4.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.3033, allocations: 54.62 MB / 426 MB, free: 39.89 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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-master/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.007718/0.311, allocations: 9.267 MB / 435.2 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01888/0.3299, allocations: 21.15 MB / 456.4 MB, free: 21.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001645/0.3316, allocations: 48.28 kB / 456.4 MB, free: 21.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001433/0.3331, allocations: 0.5542 MB / 457 MB, free: 21.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00465/0.3377, allocations: 1.978 MB / 459 MB, free: 19.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00762/0.3454, allocations: 3.049 MB / 462 MB, free: 17.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002971/0.3483, allocations: 1.799 MB / 463.8 MB, free: 16.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001359/0.3497, allocations: 1.354 MB / 465.2 MB, free: 16.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001105/0.3508, allocations: 0.948 MB / 466.1 MB, free: 16.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001319/0.3522, allocations: 1.213 MB / 467.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003036/0.3525, allocations: 137.2 kB / 467.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01006/0.3625, allocations: 2.947 MB / 470.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007917/0.3634, allocations: 475.3 kB / 470.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008763/0.3643, allocations: 433.5 kB / 471.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01066/0.3749, allocations: 3.375 MB / 474.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.375, allocations: 0 / 474.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.238e-06/0.375, allocations: 0 / 474.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002364/0.3753, allocations: 1.469 kB / 474.7 MB, free: 13.46 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.01085/0.3861, allocations: 2.489 MB / 477.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.761e-05/0.3862, allocations: 9.031 kB / 477.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003282/0.3895, allocations: 0.5018 MB / 477.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003533/0.3931, allocations: 1.178 MB / 478.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002299/0.3933, allocations: 224.7 kB / 479.1 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005191/0.3939, allocations: 218.7 kB / 479.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004923/0.3988, allocations: 2.66 MB / 482 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.129e-05/0.3989, allocations: 4.906 kB / 482 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002169/0.3991, allocations: 86.91 kB / 482 MB, free: 9.711 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.698e-05/0.3991, allocations: 53.47 kB / 482.1 MB, free: 9.711 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005465/0.4046, allocations: 3.147 MB / 485.2 MB, free: 8.75 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.01332/0.418, allocations: 9.213 MB / 494.5 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002218/0.4202, allocations: 1.829 MB / 496.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01086/0.4311, allocations: 7.298 MB / 0.4918 GB, free: 7.121 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.116e-05/0.4312, allocations: 51.45 kB / 0.4918 GB, free: 7.059 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00117/0.4323, allocations: 206.2 kB / 0.492 GB, free: 6.855 MB / 366.1 MB Notification: Performance of pre-optimization done (n=113): time 4.488e-06/0.4324, allocations: 0 / 0.492 GB, free: 6.855 MB / 366.1 MB Notification: Performance of matching and sorting (n=161): time 0.0382/0.4706, allocations: 9.502 MB / 0.5013 GB, free: 13.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.515e-05/0.4707, allocations: 128.2 kB / 0.5014 GB, free: 13.08 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002013/0.4727, allocations: 1.329 MB / 0.5027 GB, free: 11.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003363/0.4731, allocations: 57.64 kB / 0.5028 GB, free: 11.67 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007557/0.4739, allocations: 1.049 MB / 0.5038 GB, free: 10.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007353/0.4746, allocations: 0.5624 MB / 0.5044 GB, free: 10.04 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002019/0.4748, allocations: 44 kB / 0.5044 GB, free: 9.992 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002186/0.475, allocations: 394.8 kB / 0.5048 GB, free: 9.602 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001575/0.4766, allocations: 0.8402 MB / 0.5056 GB, free: 8.758 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00208/0.4787, allocations: 1.693 MB / 0.5072 GB, free: 6.664 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001922/0.4806, allocations: 1.083 MB / 0.5083 GB, free: 5.578 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.129e-05/0.4807, allocations: 11.94 kB / 0.5083 GB, free: 5.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.00905/0.4897, allocations: 3.468 MB / 0.5117 GB, free: 2.074 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.881e-05/0.4898, allocations: 20 kB / 0.5117 GB, free: 2.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.405e-05/0.4899, allocations: 28 kB / 0.5117 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005697/0.4956, allocations: 1.184 MB / 0.5129 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002195/0.4978, allocations: 0.507 MB / 0.5134 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01177/0.5096, allocations: 7.102 MB / 0.5203 GB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002749/0.5124, allocations: 139.6 kB / 0.5205 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006355/0.5131, allocations: 140 kB / 0.5206 GB, free: 8.516 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.001628/0.5147, allocations: 456.9 kB / 0.521 GB, free: 8.059 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006586/0.5154, allocations: 158 kB / 0.5212 GB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009199/0.5246, allocations: 2.858 MB / 0.524 GB, free: 5.039 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.125e-05/0.5247, allocations: 16 kB / 0.524 GB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.208e-05/0.5247, allocations: 7.938 kB / 0.524 GB, free: 5.016 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.595e-05/0.5248, allocations: 7.969 kB / 0.524 GB, free: 5.008 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01324/0.538, allocations: 4.846 MB / 0.5287 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.121e-05/0.5381, allocations: 4 kB / 0.5287 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001693/0.5398, allocations: 259.6 kB / 0.529 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005188/0.545, allocations: 1.051 MB / 0.53 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000323/0.5454, allocations: 63.95 kB / 0.5301 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009059/0.5544, allocations: 6.482 MB / 0.5364 GB, free: 7.766 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.563e-06/0.5545, allocations: 7.938 kB / 0.5364 GB, free: 7.758 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01026/0.5648, allocations: 3.805 MB / 0.5401 GB, free: 3.812 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007441/0.5656, allocations: 223.1 kB / 0.5403 GB, free: 3.574 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005552/0.5661, allocations: 36 kB / 0.5404 GB, free: 3.539 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001611/0.5678, allocations: 67.88 kB / 0.5404 GB, free: 3.473 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00043/0.5682, allocations: 157 kB / 0.5406 GB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002229/0.5684, allocations: 71.95 kB / 0.5407 GB, free: 3.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001378/0.5698, allocations: 0.8725 MB / 0.5415 GB, free: 2.375 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5698, allocations: 0 / 0.5415 GB, free: 2.375 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004904/0.5748, allocations: 1.074 MB / 0.5426 GB, free: 1.301 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.00325/0.578, allocations: 1.1 MB / 0.5436 GB, free: 204 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006116/0.5842, allocations: 2.748 MB / 0.5463 GB, free: 13.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.5842, allocations: 0.9375 kB / 0.5463 GB, free: 13.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002916/0.5871, allocations: 1.465 MB / 0.5478 GB, free: 11.87 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001831/0.589, allocations: 244.6 kB / 0.548 GB, free: 11.63 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008094/0.5971, allocations: 4.468 MB / 0.5524 GB, free: 7.109 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001311/0.5985, allocations: 1.446 MB / 0.5538 GB, free: 5.629 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001981/0.6005, allocations: 392.1 kB / 0.5541 GB, free: 5.266 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000633/0.6011, allocations: 239.3 kB / 0.5544 GB, free: 5.031 MB / 430.1 MB Notification: Performance of SimCode: time 8.22e-07/0.6011, allocations: 3.938 kB / 0.5544 GB, free: 5.027 MB / 430.1 MB Notification: Performance of Templates: time 0.2582/0.8593, allocations: 37.9 MB / 0.5914 GB, free: 136.7 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.makefile Environment - environmentSimulation: (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 & ./Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) Environment - environmentSimulation: