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.00115/0.00115, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001168/0.001168, allocations: 192.8 kB / 16.13 MB, free: 6.711 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.357/1.357, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2249/0.2249, allocations: 15.32 MB / 305.3 MB, free: 15.35 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 67.89 kB / 369.6 MB, free: 4.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1311, allocations: 53.6 MB / 423.2 MB, free: 14.8 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.3634/0.4945, allocations: 30.32 MB / 453.6 MB, free: 38.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02351/0.518, allocations: 28.68 MB / 482.2 MB, free: 24.18 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002097/0.5202, allocations: 55.38 kB / 482.3 MB, free: 24.15 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001737/0.5219, allocations: 0.5784 MB / 482.9 MB, free: 23.85 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006023/0.528, allocations: 1.947 MB / 484.8 MB, free: 22.69 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009245/0.5372, allocations: 3.377 MB / 488.2 MB, free: 20.7 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00344/0.5407, allocations: 2.749 MB / 490.9 MB, free: 19.38 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001569/0.5423, allocations: 1.442 MB / 492.4 MB, free: 18.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001561/0.5438, allocations: 1.271 MB / 493.7 MB, free: 18.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001561/0.5454, allocations: 1.448 MB / 495.1 MB, free: 17.72 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002968/0.5457, allocations: 173.2 kB / 495.3 MB, free: 17.72 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009154/0.5549, allocations: 3.041 MB / 498.3 MB, free: 16.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007853/0.5557, allocations: 0.5229 MB / 498.8 MB, free: 16.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001566/0.5573, allocations: 1.216 MB / 0.4883 GB, free: 15.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01325/0.5705, allocations: 5.623 MB / 0.4938 GB, free: 11.99 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.777e-06/0.5706, allocations: 8 kB / 0.4938 GB, free: 11.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.5706, allocations: 0 / 0.4938 GB, free: 11.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.332e-05/0.5707, allocations: 0 / 0.4938 GB, free: 11.98 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.005895/0.5766, allocations: 3.092 MB / 0.4969 GB, free: 9.148 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.5766, allocations: 8.734 kB / 0.4969 GB, free: 9.141 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00225/0.5789, allocations: 0.5405 MB / 0.4974 GB, free: 8.684 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001822/0.5807, allocations: 1.265 MB / 0.4986 GB, free: 7.602 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/0.5809, allocations: 229.1 kB / 0.4988 GB, free: 7.363 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002798/0.5811, allocations: 221 kB / 0.4991 GB, free: 7.148 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003853/0.585, allocations: 2.668 MB / 0.5017 GB, free: 4.902 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.642e-05/0.5851, allocations: 8 kB / 0.5017 GB, free: 4.895 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001941/0.5853, allocations: 88 kB / 0.5018 GB, free: 4.809 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.87e-05/0.5853, allocations: 56 kB / 0.5018 GB, free: 4.754 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004296/0.5896, allocations: 3.31 MB / 0.505 GB, free: 1.906 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.01226/0.6019, allocations: 8.672 MB / 0.5135 GB, free: 9.316 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002592/0.6045, allocations: 1.998 MB / 0.5155 GB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001319/0.6058, allocations: 0.9251 MB / 0.5164 GB, free: 6.285 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01086/0.6167, allocations: 7.917 MB / 0.5241 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/0.6167, allocations: 51.88 kB / 0.5241 GB, free: 13.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=128): time 2.875e-06/0.6167, allocations: 0 / 0.5241 GB, free: 13.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=181): time 0.03109/0.6478, allocations: 8.198 MB / 0.5321 GB, free: 5.168 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.6479, allocations: 99.14 kB / 0.5322 GB, free: 5.055 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001596/0.6495, allocations: 1.354 MB / 0.5336 GB, free: 3.684 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001485/0.6497, allocations: 53.7 kB / 0.5336 GB, free: 3.625 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00069/0.6504, allocations: 1.046 MB / 0.5346 GB, free: 2.562 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005609/0.6509, allocations: 0.6278 MB / 0.5353 GB, free: 1.926 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006585/0.6516, allocations: 484.7 kB / 0.5357 GB, free: 1.445 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.6517, allocations: 301.1 kB / 0.536 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001494/0.6532, allocations: 0.8132 MB / 0.5368 GB, free: 340 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00199/0.6552, allocations: 1.654 MB / 0.5384 GB, free: 14.29 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00376/0.659, allocations: 2.61 MB / 0.541 GB, free: 11.29 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-05/0.659, allocations: 8 kB / 0.541 GB, free: 11.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006972/0.666, allocations: 3.034 MB / 0.5439 GB, free: 8.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/0.666, allocations: 16 kB / 0.5439 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.724e-05/0.6661, allocations: 32.34 kB / 0.544 GB, free: 8.184 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003322/0.6694, allocations: 0.5182 MB / 0.5445 GB, free: 7.652 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003502/0.6729, allocations: 0.7997 MB / 0.5453 GB, free: 6.852 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008736/0.6817, allocations: 7.48 MB / 0.5526 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001858/0.6836, allocations: 131.8 kB / 0.5527 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002279/0.6838, allocations: 151.9 kB / 0.5528 GB, free: 14.51 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.0008359/0.6846, allocations: 456.9 kB / 0.5533 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003462/0.685, allocations: 169.8 kB / 0.5534 GB, free: 13.88 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007071/0.6921, allocations: 2.574 MB / 0.5559 GB, free: 11.28 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.404e-05/0.6921, allocations: 16 kB / 0.556 GB, free: 11.26 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/0.6921, allocations: 4 kB / 0.556 GB, free: 11.26 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.005e-05/0.6921, allocations: 15.89 kB / 0.556 GB, free: 11.24 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009601/0.7017, allocations: 4.77 MB / 0.5606 GB, free: 6.238 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.514e-05/0.7018, allocations: 8 kB / 0.5606 GB, free: 6.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001609/0.7034, allocations: 416.2 kB / 0.561 GB, free: 5.824 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003354/0.7068, allocations: 0.5626 MB / 0.5616 GB, free: 5.242 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001855/0.707, allocations: 79.97 kB / 0.5617 GB, free: 5.164 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007782/0.7147, allocations: 7.269 MB / 0.5688 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.29e-05/0.7148, allocations: 19.94 kB / 0.5688 GB, free: 13.28 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007145/0.7219, allocations: 3.454 MB / 0.5722 GB, free: 9.637 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005967/0.7225, allocations: 246.9 kB / 0.5724 GB, free: 9.375 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003881/0.7229, allocations: 51.94 kB / 0.5724 GB, free: 9.324 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001287/0.7242, allocations: 83.81 kB / 0.5725 GB, free: 9.242 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003755/0.7246, allocations: 196.8 kB / 0.5727 GB, free: 9.051 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001698/0.7248, allocations: 87.97 kB / 0.5728 GB, free: 8.965 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00123/0.7261, allocations: 0.8966 MB / 0.5737 GB, free: 8.066 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.7261, allocations: 0 / 0.5737 GB, free: 8.066 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004407/0.7305, allocations: 1.191 MB / 0.5748 GB, free: 6.875 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.003079/0.7336, allocations: 1.299 MB / 0.5761 GB, free: 5.566 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005091/0.7387, allocations: 2.454 MB / 0.5785 GB, free: 3.082 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/0.7387, allocations: 2 kB / 0.5785 GB, free: 3.082 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002137/0.7408, allocations: 1.43 MB / 0.5799 GB, free: 1.602 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002076/0.7429, allocations: 333.8 kB / 0.5802 GB, free: 1.277 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006875/0.7498, allocations: 4.933 MB / 0.585 GB, free: 12.16 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001102/0.7509, allocations: 1.433 MB / 0.5864 GB, free: 10.69 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002091/0.753, allocations: 474.8 kB / 0.5869 GB, free: 10.22 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006797/0.7537, allocations: 291.2 kB / 0.5872 GB, free: 9.938 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.7537, allocations: 0 / 0.5872 GB, free: 9.938 MB / 462.1 MB Notification: Performance of Templates: time 0.2223/0.976, allocations: 39.74 MB / 0.626 GB, free: 124 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)