Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.H2O_ElectrochemicalCell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: translateModel(Chemical.Examples.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.H2O_ElectrochemicalCell") translateModel(Chemical.Examples.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.H2O_ElectrochemicalCell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.08131/0.08131, allocations: 15.29 MB / 31.08 MB, free: 3.109 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 197.2 kB / 36.14 MB, free: 2.145 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 264 MB, free: 4.871 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 103.4 kB / 318.4 MB, free: 3.434 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 60.28 kB / 382.7 MB, free: 48.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07754/0.07856, allocations: 53.62 MB / 436.3 MB, free: 1.023 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721: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.0-master/package.mo:4721:7-4721: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.H2O_ElectrochemicalCell): time 0.03059/0.1092, allocations: 26.25 MB / 462.6 MB, free: 6.855 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01975/0.129, allocations: 19.33 MB / 481.9 MB, free: 3.457 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001456/0.1305, allocations: 43.69 kB / 482 MB, free: 3.414 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001247/0.1317, allocations: 453 kB / 482.4 MB, free: 2.969 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002901/0.1346, allocations: 1.083 MB / 483.5 MB, free: 1.879 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006665/0.1413, allocations: 2.487 MB / 486 MB, free: 15.38 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002942/0.1443, allocations: 2.043 MB / 488 MB, free: 13.33 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001269/0.1456, allocations: 1.163 MB / 489.2 MB, free: 12.12 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008594/0.1465, allocations: 0.8645 MB / 490 MB, free: 11.25 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000985/0.1474, allocations: 1.023 MB / 491.1 MB, free: 10.22 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001917/0.1476, allocations: 132 kB / 491.2 MB, free: 10.09 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005086/0.1527, allocations: 1.969 MB / 493.2 MB, free: 8.121 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003591/0.1531, allocations: 410.5 kB / 493.6 MB, free: 7.719 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008172/0.1539, allocations: 0.9098 MB / 494.5 MB, free: 6.805 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006041/0.16, allocations: 3.912 MB / 498.4 MB, free: 2.879 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.16, allocations: 0 / 498.4 MB, free: 2.879 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.16, allocations: 0 / 498.4 MB, free: 2.879 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.7e-05/0.1601, allocations: 0 / 498.4 MB, free: 2.879 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.004228/0.1643, allocations: 2.341 MB / 0.489 GB, free: 492 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.1643, allocations: 8.875 kB / 0.489 GB, free: 484 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001553/0.1659, allocations: 438 kB / 0.4894 GB, free: 44 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001471/0.1674, allocations: 1.048 MB / 0.4904 GB, free: 14.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001368/0.1675, allocations: 179 kB / 0.4906 GB, free: 14.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002258/0.1678, allocations: 171.9 kB / 0.4908 GB, free: 14.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002906/0.1707, allocations: 2.214 MB / 0.4929 GB, free: 12.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.115e-05/0.1707, allocations: 15.86 kB / 0.493 GB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001499/0.1709, allocations: 64 kB / 0.493 GB, free: 12.24 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.173e-05/0.1709, allocations: 44 kB / 0.4931 GB, free: 12.2 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003603/0.1745, allocations: 2.676 MB / 0.4957 GB, free: 9.512 MB / 378.7 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.009473/0.184, allocations: 7.239 MB / 0.5027 GB, free: 1.996 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/0.1856, allocations: 1.173 MB / 0.5039 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007326/0.1863, allocations: 0.5565 MB / 0.5044 GB, free: 188 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1626/0.349, allocations: 5.118 MB / 0.5094 GB, free: 66.47 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.804e-05/0.349, allocations: 45.11 kB / 0.5095 GB, free: 66.43 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000414/0.3495, allocations: 111.6 kB / 0.5096 GB, free: 66.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=71): time 2.846e-06/0.3495, allocations: 0 / 0.5096 GB, free: 66.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=95): time 0.01677/0.3662, allocations: 4.775 MB / 0.5142 GB, free: 65.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.779e-05/0.3663, allocations: 114.1 kB / 0.5143 GB, free: 65.06 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001567/0.3679, allocations: 1.472 MB / 0.5158 GB, free: 64.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.599e-05/0.368, allocations: 40.92 kB / 0.5158 GB, free: 64.85 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000473/0.3684, allocations: 0.8904 MB / 0.5167 GB, free: 64.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002785/0.3687, allocations: 346.5 kB / 0.517 GB, free: 64.14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005203/0.3693, allocations: 356.5 kB / 0.5174 GB, free: 64.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.132e-05/0.3693, allocations: 309.6 kB / 0.5177 GB, free: 63.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009714/0.3703, allocations: 0.6193 MB / 0.5183 GB, free: 63.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00146/0.3718, allocations: 1.319 MB / 0.5196 GB, free: 62.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002494/0.3743, allocations: 1.913 MB / 0.5214 GB, free: 62.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.57e-05/0.3743, allocations: 6.656 kB / 0.5214 GB, free: 62.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005055/0.3794, allocations: 2.357 MB / 0.5237 GB, free: 61.17 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/0.3794, allocations: 15.66 kB / 0.5237 GB, free: 61.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.167e-05/0.3794, allocations: 24.25 kB / 0.5238 GB, free: 61.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002319/0.3818, allocations: 374.7 kB / 0.5241 GB, free: 61.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002074/0.3839, allocations: 0.5565 MB / 0.5247 GB, free: 61.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006038/0.3899, allocations: 7.338 MB / 0.5318 GB, free: 54.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/0.3913, allocations: 108.5 kB / 0.5319 GB, free: 54.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001872/0.3915, allocations: 107.5 kB / 0.532 GB, free: 54.03 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (219): * Single equations (assignments): 213 * 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,1), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0006611/0.3922, allocations: 360 kB / 0.5324 GB, free: 53.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000274/0.3925, allocations: 125.4 kB / 0.5325 GB, free: 53.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004587/0.3971, allocations: 1.528 MB / 0.534 GB, free: 53.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.186e-05/0.3971, allocations: 11.69 kB / 0.534 GB, free: 53.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.3971, allocations: 4.438 kB / 0.534 GB, free: 53.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.559e-05/0.3972, allocations: 11.72 kB / 0.534 GB, free: 53.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006344/0.4035, allocations: 3.009 MB / 0.537 GB, free: 51.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.4035, allocations: 7.938 kB / 0.537 GB, free: 51.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007288/0.4043, allocations: 215.6 kB / 0.5372 GB, free: 51.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002379/0.4067, allocations: 413.2 kB / 0.5376 GB, free: 51.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.814e-05/0.4068, allocations: 39.7 kB / 0.5376 GB, free: 51.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005415/0.4122, allocations: 7.134 MB / 0.5446 GB, free: 44.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.4122, allocations: 15.89 kB / 0.5446 GB, free: 44.15 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006334/0.4185, allocations: 4.341 MB / 0.5488 GB, free: 40.99 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002221/0.4188, allocations: 198.5 kB / 0.549 GB, free: 40.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000131/0.4189, allocations: 31.56 kB / 0.549 GB, free: 40.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006743/0.4196, allocations: 38.08 kB / 0.5491 GB, free: 40.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001818/0.4198, allocations: 115.2 kB / 0.5492 GB, free: 40.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.075e-05/0.4199, allocations: 52.64 kB / 0.5492 GB, free: 40.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008727/0.4208, allocations: 1.018 MB / 0.5502 GB, free: 40.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4208, allocations: 0 / 0.5502 GB, free: 40.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002423/0.4232, allocations: 0.9085 MB / 0.5511 GB, free: 40 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (101): * Single equations (assignments): 95 * 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,1), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001169/0.4244, allocations: 0.8668 MB / 0.552 GB, free: 39.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002607/0.427, allocations: 1.753 MB / 0.5537 GB, free: 37.78 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.427, allocations: 0 / 0.5537 GB, free: 37.78 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009721/0.428, allocations: 0.9797 MB / 0.5546 GB, free: 36.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/0.4293, allocations: 221.3 kB / 0.5548 GB, free: 36.55 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003728/0.433, allocations: 4.079 MB / 0.5588 GB, free: 32.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005008/0.4335, allocations: 1.242 MB / 0.56 GB, free: 31.25 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001087/0.4346, allocations: 333.4 kB / 0.5604 GB, free: 31 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002994/0.4349, allocations: 180.1 kB / 0.5605 GB, free: 30.83 MB / 378.7 MB Notification: Performance of SimCode: time 5.11e-07/0.4349, allocations: 0 / 0.5605 GB, free: 30.83 MB / 378.7 MB Notification: Performance of Templates: time 0.03269/0.4676, allocations: 27.25 MB / 0.5871 GB, free: 4.098 MB / 378.7 MB make -j1 -f Chemical_Chemical.Examples.H2O_ElectrochemicalCell.makefile (rm -f Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.H2O_ElectrochemicalCell.sim & ./Chemical_Chemical.Examples.H2O_ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe 2>&1)