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.001286/0.001286, allocations: 115.2 kB / 16.42 MB, free: 6.449 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.001313/0.001314, allocations: 183.9 kB / 17.35 MB, free: 5.738 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.297/1.297, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07377/0.07377, allocations: 15.31 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 60.12 kB / 425.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07973/0.08092, allocations: 53.61 MB / 479.5 MB, free: 5.828 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.H2O_ElectrochemicalCell): time 0.03505/0.116, allocations: 27.81 MB / 0.4954 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.1931/0.3091, allocations: 19.37 MB / 0.5143 GB, free: 18.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000732/0.3099, allocations: 20.12 kB / 0.5143 GB, free: 18.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001057/0.3109, allocations: 0.4954 MB / 0.5148 GB, free: 18.17 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002316/0.3133, allocations: 1.226 MB / 0.516 GB, free: 17.72 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005888/0.3192, allocations: 2.834 MB / 0.5188 GB, free: 16.78 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002111/0.3213, allocations: 2.091 MB / 0.5208 GB, free: 16.28 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001555/0.3228, allocations: 1.352 MB / 0.5221 GB, free: 16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00117/0.324, allocations: 0.9056 MB / 0.523 GB, free: 15.63 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001311/0.3253, allocations: 1.054 MB / 0.524 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000316/0.3257, allocations: 199.6 kB / 0.5242 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005951/0.3316, allocations: 2.059 MB / 0.5262 GB, free: 14.69 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003681/0.332, allocations: 474.9 kB / 0.5267 GB, free: 14.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008518/0.3329, allocations: 0.9805 MB / 0.5276 GB, free: 13.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007048/0.3399, allocations: 4.197 MB / 0.5317 GB, free: 12.24 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.34, allocations: 2.375 kB / 0.5317 GB, free: 12.24 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.34, allocations: 0 / 0.5317 GB, free: 12.24 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.884e-05/0.34, allocations: 2.812 kB / 0.5318 GB, free: 12.24 MB / 382.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.003597/0.3436, allocations: 2.347 MB / 0.534 GB, free: 10.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.3437, allocations: 12.62 kB / 0.5341 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00153/0.3452, allocations: 443.2 kB / 0.5345 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001389/0.3466, allocations: 1.07 MB / 0.5355 GB, free: 9.664 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001283/0.3467, allocations: 179.4 kB / 0.5357 GB, free: 9.547 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002349/0.347, allocations: 168.1 kB / 0.5359 GB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002762/0.3497, allocations: 2.215 MB / 0.538 GB, free: 8.145 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.167e-05/0.3498, allocations: 3.938 kB / 0.538 GB, free: 8.141 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001522/0.3499, allocations: 67.94 kB / 0.5381 GB, free: 8.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.712e-05/0.35, allocations: 44.12 kB / 0.5381 GB, free: 8.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003091/0.3531, allocations: 2.672 MB / 0.5407 GB, free: 6.867 MB / 382.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.007908/0.361, allocations: 7.226 MB / 0.5478 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001654/0.3627, allocations: 1.181 MB / 0.5489 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008037/0.3635, allocations: 0.5534 MB / 0.5495 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007128/0.3706, allocations: 5.127 MB / 0.5545 GB, free: 8.273 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.262e-05/0.3706, allocations: 37.78 kB / 0.5545 GB, free: 8.23 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000386/0.371, allocations: 114.2 kB / 0.5546 GB, free: 8.121 MB / 398.1 MB Notification: Performance of pre-optimization done (n=71): time 2.364e-06/0.3711, allocations: 0 / 0.5546 GB, free: 8.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=95): time 0.01771/0.3888, allocations: 4.811 MB / 0.5593 GB, free: 3.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/0.3888, allocations: 111.8 kB / 0.5594 GB, free: 3.098 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001596/0.3904, allocations: 1.478 MB / 0.5609 GB, free: 1.605 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.774e-05/0.3905, allocations: 41.7 kB / 0.5609 GB, free: 1.559 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005352/0.3911, allocations: 0.8897 MB / 0.5618 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002606/0.3913, allocations: 353.9 kB / 0.5621 GB, free: 328 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004711/0.3918, allocations: 359 kB / 0.5625 GB, free: 15.96 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.62e-05/0.3919, allocations: 301.1 kB / 0.5628 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009448/0.3929, allocations: 0.6208 MB / 0.5634 GB, free: 15.04 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001377/0.3942, allocations: 1.331 MB / 0.5647 GB, free: 13.4 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00229/0.3965, allocations: 1.91 MB / 0.5665 GB, free: 11.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-06/0.3966, allocations: 11.94 kB / 0.5665 GB, free: 11.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005271/0.4018, allocations: 2.362 MB / 0.5689 GB, free: 8.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.02e-05/0.4019, allocations: 12 kB / 0.5689 GB, free: 8.828 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.516e-05/0.4019, allocations: 26.66 kB / 0.5689 GB, free: 8.805 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002558/0.4045, allocations: 390.7 kB / 0.5693 GB, free: 8.418 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002787/0.4073, allocations: 0.5619 MB / 0.5698 GB, free: 7.863 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008046/0.4153, allocations: 7.904 MB / 0.5775 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001232/0.4166, allocations: 86.41 kB / 0.5776 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/0.4167, allocations: 104 kB / 0.5777 GB, free: 15.21 MB / 430.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.0005813/0.4173, allocations: 376.6 kB / 0.5781 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000247/0.4176, allocations: 126.4 kB / 0.5782 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004427/0.422, allocations: 1.524 MB / 0.5797 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.4221, allocations: 10.61 kB / 0.5797 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.4221, allocations: 0 / 0.5797 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002132/0.4223, allocations: 187.5 kB / 0.5799 GB, free: 12.99 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001746/0.4225, allocations: 20 kB / 0.5799 GB, free: 12.97 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006511/0.4231, allocations: 23.98 kB / 0.5799 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001736/0.4233, allocations: 80.89 kB / 0.58 GB, free: 12.87 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004208/0.4275, allocations: 1.513 MB / 0.5815 GB, free: 11.37 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002376/0.4299, allocations: 1.799 MB / 0.5832 GB, free: 9.555 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000622/0.4305, allocations: 419.7 kB / 0.5836 GB, free: 9.145 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001092/0.4316, allocations: 1.017 MB / 0.5846 GB, free: 8.121 MB / 430.1 MB Notification: Performance of Backend: time 3.81e-07/0.4317, allocations: 2.688 kB / 0.5846 GB, free: 8.121 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005368/0.437, allocations: 2.544 MB / 0.5871 GB, free: 5.738 MB / 430.1 MB Notification: Performance of SimCode: time 0.003827/0.4409, allocations: 3.099 MB / 0.5901 GB, free: 2.707 MB / 430.1 MB Notification: Performance of Templates: time 0.04681/0.4877, allocations: 33.18 MB / 0.6225 GB, free: 1.973 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)