Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ElectrochemicalCell.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.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ElectrochemicalCell") translateModel(Chemical.Examples.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ElectrochemicalCell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001634/0.001634, allocations: 100.1 kB / 15.88 MB, free: 12 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.001607/0.001607, allocations: 197.8 kB / 16.79 MB, free: 6.809 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.468/1.468, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2049/0.2049, allocations: 15.32 MB / 305.9 MB, free: 15.34 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 63.91 kB / 370.3 MB, free: 4.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09377/0.09498, allocations: 53.62 MB / 423.9 MB, free: 14.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.ElectrochemicalCell): time 0.3242/0.4192, allocations: 30.96 MB / 454.9 MB, free: 39.11 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02437/0.4436, allocations: 28.66 MB / 483.5 MB, free: 24.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002025/0.4457, allocations: 51.56 kB / 483.6 MB, free: 24.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001805/0.4475, allocations: 0.5894 MB / 484.2 MB, free: 23.92 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005931/0.4535, allocations: 1.941 MB / 486.1 MB, free: 22.76 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01007/0.4636, allocations: 3.38 MB / 489.5 MB, free: 20.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00404/0.4676, allocations: 2.751 MB / 492.2 MB, free: 19.45 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002129/0.4698, allocations: 1.43 MB / 493.7 MB, free: 18.81 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002337/0.4721, allocations: 1.278 MB / 495 MB, free: 18.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002498/0.4746, allocations: 1.449 MB / 496.4 MB, free: 17.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006563/0.4753, allocations: 176.3 kB / 496.6 MB, free: 17.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01049/0.4858, allocations: 3.04 MB / 499.6 MB, free: 17.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008922/0.4868, allocations: 0.5271 MB / 0.4884 GB, free: 16.72 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002511/0.4893, allocations: 1.22 MB / 0.4896 GB, free: 16.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006985/0.4963, allocations: 4.417 MB / 0.4939 GB, free: 12.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.4963, allocations: 0 / 0.4939 GB, free: 12.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4963, allocations: 3.938 kB / 0.4939 GB, free: 12.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001142/0.4965, allocations: 0 / 0.4939 GB, free: 12.64 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: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.006527/0.503, allocations: 3.086 MB / 0.4969 GB, free: 9.805 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.5031, allocations: 12.69 kB / 0.497 GB, free: 9.793 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002377/0.5054, allocations: 0.5405 MB / 0.4975 GB, free: 9.336 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00209/0.5075, allocations: 1.265 MB / 0.4987 GB, free: 8.254 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001529/0.5077, allocations: 232.8 kB / 0.4989 GB, free: 8.012 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003411/0.5081, allocations: 225.2 kB / 0.4992 GB, free: 7.793 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004469/0.5125, allocations: 2.661 MB / 0.5018 GB, free: 5.555 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.31e-05/0.5126, allocations: 0.7969 kB / 0.5018 GB, free: 5.555 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002086/0.5128, allocations: 92 kB / 0.5018 GB, free: 5.465 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.818e-05/0.5129, allocations: 52 kB / 0.5019 GB, free: 5.414 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004676/0.5175, allocations: 3.31 MB / 0.5051 GB, free: 2.566 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.01354/0.5311, allocations: 8.672 MB / 0.5136 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002741/0.5339, allocations: 2.002 MB / 0.5155 GB, free: 7.945 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001398/0.5353, allocations: 0.9251 MB / 0.5165 GB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01149/0.5468, allocations: 7.913 MB / 0.5242 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/0.5469, allocations: 43.88 kB / 0.5242 GB, free: 14.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=128): time 3.557e-06/0.5469, allocations: 0 / 0.5242 GB, free: 14.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=181): time 0.03248/0.5794, allocations: 8.217 MB / 0.5322 GB, free: 5.887 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.595e-05/0.5795, allocations: 95.11 kB / 0.5323 GB, free: 5.777 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001717/0.5812, allocations: 1.35 MB / 0.5337 GB, free: 4.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002456/0.5815, allocations: 57.7 kB / 0.5337 GB, free: 4.348 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006996/0.5822, allocations: 1.05 MB / 0.5347 GB, free: 3.281 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005935/0.5828, allocations: 0.6239 MB / 0.5353 GB, free: 2.648 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000679/0.5834, allocations: 484.8 kB / 0.5358 GB, free: 2.168 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.961e-05/0.5836, allocations: 305.1 kB / 0.5361 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001438/0.585, allocations: 0.8132 MB / 0.5369 GB, free: 1.051 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002128/0.5871, allocations: 1.654 MB / 0.5385 GB, free: 15 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003856/0.591, allocations: 2.61 MB / 0.5411 GB, free: 12.01 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.262e-05/0.591, allocations: 8 kB / 0.5411 GB, free: 12 MB / 414.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007549/0.5986, allocations: 3.038 MB / 0.544 GB, free: 8.941 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.885e-05/0.5987, allocations: 21.72 kB / 0.544 GB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-05/0.5987, allocations: 27.94 kB / 0.5441 GB, free: 8.895 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003482/0.6022, allocations: 0.5146 MB / 0.5446 GB, free: 8.367 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003945/0.6062, allocations: 0.7997 MB / 0.5454 GB, free: 7.566 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009219/0.6155, allocations: 7.472 MB / 0.5527 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002226/0.6177, allocations: 139.9 kB / 0.5528 GB, free: 15.37 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005061/0.6183, allocations: 147.9 kB / 0.5529 GB, free: 15.23 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (311): * Single equations (assignments): 305 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001282/0.6195, allocations: 448.9 kB / 0.5534 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005784/0.6201, allocations: 165.9 kB / 0.5535 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007779/0.6279, allocations: 2.586 MB / 0.556 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.202e-05/0.628, allocations: 27.94 kB / 0.5561 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.407e-06/0.628, allocations: 0 / 0.5561 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-05/0.628, allocations: 7.969 kB / 0.5561 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01141/0.6395, allocations: 4.763 MB / 0.5607 GB, free: 6.965 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.75e-05/0.6395, allocations: 12 kB / 0.5607 GB, free: 6.953 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001749/0.6413, allocations: 419.4 kB / 0.5611 GB, free: 6.543 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003657/0.645, allocations: 0.5509 MB / 0.5617 GB, free: 5.973 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002935/0.6453, allocations: 83.95 kB / 0.5618 GB, free: 5.891 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008285/0.6536, allocations: 7.269 MB / 0.5689 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-05/0.6536, allocations: 15.94 kB / 0.5689 GB, free: 14.01 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007797/0.6614, allocations: 3.465 MB / 0.5723 GB, free: 10.36 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006026/0.6621, allocations: 238.9 kB / 0.5725 GB, free: 10.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004468/0.6625, allocations: 55.98 kB / 0.5725 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/0.664, allocations: 83.81 kB / 0.5726 GB, free: 9.965 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004002/0.6644, allocations: 188.8 kB / 0.5728 GB, free: 9.781 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002096/0.6646, allocations: 95.97 kB / 0.5729 GB, free: 9.688 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001404/0.666, allocations: 0.885 MB / 0.5738 GB, free: 8.801 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6661, allocations: 0 / 0.5738 GB, free: 8.801 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004175/0.6702, allocations: 1.191 MB / 0.5749 GB, free: 7.609 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 8 (cathode.temperature,Ag.logn,anode.temperature,solution1.temperature,Cl.logn,AgCl.logn,H.logn,liquidWater.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 (198): * Single equations (assignments): 192 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,6), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003289/0.6735, allocations: 1.299 MB / 0.5762 GB, free: 6.301 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005349/0.6789, allocations: 2.46 MB / 0.5786 GB, free: 3.812 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/0.679, allocations: 8.25 kB / 0.5786 GB, free: 3.805 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002395/0.6814, allocations: 1.422 MB / 0.58 GB, free: 2.332 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002387/0.6838, allocations: 335.9 kB / 0.5803 GB, free: 2.008 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007717/0.6915, allocations: 4.986 MB / 0.5852 GB, free: 12.84 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001209/0.6927, allocations: 1.425 MB / 0.5866 GB, free: 11.38 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001048/0.6938, allocations: 367.5 kB / 0.5869 GB, free: 11.02 MB / 462.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6938, allocations: 0 / 0.5869 GB, free: 11.02 MB / 462.1 MB Notification: Performance of Templates: time 0.2466/0.9404, allocations: 81.76 MB / 0.6668 GB, free: 93.12 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.ElectrochemicalCell.makefile (rm -f Chemical_Chemical.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.ElectrochemicalCell.sim & ./Chemical_Chemical.Examples.ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ElectrochemicalCell.pipe 2>&1)