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.0009916/0.0009916, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.001035/0.001035, allocations: 172.5 kB / 16.26 MB, free: 6.664 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.352/1.352, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1945/0.1945, allocations: 15.27 MB / 306.7 MB, free: 15.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003444/0.0003444, allocations: 12 kB / 372.1 MB, free: 3.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.2991, allocations: 54.63 MB / 426.7 MB, free: 40.05 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65: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:3019:6-3019:65: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.02932/0.3285, allocations: 27.6 MB / 454.3 MB, free: 29.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02077/0.3492, allocations: 19.2 MB / 473.5 MB, free: 16.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001834/0.3511, allocations: 38.31 kB / 473.5 MB, free: 16.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001298/0.3524, allocations: 446.8 kB / 474 MB, free: 16.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004064/0.3565, allocations: 1.106 MB / 475.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008013/0.3646, allocations: 2.49 MB / 477.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003029/0.3676, allocations: 2.031 MB / 479.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001529/0.3692, allocations: 1.101 MB / 480.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001262/0.3704, allocations: 0.8075 MB / 481.5 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001443/0.3719, allocations: 0.9518 MB / 482.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002786/0.3722, allocations: 108 kB / 482.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006559/0.3788, allocations: 1.976 MB / 484.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003949/0.3792, allocations: 374.1 kB / 484.9 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001056/0.3802, allocations: 0.9003 MB / 485.8 MB, free: 7.629 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008956/0.3892, allocations: 3.87 MB / 489.7 MB, free: 4.625 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.3892, allocations: 0 / 489.7 MB, free: 4.625 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.3893, allocations: 3.938 kB / 489.7 MB, free: 4.621 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.865e-05/0.3893, allocations: 0 / 489.7 MB, free: 4.621 MB / 350.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.003926/0.3933, allocations: 2 MB / 491.7 MB, free: 2.773 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.3933, allocations: 8.031 kB / 491.7 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001595/0.3949, allocations: 446.7 kB / 492.1 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001583/0.3965, allocations: 1.034 MB / 493.2 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.3967, allocations: 183.7 kB / 493.4 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002784/0.3969, allocations: 168.7 kB / 493.5 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003664/0.4006, allocations: 2.209 MB / 495.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.983e-05/0.4007, allocations: 0 / 495.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001852/0.4009, allocations: 69.55 kB / 495.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.565e-05/0.4009, allocations: 40 kB / 495.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004191/0.4051, allocations: 2.679 MB / 498.5 MB, free: 12.87 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.01294/0.4181, allocations: 7.229 MB / 0.4939 GB, free: 6.469 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001966/0.4201, allocations: 1.189 MB / 0.495 GB, free: 5.266 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009455/0.421, allocations: 0.5526 MB / 0.4956 GB, free: 4.699 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007982/0.429, allocations: 5.041 MB / 0.5005 GB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.468e-05/0.4291, allocations: 43.12 kB / 0.5006 GB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005834/0.4297, allocations: 110.6 kB / 0.5007 GB, free: 14.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=71): time 4.478e-06/0.4297, allocations: 0 / 0.5007 GB, free: 14.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=95): time 0.02064/0.4504, allocations: 4.827 MB / 0.5054 GB, free: 10.03 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.69e-05/0.4505, allocations: 115.8 kB / 0.5055 GB, free: 9.891 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002036/0.4525, allocations: 1.47 MB / 0.5069 GB, free: 8.406 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001431/0.4527, allocations: 45.7 kB / 0.507 GB, free: 8.355 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000639/0.4534, allocations: 0.8934 MB / 0.5078 GB, free: 7.445 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004675/0.4538, allocations: 347.2 kB / 0.5082 GB, free: 7.102 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002462/0.4541, allocations: 141.6 kB / 0.5083 GB, free: 6.957 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.4543, allocations: 301.1 kB / 0.5086 GB, free: 6.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/0.4554, allocations: 0.6207 MB / 0.5092 GB, free: 6.035 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001879/0.4573, allocations: 1.322 MB / 0.5105 GB, free: 4.383 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002815/0.4601, allocations: 1.913 MB / 0.5123 GB, free: 2.137 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.12e-05/0.4602, allocations: 4 kB / 0.5124 GB, free: 2.133 MB / 382.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.006296/0.4665, allocations: 2.367 MB / 0.5147 GB, free: 15.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.623e-05/0.4665, allocations: 20.03 kB / 0.5147 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-05/0.4666, allocations: 27.94 kB / 0.5147 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002831/0.4694, allocations: 391 kB / 0.5151 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002421/0.4719, allocations: 0.5577 MB / 0.5156 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009121/0.481, allocations: 7.368 MB / 0.5228 GB, free: 6.785 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001729/0.4828, allocations: 99.8 kB / 0.5229 GB, free: 6.688 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003642/0.4832, allocations: 104 kB / 0.523 GB, free: 6.586 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.0009772/0.4841, allocations: 377 kB / 0.5234 GB, free: 6.207 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003897/0.4845, allocations: 122.4 kB / 0.5235 GB, free: 6.086 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005238/0.4898, allocations: 1.538 MB / 0.525 GB, free: 4.516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.46e-05/0.4898, allocations: 12 kB / 0.525 GB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.4898, allocations: 0 / 0.525 GB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.4899, allocations: 3.984 kB / 0.525 GB, free: 4.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007807/0.4977, allocations: 3.006 MB / 0.5279 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.591e-05/0.4977, allocations: 8 kB / 0.528 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008626/0.4986, allocations: 219.7 kB / 0.5282 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002935/0.5015, allocations: 429.3 kB / 0.5286 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.5017, allocations: 43.98 kB / 0.5286 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007591/0.5093, allocations: 7.156 MB / 0.5356 GB, free: 8.875 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.516e-06/0.5093, allocations: 8 kB / 0.5356 GB, free: 8.867 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005134/0.5144, allocations: 2.175 MB / 0.5377 GB, free: 6.574 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005894/0.5151, allocations: 219.4 kB / 0.5379 GB, free: 6.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003095/0.5154, allocations: 31.98 kB / 0.538 GB, free: 6.309 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008938/0.5163, allocations: 36.17 kB / 0.538 GB, free: 6.273 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002041/0.5165, allocations: 120.2 kB / 0.5381 GB, free: 6.156 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.5166, allocations: 51.97 kB / 0.5382 GB, free: 6.105 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001361/0.518, allocations: 1.017 MB / 0.5392 GB, free: 5.082 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.518, allocations: 0 / 0.5392 GB, free: 5.082 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002965/0.521, allocations: 0.8158 MB / 0.54 GB, free: 4.266 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.001893/0.5229, allocations: 0.8585 MB / 0.5408 GB, free: 3.398 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003586/0.5265, allocations: 1.746 MB / 0.5425 GB, free: 1.633 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/0.5265, allocations: 8.062 kB / 0.5425 GB, free: 1.625 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001355/0.5278, allocations: 0.9839 MB / 0.5435 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002544/0.5304, allocations: 220.7 kB / 0.5437 GB, free: 380 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004995/0.5354, allocations: 3.626 MB / 0.5472 GB, free: 12.62 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009341/0.5364, allocations: 1.227 MB / 0.5484 GB, free: 11.37 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001287/0.5377, allocations: 322.5 kB / 0.5487 GB, free: 11.05 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004017/0.5381, allocations: 175.3 kB / 0.5489 GB, free: 10.88 MB / 430.1 MB Notification: Performance of SimCode: time 8.32e-07/0.5381, allocations: 0 / 0.5489 GB, free: 10.88 MB / 430.1 MB Notification: Performance of Templates: time 0.04485/0.5829, allocations: 26.51 MB / 0.5748 GB, free: 452 kB / 446.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)