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.009217/0.009217, allocations: 103.9 kB / 15.73 MB, free: 6.039 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.00214/0.00214, allocations: 193.8 kB / 16.67 MB, free: 5.969 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2379/0.2379, allocations: 15.32 MB / 305.8 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 63.89 kB / 425.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3382/0.3396, allocations: 53.61 MB / 478.8 MB, free: 25.79 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.04191/0.3816, allocations: 29.69 MB / 0.4966 GB, free: 4.973 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02918/0.4108, allocations: 24.87 MB / 0.5209 GB, free: 12 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002029/0.4128, allocations: 23.88 kB / 0.5209 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002298/0.4152, allocations: 0.6126 MB / 0.5215 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006534/0.4217, allocations: 1.878 MB / 0.5233 GB, free: 9.469 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01119/0.4329, allocations: 3.433 MB / 0.5267 GB, free: 6.016 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005368/0.4383, allocations: 2.707 MB / 0.5293 GB, free: 3.297 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002919/0.4413, allocations: 1.769 MB / 0.531 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002044/0.4433, allocations: 1.251 MB / 0.5323 GB, free: 232 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002366/0.4457, allocations: 1.425 MB / 0.5337 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007284/0.4465, allocations: 260 kB / 0.5339 GB, free: 14.54 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009106/0.4556, allocations: 2.691 MB / 0.5365 GB, free: 11.85 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001064/0.4567, allocations: 0.5998 MB / 0.5371 GB, free: 11.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002049/0.4587, allocations: 1.272 MB / 0.5384 GB, free: 9.969 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01185/0.4706, allocations: 5.516 MB / 0.5438 GB, free: 4.434 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.4707, allocations: 0 / 0.5438 GB, free: 4.434 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4707, allocations: 4 kB / 0.5438 GB, free: 4.43 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.051e-05/0.4708, allocations: 0 / 0.5438 GB, free: 4.43 MB / 414.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.005693/0.4765, allocations: 2.97 MB / 0.5467 GB, free: 1.398 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.4765, allocations: 8.031 kB / 0.5467 GB, free: 1.391 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001915/0.4784, allocations: 0.5051 MB / 0.5472 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001985/0.4804, allocations: 1.275 MB / 0.5484 GB, free: 15.55 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001794/0.4806, allocations: 224 kB / 0.5486 GB, free: 15.32 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003168/0.4809, allocations: 219.9 kB / 0.5488 GB, free: 15.11 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003833/0.4848, allocations: 2.685 MB / 0.5514 GB, free: 12.31 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.189e-05/0.4848, allocations: 3.938 kB / 0.5515 GB, free: 12.3 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001965/0.485, allocations: 88 kB / 0.5515 GB, free: 12.22 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.97e-05/0.4851, allocations: 56 kB / 0.5516 GB, free: 12.16 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004803/0.4899, allocations: 3.156 MB / 0.5547 GB, free: 9.008 MB / 430.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.0132/0.5031, allocations: 9.222 MB / 0.5637 GB, free: 15.42 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002495/0.5056, allocations: 1.841 MB / 0.5655 GB, free: 13.49 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001293/0.5069, allocations: 0.9038 MB / 0.5664 GB, free: 12.58 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0101/0.5171, allocations: 7.438 MB / 0.5736 GB, free: 4.398 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.5171, allocations: 55.48 kB / 0.5737 GB, free: 4.332 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008323/0.518, allocations: 214.2 kB / 0.5739 GB, free: 4.121 MB / 446.1 MB Notification: Performance of pre-optimization done (n=113): time 2.725e-06/0.518, allocations: 0 / 0.5739 GB, free: 4.121 MB / 446.1 MB Notification: Performance of matching and sorting (n=161): time 0.03511/0.5531, allocations: 9.487 MB / 0.5831 GB, free: 10.52 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.299e-05/0.5532, allocations: 120.1 kB / 0.5833 GB, free: 10.37 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001623/0.5548, allocations: 1.341 MB / 0.5846 GB, free: 9.012 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001996/0.555, allocations: 49.77 kB / 0.5846 GB, free: 8.957 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006798/0.5557, allocations: 1.053 MB / 0.5856 GB, free: 7.887 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005319/0.5563, allocations: 0.5585 MB / 0.5862 GB, free: 7.32 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006696/0.5569, allocations: 468.4 kB / 0.5866 GB, free: 6.855 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.5571, allocations: 309.1 kB / 0.5869 GB, free: 6.551 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001504/0.5586, allocations: 0.8441 MB / 0.5878 GB, free: 5.703 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002209/0.5608, allocations: 1.709 MB / 0.5894 GB, free: 3.59 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003733/0.5645, allocations: 2.697 MB / 0.5921 GB, free: 0.4961 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.344e-05/0.5646, allocations: 8 kB / 0.5921 GB, free: 500 kB / 462.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.008657/0.5732, allocations: 3.476 MB / 0.5955 GB, free: 12.99 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.461e-05/0.5733, allocations: 23.94 kB / 0.5955 GB, free: 12.96 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.456e-05/0.5734, allocations: 28 kB / 0.5955 GB, free: 12.94 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005357/0.5787, allocations: 1.158 MB / 0.5966 GB, free: 11.77 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002028/0.5808, allocations: 0.507 MB / 0.5971 GB, free: 11.26 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/0.5909, allocations: 7.612 MB / 0.6046 GB, free: 3.191 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002055/0.593, allocations: 103.9 kB / 0.6047 GB, free: 3.09 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002516/0.5932, allocations: 140 kB / 0.6048 GB, free: 2.953 MB / 478.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.0008671/0.5941, allocations: 460.9 kB / 0.6052 GB, free: 2.492 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003553/0.5945, allocations: 157.9 kB / 0.6054 GB, free: 2.336 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2839/0.8784, allocations: 2.846 MB / 0.6082 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.582e-05/0.8785, allocations: 20.27 kB / 0.6082 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.47e-05/0.8785, allocations: 1.969 kB / 0.6082 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.359e-05/0.8786, allocations: 8.703 kB / 0.6082 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01319/0.8918, allocations: 4.859 MB / 0.6129 GB, free: 113.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.205e-05/0.8918, allocations: 3.391 kB / 0.6129 GB, free: 113.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001212/0.893, allocations: 258.8 kB / 0.6132 GB, free: 113.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005107/0.8982, allocations: 1.041 MB / 0.6142 GB, free: 113.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002545/0.8984, allocations: 63.83 kB / 0.6143 GB, free: 113.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007967/0.9064, allocations: 6.909 MB / 0.621 GB, free: 107.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.678e-06/0.9065, allocations: 2.75 kB / 0.621 GB, free: 107.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008505/0.915, allocations: 3.681 MB / 0.6246 GB, free: 106.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004472/0.9154, allocations: 219.6 kB / 0.6248 GB, free: 106.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000208/0.9156, allocations: 27.91 kB / 0.6249 GB, free: 106.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009873/0.9166, allocations: 43.52 kB / 0.6249 GB, free: 106.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003607/0.917, allocations: 157.2 kB / 0.625 GB, free: 106.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001512/0.9172, allocations: 72.27 kB / 0.6251 GB, free: 106.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00116/0.9183, allocations: 0.8779 MB / 0.626 GB, free: 105.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9183, allocations: 0 / 0.626 GB, free: 105.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00363/0.922, allocations: 1.099 MB / 0.627 GB, free: 105.6 MB / 478.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.002146/0.9241, allocations: 1.128 MB / 0.6281 GB, free: 105.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005055/0.9292, allocations: 2.784 MB / 0.6309 GB, free: 104.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/0.9292, allocations: 1.281 kB / 0.6309 GB, free: 104.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002422/0.9317, allocations: 1.467 MB / 0.6323 GB, free: 103.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001709/0.9334, allocations: 278.2 kB / 0.6326 GB, free: 103.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006155/0.9396, allocations: 3.624 MB / 0.6361 GB, free: 101.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008346/0.9404, allocations: 1.401 MB / 0.6375 GB, free: 100.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001359/0.9418, allocations: 390.7 kB / 0.6378 GB, free: 100.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005661/0.9424, allocations: 238.8 kB / 0.6381 GB, free: 100.5 MB / 478.1 MB Notification: Performance of SimCode: time 9.12e-07/0.9424, allocations: 4.125 kB / 0.6381 GB, free: 100.5 MB / 478.1 MB Notification: Performance of Templates: time 0.05167/0.9941, allocations: 41.65 MB / 0.6787 GB, free: 66.39 MB / 478.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 -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1)