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.008884/0.008884, allocations: 99.56 kB / 15.73 MB, free: 6.059 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.00185/0.00185, allocations: 193.2 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.486/1.486, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09188/0.09188, allocations: 15.31 MB / 305.8 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 63.91 kB / 425.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1114, allocations: 53.6 MB / 478.8 MB, free: 5.789 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.03971/0.1511, allocations: 29.86 MB / 0.4967 GB, free: 8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2921/0.4433, allocations: 28.7 MB / 0.5247 GB, free: 12.95 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001934/0.4452, allocations: 24.12 kB / 0.5248 GB, free: 12.94 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003087/0.4484, allocations: 0.6461 MB / 0.5254 GB, free: 12.58 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.011/0.4594, allocations: 2.187 MB / 0.5275 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01459/0.474, allocations: 3.852 MB / 0.5313 GB, free: 9.035 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005671/0.4797, allocations: 2.855 MB / 0.5341 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002421/0.4822, allocations: 1.685 MB / 0.5357 GB, free: 6.945 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002539/0.4847, allocations: 1.314 MB / 0.537 GB, free: 6.359 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003068/0.4878, allocations: 1.487 MB / 0.5385 GB, free: 5.438 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004741/0.4883, allocations: 259.1 kB / 0.5387 GB, free: 5.438 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01358/0.5019, allocations: 3.109 MB / 0.5417 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001258/0.5032, allocations: 0.6039 MB / 0.5423 GB, free: 3.836 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00228/0.5055, allocations: 1.303 MB / 0.5436 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01875/0.5242, allocations: 6.025 MB / 0.5495 GB, free: 14.17 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.5243, allocations: 0 / 0.5495 GB, free: 14.17 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5243, allocations: 0 / 0.5495 GB, free: 14.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.073e-05/0.5244, allocations: 0 / 0.5495 GB, free: 14.17 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.006361/0.5307, allocations: 3.17 MB / 0.5526 GB, free: 10.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.5308, allocations: 12.03 kB / 0.5526 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00241/0.5332, allocations: 0.5557 MB / 0.5531 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002259/0.5355, allocations: 1.3 MB / 0.5544 GB, free: 9.039 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000205/0.5357, allocations: 227 kB / 0.5546 GB, free: 8.805 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003704/0.5361, allocations: 227.8 kB / 0.5548 GB, free: 8.582 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004504/0.5406, allocations: 2.669 MB / 0.5574 GB, free: 5.824 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.803e-05/0.5407, allocations: 0 / 0.5574 GB, free: 5.824 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002197/0.5409, allocations: 88 kB / 0.5575 GB, free: 5.738 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.716e-05/0.541, allocations: 54.69 kB / 0.5576 GB, free: 5.688 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005299/0.5463, allocations: 3.306 MB / 0.5608 GB, free: 2.379 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.0145/0.5608, allocations: 8.665 MB / 0.5693 GB, free: 9.402 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002756/0.5636, allocations: 1.994 MB / 0.5712 GB, free: 7.312 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001412/0.565, allocations: 0.9251 MB / 0.5721 GB, free: 6.383 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01131/0.5763, allocations: 7.901 MB / 0.5798 GB, free: 13.64 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.636e-05/0.5764, allocations: 49.59 kB / 0.5799 GB, free: 13.59 MB / 430.1 MB Notification: Performance of pre-optimization done (n=128): time 3.196e-06/0.5764, allocations: 0 / 0.5799 GB, free: 13.59 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.03061/0.607, allocations: 8.257 MB / 0.588 GB, free: 5.336 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.309e-05/0.6071, allocations: 95.11 kB / 0.588 GB, free: 5.223 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001703/0.6089, allocations: 1.365 MB / 0.5894 GB, free: 3.844 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001559/0.609, allocations: 53.7 kB / 0.5894 GB, free: 3.785 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007755/0.6098, allocations: 1.077 MB / 0.5905 GB, free: 2.695 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000673/0.6105, allocations: 0.6624 MB / 0.5911 GB, free: 2.027 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007574/0.6113, allocations: 481 kB / 0.5916 GB, free: 1.551 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.6114, allocations: 307.8 kB / 0.5919 GB, free: 1.25 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001488/0.6129, allocations: 0.8132 MB / 0.5927 GB, free: 444 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002139/0.6151, allocations: 1.657 MB / 0.5943 GB, free: 14.42 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003858/0.6189, allocations: 2.607 MB / 0.5968 GB, free: 11.49 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.829e-05/0.619, allocations: 8 kB / 0.5968 GB, free: 11.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006848/0.6258, allocations: 3.044 MB / 0.5998 GB, free: 8.445 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.674e-05/0.6259, allocations: 19.94 kB / 0.5998 GB, free: 8.426 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.073e-05/0.6259, allocations: 28 kB / 0.5999 GB, free: 8.398 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003029/0.629, allocations: 0.5168 MB / 0.6004 GB, free: 7.879 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003778/0.6328, allocations: 0.7998 MB / 0.6011 GB, free: 7.086 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009135/0.6419, allocations: 8.041 MB / 0.609 GB, free: 14.47 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001891/0.6439, allocations: 95.94 kB / 0.6091 GB, free: 14.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002532/0.6441, allocations: 140 kB / 0.6092 GB, free: 14.24 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.0009002/0.645, allocations: 464.3 kB / 0.6097 GB, free: 13.78 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003799/0.6454, allocations: 174.8 kB / 0.6098 GB, free: 13.61 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006349/0.6518, allocations: 2.577 MB / 0.6124 GB, free: 11.08 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.843e-05/0.6518, allocations: 20 kB / 0.6124 GB, free: 11.06 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.6518, allocations: 0 / 0.6124 GB, free: 11.06 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-05/0.6519, allocations: 7.969 kB / 0.6124 GB, free: 11.05 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009793/0.6617, allocations: 4.778 MB / 0.617 GB, free: 6.066 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-05/0.6617, allocations: 12 kB / 0.6171 GB, free: 6.055 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001659/0.6634, allocations: 422 kB / 0.6175 GB, free: 5.645 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003211/0.6666, allocations: 0.542 MB / 0.618 GB, free: 5.094 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002074/0.6668, allocations: 82.66 kB / 0.6181 GB, free: 5.016 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008472/0.6753, allocations: 7.84 MB / 0.6257 GB, free: 12.59 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-05/0.6754, allocations: 15.94 kB / 0.6257 GB, free: 12.57 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007436/0.6828, allocations: 3.478 MB / 0.6291 GB, free: 8.941 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005242/0.6834, allocations: 251.8 kB / 0.6294 GB, free: 8.676 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003606/0.6837, allocations: 55.98 kB / 0.6294 GB, free: 8.621 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001124/0.6849, allocations: 51.98 kB / 0.6295 GB, free: 8.57 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003396/0.6852, allocations: 186.1 kB / 0.6297 GB, free: 8.395 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001767/0.6854, allocations: 99.95 kB / 0.6298 GB, free: 8.297 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001144/0.6866, allocations: 0.8914 MB / 0.6306 GB, free: 7.406 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6866, allocations: 4 kB / 0.6306 GB, free: 7.402 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003729/0.6903, allocations: 1.212 MB / 0.6318 GB, free: 6.188 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.002465/0.6928, allocations: 1.323 MB / 0.6331 GB, free: 4.902 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005063/0.6979, allocations: 2.493 MB / 0.6355 GB, free: 2.387 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/0.6979, allocations: 4.875 kB / 0.6355 GB, free: 2.383 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002132/0.7, allocations: 1.43 MB / 0.6369 GB, free: 0.9023 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002007/0.7021, allocations: 336.7 kB / 0.6373 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006425/0.7085, allocations: 4.05 MB / 0.6412 GB, free: 12.36 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001122/0.7096, allocations: 1.429 MB / 0.6426 GB, free: 10.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001835/0.7115, allocations: 469.3 kB / 0.6431 GB, free: 10.46 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006539/0.7122, allocations: 282 kB / 0.6433 GB, free: 10.19 MB / 494.1 MB Notification: Performance of SimCode: time 1.052e-06/0.7122, allocations: 0 / 0.6433 GB, free: 10.19 MB / 494.1 MB Notification: Performance of Templates: time 0.06055/0.7727, allocations: 41.65 MB / 0.684 GB, free: 0.7852 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)