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.006835/0.006835, allocations: 100.6 kB / 15.73 MB, free: 5.98 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.001517/0.001518, allocations: 201.7 kB / 16.68 MB, free: 5.906 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.516/1.516, allocations: 222.9 MB / 240.4 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.135/0.135, allocations: 15.31 MB / 305.8 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 67.91 kB / 425.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.148, allocations: 53.61 MB / 478.8 MB, free: 5.801 MB / 350.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.04271/0.1907, allocations: 29.76 MB / 0.4966 GB, free: 8.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3555/0.5463, allocations: 28.69 MB / 0.5246 GB, free: 12.99 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002436/0.5487, allocations: 24.53 kB / 0.5247 GB, free: 12.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00255/0.5513, allocations: 0.6492 MB / 0.5253 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009132/0.5604, allocations: 2.18 MB / 0.5274 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01569/0.5762, allocations: 3.851 MB / 0.5312 GB, free: 9.082 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005838/0.582, allocations: 2.861 MB / 0.534 GB, free: 7.672 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002785/0.5848, allocations: 1.675 MB / 0.5356 GB, free: 6.996 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003118/0.588, allocations: 1.323 MB / 0.5369 GB, free: 6.426 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003273/0.5913, allocations: 1.49 MB / 0.5384 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005812/0.5919, allocations: 260.5 kB / 0.5386 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01829/0.6102, allocations: 3.108 MB / 0.5416 GB, free: 4.395 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001315/0.6116, allocations: 0.6038 MB / 0.5422 GB, free: 3.898 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00216/0.6137, allocations: 1.297 MB / 0.5435 GB, free: 3.027 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02007/0.6338, allocations: 6.006 MB / 0.5494 GB, free: 14.29 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.6339, allocations: 0 / 0.5494 GB, free: 14.29 MB / 398.1 MB Notification: Performance of FrontEnd: time 5.009e-06/0.6339, allocations: 0 / 0.5494 GB, free: 14.29 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.574e-05/0.6339, allocations: 3.938 kB / 0.5494 GB, free: 14.28 MB / 398.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.006858/0.6408, allocations: 3.085 MB / 0.5524 GB, free: 11.15 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.6409, allocations: 12.03 kB / 0.5524 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002215/0.6431, allocations: 0.5427 MB / 0.5529 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002465/0.6456, allocations: 1.292 MB / 0.5542 GB, free: 9.262 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002042/0.6458, allocations: 220.3 kB / 0.5544 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003521/0.6461, allocations: 230.5 kB / 0.5546 GB, free: 8.809 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004686/0.6508, allocations: 2.666 MB / 0.5572 GB, free: 6.055 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.31e-05/0.6509, allocations: 0 / 0.5572 GB, free: 6.055 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002019/0.6511, allocations: 88 kB / 0.5573 GB, free: 5.969 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.355e-05/0.6512, allocations: 52 kB / 0.5574 GB, free: 5.918 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005219/0.6564, allocations: 3.321 MB / 0.5606 GB, free: 2.598 MB / 398.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.01427/0.6707, allocations: 8.631 MB / 0.569 GB, free: 9.648 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002708/0.6734, allocations: 2.006 MB / 0.571 GB, free: 7.547 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001306/0.6747, allocations: 0.9212 MB / 0.5719 GB, free: 6.621 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01186/0.6866, allocations: 7.896 MB / 0.5796 GB, free: 13.88 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.415e-05/0.6867, allocations: 54.45 kB / 0.5796 GB, free: 13.82 MB / 430.1 MB Notification: Performance of pre-optimization done (n=128): time 3.216e-06/0.6867, allocations: 0 / 0.5796 GB, free: 13.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.03015/0.7169, allocations: 8.188 MB / 0.5876 GB, free: 5.633 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.373e-05/0.717, allocations: 103 kB / 0.5877 GB, free: 5.512 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00176/0.7188, allocations: 1.353 MB / 0.5891 GB, free: 4.145 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002142/0.719, allocations: 57.7 kB / 0.5891 GB, free: 4.082 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007413/0.7197, allocations: 1.05 MB / 0.5901 GB, free: 3.016 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005752/0.7203, allocations: 0.62 MB / 0.5907 GB, free: 2.387 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007419/0.7211, allocations: 484.8 kB / 0.5912 GB, free: 1.906 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.7212, allocations: 311.8 kB / 0.5915 GB, free: 1.602 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001447/0.7227, allocations: 0.8054 MB / 0.5923 GB, free: 0.793 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002328/0.725, allocations: 1.661 MB / 0.5939 GB, free: 14.77 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004061/0.7291, allocations: 2.6 MB / 0.5965 GB, free: 11.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.457e-05/0.7291, allocations: 10.69 kB / 0.5965 GB, free: 11.85 MB / 446.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007105/0.7362, allocations: 3.039 MB / 0.5994 GB, free: 8.812 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.197e-05/0.7363, allocations: 19.94 kB / 0.5995 GB, free: 8.793 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.881e-05/0.7364, allocations: 28 kB / 0.5995 GB, free: 8.766 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003254/0.7396, allocations: 0.5169 MB / 0.6 GB, free: 8.246 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003985/0.7436, allocations: 0.7997 MB / 0.6008 GB, free: 7.453 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009348/0.753, allocations: 8.038 MB / 0.6086 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002177/0.7552, allocations: 94.55 kB / 0.6087 GB, free: 14.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002831/0.7555, allocations: 146.6 kB / 0.6088 GB, free: 14.61 MB / 462.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.0009465/0.7565, allocations: 461.4 kB / 0.6093 GB, free: 14.15 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004343/0.7569, allocations: 161.9 kB / 0.6094 GB, free: 13.99 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006418/0.7634, allocations: 2.577 MB / 0.612 GB, free: 11.46 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-05/0.7634, allocations: 20 kB / 0.612 GB, free: 11.44 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.7634, allocations: 144 / 0.612 GB, free: 11.44 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.459e-05/0.7635, allocations: 18.62 kB / 0.612 GB, free: 11.43 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009907/0.7734, allocations: 4.784 MB / 0.6167 GB, free: 6.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.772e-05/0.7734, allocations: 12 kB / 0.6167 GB, free: 6.418 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001586/0.775, allocations: 418.1 kB / 0.6171 GB, free: 6.012 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003205/0.7782, allocations: 0.5407 MB / 0.6176 GB, free: 5.465 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001951/0.7784, allocations: 79.97 kB / 0.6177 GB, free: 5.387 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008164/0.7866, allocations: 7.838 MB / 0.6253 GB, free: 12.95 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.321e-05/0.7867, allocations: 15.94 kB / 0.6254 GB, free: 12.94 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006916/0.7936, allocations: 3.465 MB / 0.6287 GB, free: 9.32 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005297/0.7942, allocations: 246.8 kB / 0.629 GB, free: 9.059 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002315/0.7944, allocations: 58.61 kB / 0.629 GB, free: 9.004 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009451/0.7953, allocations: 46.66 kB / 0.6291 GB, free: 8.961 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003176/0.7957, allocations: 194.1 kB / 0.6293 GB, free: 8.777 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001457/0.7958, allocations: 91.97 kB / 0.6293 GB, free: 8.688 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001172/0.797, allocations: 0.8928 MB / 0.6302 GB, free: 7.793 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.797, allocations: 0 / 0.6302 GB, free: 7.793 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004287/0.8013, allocations: 1.191 MB / 0.6314 GB, free: 6.602 MB / 478.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.003509/0.8048, allocations: 1.303 MB / 0.6327 GB, free: 5.336 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006117/0.811, allocations: 2.486 MB / 0.6351 GB, free: 2.828 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.525e-05/0.811, allocations: 8.25 kB / 0.6351 GB, free: 2.82 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002563/0.8136, allocations: 1.426 MB / 0.6365 GB, free: 1.344 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002582/0.8162, allocations: 344.9 kB / 0.6368 GB, free: 1.027 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007196/0.8234, allocations: 3.995 MB / 0.6407 GB, free: 12.86 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/0.8247, allocations: 1.429 MB / 0.6421 GB, free: 11.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001678/0.8264, allocations: 459.3 kB / 0.6425 GB, free: 10.96 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006761/0.8271, allocations: 287.1 kB / 0.6428 GB, free: 10.69 MB / 494.1 MB Notification: Performance of SimCode: time 8.21e-07/0.8271, allocations: 0 / 0.6428 GB, free: 10.69 MB / 494.1 MB Notification: Performance of Templates: time 0.07323/0.9003, allocations: 42.27 MB / 0.6841 GB, free: 0.6602 MB / 0.5137 GB 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)