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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005447/0.005447, allocations: 100.8 kB / 15.87 MB, free: 6.328 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.001214/0.001214, allocations: 195.3 kB / 16.79 MB, free: 6.254 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.387/1.387, allocations: 222.9 MB / 240.5 MB, free: 4.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2655/0.2655, allocations: 15.31 MB / 305.9 MB, free: 15.34 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 59.91 kB / 370.3 MB, free: 4.422 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1019, allocations: 53.61 MB / 423.9 MB, free: 14.76 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.H2O_ElectrochemicalCell): time 0.3544/0.4563, allocations: 28.73 MB / 452.6 MB, free: 39.16 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01704/0.4734, allocations: 19.42 MB / 472 MB, free: 30.35 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001658/0.4751, allocations: 41.62 kB / 472.1 MB, free: 30.33 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001355/0.4764, allocations: 445.1 kB / 472.5 MB, free: 30.12 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003348/0.4798, allocations: 1.1 MB / 473.6 MB, free: 29.49 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006896/0.4867, allocations: 2.492 MB / 476.1 MB, free: 28.02 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002532/0.4893, allocations: 2.022 MB / 478.1 MB, free: 27.05 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001266/0.4906, allocations: 1.161 MB / 479.3 MB, free: 26.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001112/0.4917, allocations: 0.858 MB / 480.2 MB, free: 26.2 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00116/0.4928, allocations: 1.027 MB / 481.2 MB, free: 25.76 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00026/0.4931, allocations: 131.2 kB / 481.3 MB, free: 25.76 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007128/0.5003, allocations: 1.995 MB / 483.3 MB, free: 25.26 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005783/0.5009, allocations: 405 kB / 483.7 MB, free: 25.03 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001273/0.5021, allocations: 0.921 MB / 484.6 MB, free: 24.51 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004482/0.5066, allocations: 3.09 MB / 487.7 MB, free: 23.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.5067, allocations: 0 / 487.7 MB, free: 23.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.5067, allocations: 0 / 487.7 MB, free: 23.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.11e-05/0.5067, allocations: 4 kB / 487.7 MB, free: 23.2 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.00467/0.5114, allocations: 2.347 MB / 490.1 MB, free: 21.78 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.5114, allocations: 10.47 kB / 490.1 MB, free: 21.78 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001803/0.5132, allocations: 430.9 kB / 490.5 MB, free: 21.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001775/0.515, allocations: 1.05 MB / 491.5 MB, free: 21.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.5152, allocations: 188.8 kB / 491.7 MB, free: 20.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002149/0.5154, allocations: 164.7 kB / 491.9 MB, free: 20.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003106/0.5185, allocations: 2.209 MB / 494.1 MB, free: 19.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.125e-05/0.5186, allocations: 4.609 kB / 494.1 MB, free: 19.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001457/0.5187, allocations: 66.34 kB / 494.2 MB, free: 19.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.427e-05/0.5187, allocations: 46.84 kB / 494.2 MB, free: 19.84 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003366/0.5221, allocations: 2.673 MB / 496.9 MB, free: 18.98 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.009903/0.532, allocations: 7.24 MB / 0.4923 GB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/0.5336, allocations: 1.184 MB / 0.4935 GB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007402/0.5343, allocations: 0.5566 MB / 0.494 GB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007002/0.5414, allocations: 5.14 MB / 0.499 GB, free: 7.926 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.5414, allocations: 43.83 kB / 0.4991 GB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005661/0.542, allocations: 114 kB / 0.4992 GB, free: 7.766 MB / 366.1 MB Notification: Performance of pre-optimization done (n=71): time 2.815e-06/0.542, allocations: 0 / 0.4992 GB, free: 7.766 MB / 366.1 MB Notification: Performance of matching and sorting (n=95): time 0.01816/0.5602, allocations: 4.779 MB / 0.5039 GB, free: 3.332 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.668e-05/0.5602, allocations: 111.8 kB / 0.504 GB, free: 3.199 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00134/0.5616, allocations: 1.474 MB / 0.5054 GB, free: 1.711 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.382e-05/0.5617, allocations: 49.62 kB / 0.5054 GB, free: 1.656 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003327/0.562, allocations: 0.8817 MB / 0.5063 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001871/0.5622, allocations: 355.1 kB / 0.5066 GB, free: 416 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003931/0.5626, allocations: 355.1 kB / 0.507 GB, free: 56 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.5627, allocations: 309.2 kB / 0.5073 GB, free: 15.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009802/0.5637, allocations: 0.613 MB / 0.5079 GB, free: 15.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001437/0.5652, allocations: 1.325 MB / 0.5092 GB, free: 13.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002384/0.5676, allocations: 1.909 MB / 0.511 GB, free: 11.24 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/0.5676, allocations: 4 kB / 0.511 GB, free: 11.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.00562/0.5732, allocations: 2.354 MB / 0.5133 GB, free: 8.859 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.516e-05/0.5733, allocations: 16 kB / 0.5134 GB, free: 8.844 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.724e-05/0.5733, allocations: 31.92 kB / 0.5134 GB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002671/0.576, allocations: 367.5 kB / 0.5137 GB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002237/0.5782, allocations: 0.5617 MB / 0.5143 GB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008607/0.5868, allocations: 7.328 MB / 0.5214 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001616/0.5885, allocations: 111.8 kB / 0.5215 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001937/0.5887, allocations: 103.9 kB / 0.5216 GB, free: 15.75 MB / 398.1 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.0006861/0.5894, allocations: 377 kB / 0.522 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003101/0.5897, allocations: 122.5 kB / 0.5221 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004901/0.5946, allocations: 1.527 MB / 0.5236 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.179e-05/0.5947, allocations: 8 kB / 0.5236 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.5947, allocations: 4 kB / 0.5236 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.5947, allocations: 3.984 kB / 0.5236 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007093/0.6018, allocations: 3.006 MB / 0.5266 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/0.6018, allocations: 8.875 kB / 0.5266 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008626/0.6027, allocations: 219.7 kB / 0.5268 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002893/0.6056, allocations: 412.4 kB / 0.5272 GB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.539e-05/0.6057, allocations: 43.98 kB / 0.5272 GB, free: 9.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007371/0.6131, allocations: 7.136 MB / 0.5342 GB, free: 2.082 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.165e-06/0.6131, allocations: 8 kB / 0.5342 GB, free: 2.074 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005147/0.6183, allocations: 2.164 MB / 0.5363 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004694/0.6188, allocations: 203.5 kB / 0.5365 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000194/0.619, allocations: 28 kB / 0.5365 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007769/0.6198, allocations: 35.98 kB / 0.5366 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002131/0.62, allocations: 116.3 kB / 0.5367 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.639e-05/0.6201, allocations: 51.98 kB / 0.5367 GB, free: 15.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001161/0.6212, allocations: 1.009 MB / 0.5377 GB, free: 14.33 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6213, allocations: 3.938 kB / 0.5377 GB, free: 14.32 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002898/0.6242, allocations: 0.8158 MB / 0.5385 GB, free: 13.51 MB / 414.1 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.001688/0.6259, allocations: 0.8664 MB / 0.5394 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003239/0.6291, allocations: 1.742 MB / 0.5411 GB, free: 10.88 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.6291, allocations: 8.062 kB / 0.5411 GB, free: 10.87 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001322/0.6305, allocations: 0.9879 MB / 0.542 GB, free: 9.828 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/0.6321, allocations: 229.3 kB / 0.5422 GB, free: 9.605 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004749/0.6368, allocations: 3.555 MB / 0.5457 GB, free: 5.922 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007471/0.6376, allocations: 1.215 MB / 0.5469 GB, free: 4.676 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00055/0.6381, allocations: 227.2 kB / 0.5471 GB, free: 4.453 MB / 414.1 MB Notification: Performance of SimCode: time 5.62e-07/0.6381, allocations: 0 / 0.5471 GB, free: 4.453 MB / 414.1 MB Notification: Performance of Templates: time 0.2223/0.8604, allocations: 60.7 MB / 0.6064 GB, free: 134.6 MB / 462.1 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)