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: 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.001557/0.001557, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.001249/0.001249, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.379/1.379, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09931/0.09931, allocations: 15.31 MB / 306.5 MB, free: 15.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 62.42 kB / 371.7 MB, free: 51.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.13, allocations: 53.61 MB / 425.4 MB, free: 13.47 MB / 302.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.05559/0.1857, allocations: 29.43 MB / 454.8 MB, free: 144 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03466/0.2203, allocations: 24.89 MB / 479.7 MB, free: 7.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002611/0.223, allocations: 23.88 kB / 479.7 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002183/0.2252, allocations: 0.6125 MB / 480.3 MB, free: 6.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006882/0.2321, allocations: 1.866 MB / 482.2 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01099/0.2431, allocations: 3.409 MB / 485.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005416/0.2486, allocations: 2.699 MB / 488.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002822/0.2514, allocations: 1.765 MB / 490 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002289/0.2537, allocations: 1.247 MB / 491.3 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002428/0.2562, allocations: 1.417 MB / 492.7 MB, free: 10.01 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004366/0.2566, allocations: 268 kB / 493 MB, free: 9.746 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01237/0.269, allocations: 2.691 MB / 495.7 MB, free: 7.051 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001282/0.2703, allocations: 0.6037 MB / 496.3 MB, free: 6.445 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002315/0.2727, allocations: 1.268 MB / 497.5 MB, free: 5.172 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01737/0.29, allocations: 5.505 MB / 0.4912 GB, free: 15.64 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.094e-05/0.2901, allocations: 0 / 0.4912 GB, free: 15.64 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2901, allocations: 3.938 kB / 0.4913 GB, free: 15.64 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.869e-05/0.2902, allocations: 0 / 0.4913 GB, free: 15.64 MB / 382.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.005937/0.2961, allocations: 2.967 MB / 0.4941 GB, free: 12.61 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.2962, allocations: 12.03 kB / 0.4942 GB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002034/0.2982, allocations: 0.4973 MB / 0.4946 GB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002417/0.3006, allocations: 1.283 MB / 0.4959 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001994/0.3009, allocations: 224 kB / 0.4961 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003312/0.3012, allocations: 215.9 kB / 0.4963 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0044/0.3056, allocations: 2.689 MB / 0.4989 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.795e-05/0.3057, allocations: 0 / 0.4989 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000213/0.3059, allocations: 88 kB / 0.499 GB, free: 7.441 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.122e-05/0.3059, allocations: 52 kB / 0.4991 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005038/0.311, allocations: 3.16 MB / 0.5022 GB, free: 4.227 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.2675/0.5785, allocations: 9.212 MB / 0.5112 GB, free: 72.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002556/0.5811, allocations: 1.841 MB / 0.513 GB, free: 72.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001259/0.5824, allocations: 0.9012 MB / 0.5138 GB, free: 71.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01099/0.5934, allocations: 7.443 MB / 0.5211 GB, free: 66.24 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.498e-05/0.5934, allocations: 47.81 kB / 0.5212 GB, free: 66.19 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009862/0.5944, allocations: 209.8 kB / 0.5214 GB, free: 66.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 3.506e-06/0.5944, allocations: 0 / 0.5214 GB, free: 66.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=161): time 0.03541/0.6299, allocations: 9.479 MB / 0.5306 GB, free: 62.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.17e-05/0.63, allocations: 129.3 kB / 0.5307 GB, free: 61.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00146/0.6314, allocations: 1.339 MB / 0.532 GB, free: 61.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001974/0.6316, allocations: 56.23 kB / 0.5321 GB, free: 61.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004644/0.6321, allocations: 1.047 MB / 0.5331 GB, free: 60.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003661/0.6325, allocations: 0.5644 MB / 0.5337 GB, free: 59.67 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005836/0.6331, allocations: 469.7 kB / 0.5341 GB, free: 59.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.401e-05/0.6331, allocations: 302.6 kB / 0.5344 GB, free: 59.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001169/0.6343, allocations: 0.8484 MB / 0.5352 GB, free: 58.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001543/0.6359, allocations: 1.708 MB / 0.5369 GB, free: 57.1 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002813/0.6387, allocations: 2.695 MB / 0.5395 GB, free: 55.01 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.645e-05/0.6387, allocations: 11.19 kB / 0.5395 GB, free: 55.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.007635/0.6464, allocations: 3.474 MB / 0.5429 GB, free: 51.91 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.853e-05/0.6464, allocations: 16 kB / 0.543 GB, free: 51.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.674e-05/0.6465, allocations: 28.5 kB / 0.543 GB, free: 51.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004815/0.6513, allocations: 1.169 MB / 0.5441 GB, free: 50.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001772/0.6531, allocations: 0.5137 MB / 0.5446 GB, free: 50.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008266/0.6614, allocations: 7.62 MB / 0.5521 GB, free: 42.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002415/0.6638, allocations: 105 kB / 0.5522 GB, free: 42.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002577/0.6641, allocations: 144 kB / 0.5523 GB, free: 41.95 MB / 382.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.0009459/0.6651, allocations: 448.9 kB / 0.5527 GB, free: 41.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003907/0.6655, allocations: 160.6 kB / 0.5529 GB, free: 41.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007175/0.6726, allocations: 2.841 MB / 0.5557 GB, free: 38.56 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.506e-05/0.6727, allocations: 23.94 kB / 0.5557 GB, free: 38.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/0.6727, allocations: 0 / 0.5557 GB, free: 38.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.784e-05/0.6728, allocations: 18.56 kB / 0.5557 GB, free: 38.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01102/0.6838, allocations: 4.865 MB / 0.5604 GB, free: 33.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/0.6839, allocations: 2.688 kB / 0.5604 GB, free: 33.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/0.6849, allocations: 259.6 kB / 0.5607 GB, free: 33.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004377/0.6893, allocations: 1.034 MB / 0.5617 GB, free: 32.33 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001878/0.6895, allocations: 63.89 kB / 0.5618 GB, free: 32.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006824/0.6963, allocations: 6.914 MB / 0.5685 GB, free: 24.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.6963, allocations: 6.625 kB / 0.5685 GB, free: 24.94 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007552/0.7039, allocations: 3.673 MB / 0.5721 GB, free: 21.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005013/0.7044, allocations: 219 kB / 0.5723 GB, free: 21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002203/0.7047, allocations: 28 kB / 0.5723 GB, free: 20.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009919/0.7057, allocations: 46.67 kB / 0.5724 GB, free: 20.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003344/0.706, allocations: 153 kB / 0.5725 GB, free: 20.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001344/0.7061, allocations: 71.95 kB / 0.5726 GB, free: 20.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009117/0.7071, allocations: 0.8829 MB / 0.5735 GB, free: 19.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.7071, allocations: 0 / 0.5735 GB, free: 19.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003384/0.7105, allocations: 1.1 MB / 0.5745 GB, free: 18.83 MB / 382.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.001943/0.7124, allocations: 1.123 MB / 0.5756 GB, free: 18.01 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004457/0.7169, allocations: 2.779 MB / 0.5784 GB, free: 15.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.7169, allocations: 0 / 0.5784 GB, free: 15.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002133/0.719, allocations: 1.477 MB / 0.5798 GB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001602/0.7207, allocations: 277.8 kB / 0.5801 GB, free: 13.42 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005535/0.7262, allocations: 3.625 MB / 0.5836 GB, free: 9.867 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007191/0.727, allocations: 1.399 MB / 0.585 GB, free: 8.461 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001279/0.7282, allocations: 389.2 kB / 0.5853 GB, free: 8.195 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004552/0.7287, allocations: 239.2 kB / 0.5856 GB, free: 7.969 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.7287, allocations: 0 / 0.5856 GB, free: 7.969 MB / 382.1 MB Notification: Performance of Templates: time 0.05982/0.7885, allocations: 41.18 MB / 0.6258 GB, free: 15.39 MB / 430.1 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.makefile (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 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1)